// JavaScript Document
$(document).ready(function(){
				
	//formulaire de recherche			
	activerChamp('recherche_chp', 'Votre recherche...');
	
	//acces prive
	activerChamp('login', 'Votre identifiant');
	activerChamp('pass', 'password');
	
	//lettre d'information
	activerChamp('nl_email', 'Votre adresse email');
		
});

function activerChamp(idChp, defVal){
	
	$('#'+idChp).focus(function(){
		$(this).addClass("active");
		if($(this).val() == defVal){	   
			$(this).val("");
		}
	});
	$('#'+idChp).blur(function(){
		$(this).removeClass("active");
		if($(this).val() == "")
			$(this).val(defVal);
	});
	
}
