Event.observe(window, 'load', function(event){
	
	// Moteur de recherche
	// champs recherche
	if ($("chpsRecherche"))
	{
		var chpsRecherche = $("chpsRecherche");
		
		chpsRecherche.observe("focus", function(){
			var value = this.getValue();
			if (value == "Recherche") {
				this.setValue("");
			}
		});
		chpsRecherche.observe("blur", function(){
			var value = this.getValue();
			if (value == "") {
				this.setValue("Recherche");
			}
		});
	}
	
	// --- Sphinx online ---
	// champs identifiant
	if ($("compte"))
	{
		var chpsCompte = $("compte");
		
		chpsCompte.observe("focus", function(){
			var value = this.getValue();
			if (value == "Compte") {
				this.setValue("");
			}
		});
		chpsCompte.observe("blur", function(){
			var value = this.getValue();
			if (value == "") {
				this.setValue("Compte");
			}
		});
	}
	// champs mot de passe
	if ($("passe"))
	{
		var chpsMotdepasse = $("passe");
		
		chpsMotdepasse.observe("focus", function(){
			var value = this.getValue();
			if (value == "Mot de passe") {
				this.setValue("");
			}
		});
		chpsMotdepasse.observe("blur", function(){
			var value = this.getValue();
			if (value == "") {
				this.setValue("Mot de passe");
			}
		});
	}
});
