function initInputs()
{
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++)
	{
		if (inputs[i].type == "text" && (inputs[i].name == "email"))
		{
			inputs[i].onfocus = function ()
			{
				if (this.value == "Enter Your Email")
					this.value = "";
			}
			inputs[i].onblur = function ()
			{
				if (this.value == "" && this.name == "email") this.value = "Enter Your Email";
			}
		}
	}
	var inputs_search = document.getElementById("search");
	if(inputs_search)
	{
		inputs_search.onfocus = function ()
		{
			this.className += " clear";
		}
		inputs_search.onblur = function ()
		{
			if(this.value=="")
			{
				this.className = "search";
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initInputs, false);
else if (window.attachEvent)
	window.attachEvent("onload", initInputs);
	
	
function initPage()
{
	var nav = document.getElementById("nav");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{
			nodes[i].onmouseover = function () 
			{
				if (this.className.indexOf("hover") == -1)
				{
					this.className += " hover";
				}
			}
			nodes[i].onmouseout = function ()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
	