function initPage()
{	
	var navRoot = document.getElementById("nav");
	var drop = navRoot.getElementsByTagName("li");
	
	for (var i=0; i<drop.length; i++)
	{	
		if (drop[i].parentNode.className == "nav")
		{
			drop[i].onmouseover = function()
			{
				this.className = "hover";
			}
			drop[i].onmouseout = function()
			{
				this.className = "";
			}
		}
	}
}

if (document.all && window.attachEvent)
	attachEvent("onload", initPage);
