navHover = function(id)
{
	var lis = document.getElementById(id).getElementsByTagName("LI");
	var listd = document.getElementById("menu").getElementsByTagName("LI");
	
	for (var i=0; i<lis.length; i++)
	{
		lis[i].onmouseover=function()
		{
			this.style.cursor = "hand";
		}
		
		lis[i].onclick=function()
		{
			for (var k=0;k<listd.length;k++)
			{
				for (var j=0; j<lis.length; j++)
				{
					listd[k].className=this.className.replace(new RegExp(" iehover\\b"), "");
				}
			}
			
			for (var j=0; j<lis.length; j++)
			{
				lis[j].className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
			
			
			
			this.className+=" iehover";
		}
	}
}

//if (window.attachEvent) window.attachEvent("onload", navHover);