function initNav()
{
	if (typeof document.body.style.maxHeight == 'undefined')
	{
		var nav = document.getElementById("main-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", "");
			}
		}
	}
	var items = document.getElementsByTagName("li");
	for (var i=0; i<items.length; i++)
	{
		if(items[i].className == "item")
		{
			items[i].onmouseover = function()
			{
				this.parentNode.parentNode.parentNode.className += " big-drop";
				var elements = this.getElementsByTagName("ul");
				var element_one = elements.item(0); 
				element_one.style.display = "block";
				this.className += " hover";
			}
			items[i].onmouseout = function()
			{
				this.parentNode.parentNode.parentNode.className = "drop-down";
				var elements = this.getElementsByTagName("ul");
				var element_one = elements.item(0); 
				element_one.style.display = "none";
				this.className = this.className.replace(" hover", "");
			}
		}
	}
	
}
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].onfocus = function ()
			{
				if (this.value == "Job Keyword")
					this.value = "";
			}
			inputs[i].onblur = function ()
			{
				if (this.value == "" && this.name == "search") this.value = "Job Keyword";
			}
		}
	}
}
if (window.addEventListener)
{
	window.addEventListener("load", initInputs, false);
	window.addEventListener("load", initNav, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initInputs);
	window.attachEvent("onload", initNav);
}