$(document).ready( function()
{
	var backgroundColor_init = "#ffffff"; // Couleur de fond initiale
	var borderColor_init = "#cccccc"; // Couleur de bordure initiale
	
	var backgroundColor_modif = "#fbfbfb"; // Couleur de fond modifiée
	var borderColor_modif = "#999999"; // Couleur de bordure modifiée
	
	
	// Effets sur les formulaires du site :
	$("input, textarea").focus(function(){
		$(this).animate({ 
			backgroundColor: backgroundColor_modif,
			borderLeftColor: borderColor_modif,
			borderRightColor: borderColor_modif,
			borderTopColor: borderColor_modif,
			borderBottomColor: borderColor_modif
		  }, 250 );
	});
	 
	$("input, textarea").blur(function(){
		$(this).animate({ 
			backgroundColor: backgroundColor_init,
			borderLeftColor: borderColor_init,
			borderRightColor: borderColor_init,
			borderTopColor: borderColor_init,
			borderBottomColor: borderColor_init
		  }, 250 );
	});
	
	$(".submit").mouseover(function(){
		$(this).animate({ 
			backgroundColor: backgroundColor_modif,
			borderLeftColor: borderColor_modif,
			borderRightColor: borderColor_modif,
			borderTopColor: borderColor_modif,
			borderBottomColor: borderColor_modif
		  }, 250 );
	});
	 
	$(".submit").mouseout(function(){
		$(this).animate({ 
			backgroundColor: backgroundColor_init,
			borderLeftColor: borderColor_init,
			borderRightColor: borderColor_init,
			borderTopColor: borderColor_init,
			borderBottomColor: borderColor_init
		  }, 250 );
	});
	
	// Permet de remonter en haut de la page :
	$('#haut_de_page a').click(function(){
		jQuery('html').animate({ scrollTop: 0 }, "slow");
		return false;
	});
	
	// Effets sur les images des galeries de photos :
	$(".galerie_photos img").mouseover(function(){
	   $(this).animate({
		opacity: 0.8
	  }, 200 );
	});

	$(".galerie_photos img").mouseout(function(){
	   $(this).animate({
		opacity: 1
	  }, 200 );
	});
	
	$(".tableau_de_bord, .pb_droit, .confirme, .erreur, .informations, .chargement, .ajoute, .mots_cles").corners("5px");

	// Effets sur les boutons du haut de la page :
	$("#bouton1 a").mouseover(function(){
	   $("#bouton1").animate({
		opacity: 1
	  }, 200 );
	});

	$("#bouton1 a").mouseout(function(){
	   $("#bouton1").animate({
		opacity: 0.8
	  }, 200 );
	});
	
	$("#bouton2 a").mouseover(function(){
	   $("#bouton2").animate({
		opacity: 1
	  }, 200 );
	});

	$("#bouton2 a").mouseout(function(){
	   $("#bouton2").animate({
		opacity: 0.8
	  }, 200 );
	});
	
	$("#bouton3 a").mouseover(function(){
	   $("#bouton3").animate({
		opacity: 1
	  }, 200 );
	});

	$("#bouton3 a").mouseout(function(){
	   $("#bouton3").animate({
		opacity: 0.8
	  }, 200 );
	});
	
	$("#bouton1, #bouton2, #bouton3").animate({
	  opacity: 0.7
	}, 2000 );
});
