
$(document).ready(function(){
		
	/* LINKS OUTLINE NONE IE */
	$("a,#submit").focus(function() {
		$(this).blur();
	});
		
	
	$('a[rel=external]').click(function(){
		window.open(this.href); 
		return false;
	});

		
	$("a[href=#]").attr("href", "javascript:void(0);");
	
	
	/* equal height */
	$('section').equalHeights();
		
	// FORMID
	/*
	$('input#nom').val('nom');
	$('input#courriel').val('courriel');
	$('textarea#message').append('message');*/
	/*$('.text').each(function() {
		var default_value = this.value;
		$(this).focus(function() {
			if(this.value == default_value) {
				this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				this.value = default_value;
			}
		});
	});*/
	
	
	//hover site anim
	/*$('.theimg img').animate({'opacity' : 0.85}).hover(function() {
		$(this).animate({'opacity' :1});
	}, function() {
		$(this).animate({'opacity' : 0.85});
	});*/
			
	
	
	//SUPERSIZE fullscreen	
	$.fn.supersized.options = {  
		startwidth: 1065,  
		startheight: 768,
		minsize: .50,
		slideshow: 0 
	};
    $('#supersize').supersized(); 
	
	
	$('section .theimg img').hover(  
		function () {  
			//set the opacity of all siblings  
			$(this).siblings().css({'opacity': '0.1'});   

			//set the opacity of current item to full, and add the effect class  
			$(this).css({'opacity': '1.0'});    
		} 
	);  


	$('section .theimg img').mouseleave(function () {  
		//reset all the opacity to full and remove effect class  
		$(this).children().fadeTo('100', '0.7');        
	});  

	
	
	

});// The end of our jQuery function	

