// GESTION DES ALPHAS AU PASSAGE DE LA SOURIS

$(function() {
	$('.btn-contact2 a img').css("border","none");
	var elementsalpha= [".project", ".header-picto", ".btn-contact2 a img", ".btn-envoyer"]
	for (i=0; i<elementsalpha.length; i++){		// ON MOUSE OVER
		$(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");
		});
	}
});

// GESTION DES ALPHAS AU CHARGEMENT DE LA PAGE

$(function() {
	var alphafast= ["#l-header img", "#menu"]
	for (a=0; a<alphafast.length; a++){		// ON MOUSE OVER
		$(alphafast[a]).css("opacity","0");
		$(alphafast[a]).stop().animate({
			opacity: 1.00
		}, "fast");
	}
	
	var alphaslow= ["#slide", "#titre-accueil", "#studio-presentation", "#realisations", "#rea", "#contact"]
	for (a=0; a<alphaslow.length; a++){		// ON MOUSE OVER
		$(alphaslow[a]).css("opacity","0");
		$(alphaslow[a]).stop().animate({
			opacity: 1.00
		}, "slow");
	}
});




/*{"duration": "fast", "easing": "easeinout" });*/

$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#text p").css("opacity","0.5");
		
// ON MOUSE OVER
$("#text p").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.5
}, "slow");
});
});


$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#div").css("opacity","0.5");
		
// 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.5
}, "slow");
});
});
