// Gestione degli alfa al passaggio del mouse

$(function() {
	$('.btn-contact2 a img').css("border","none");
	var elementsalpha= [".projet", ".header-picto", ".btn-contact2 a img", ".btn-envoyer"]
	for (i=0; i<elementsalpha.length; i++){		// onmouseover
		$(elementsalpha[i]).hover(function () {
												  
		// SET OPACITY TO 50%
			$(this).stop().animate({
				opacity: 0.5
				}, "fast");
		},
			
		// ON MOUSE OUT
		function () {
				
		// SET OPACITY BACK TO 100%
		$(this).stop().animate({
			opacity: 1.00
			}, "slow");
		});
	}
});

// Gestione degli alfa al caricamento della pagina

$(function() {
	var alphafast= ["#header", "#menu"]
	for (a=0; a<alphafast.length; a++){		// onmouseover
		$(alphafast[a]).css("opacity","0");
		$(alphafast[a]).stop().animate({
			opacity: 1.00
		}, "fast");
	}
	
	var alphaslow= ["#content"]
	for (a=0; a<alphaslow.length; a++){		// onmouseover
		$(alphaslow[a]).css("opacity","0");
		$(alphaslow[a]).stop().animate({
			opacity: 1.00
		}, "slow");
	}
});




/*{"duration": "fast", "easing": "easeinout" });*/

$(function() {
// OPACITY OF BUTTON SET TO 50%
$("a img").css("opacity","0.6");
		
// ON MOUSE OVER
$("a img").hover(function () {
										  
// SET OPACITY TO 1000%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.6
}, "slow");
});
});


$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#div").css("opacity","0.6");
		
// ON MOUSE OVER
$("#div").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.6
}, "slow");
});
});
