$(document).ready( function()
{
	var backgroundColor_init = "#ffffff"; // Couleur de fond initiale
	var borderColor_init = "#cccccc"; // Couleur de bordure initiale
	
	var backgroundColor_modif = "#cccc99"; // Couleur de fond modifiée
	var borderColor_modif = "#b9b97d"; // 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 );
	});
	
	// Effets sur les liens du site :
	/*$("p a").mouseover(function(){
		$(this).fadeOut(100);
		$(this).fadeIn(400);
	});*/
	
	// 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, .pager").corner("8px");
	
	$("a.affichetoi").lightBox();
});
