function initInputs()
{
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++)
	{
		if (inputs[i].type == "text" && (inputs[i].name == "search" || inputs[i].name == "login" || inputs[i].name == "password"))
		{
			inputs[i].onfocus = function ()
			{
				if (this.value == "Entrez votre recherche" || this.value == "Identifiant" || this.value == "Mot de passe")
					this.value = "";
			}
			inputs[i].onblur = function ()
			{
				if (this.value == "" && this.name == "search") this.value = "Entrez votre recherche";
				if (this.value == "" && this.name == "login") this.value = "Identifiant";
				if (this.value == "" && this.name == "password") this.value = "Mot de passe";
			}
		}
	}
}
function initNav()
{
	if (typeof document.body.style.maxHeight == 'undefined')
	{
		var nav = document.getElementById("main-nav");
		if(nav)
		{
			var lis = nav.getElementsByTagName("li");
			for (var i=0; i<lis.length; i++)
			{
				lis[i].onmouseover = function()
				{
					this.className += " hover";
				}
				lis[i].onmouseout = function()
				{
					this.className = this.className.replace(" hover", "");
				}
			}
		}
	}
}
if (window.addEventListener)
{
	window.addEventListener("load", initInputs, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", initInputs);
	window.attachEvent("onload", initNav);
}