function assignHoverNav() { assignHover('menuwrapper'); }

function assignHover(element)
{
 var ul = null;
 var li = null;
 var index = 0;
 var menu = document.getElementById(element);
 if (!menu) menu = document.getElementById(element);
 if (!menu) return false;

 ul = menu.getElementsByTagName("li");
 if (!ul) return false;

 for(index=0;index<ul.length;index++)
 {
 	li = ul[index];

 	if (!li.childNodes[1]) continue;

 	li.onmouseover = function ()
 	{
 		this.className += " hover";
		//alert("onmouseover!");
 	}

 	li.onmouseout = function ()
 	{
 		this.className = this.className.replace(" hover", "");
		//alert("onmouseout!");
 	}
 }
}

if (window.attachEvent) window.attachEvent('onload', assignHoverNav);





