function assignHoverNav()
{
 var menu = document.getElementById('main-nav');
 if (!menu) return false;
 var index=0

 var elems = menu.getElementsByTagName('li');
 if (!elems) return false;

 for(index=0;index<elems.length;index++)
 {
 var li = elems[index];
 li.onmouseover = function ()
 {
 this.className += "over";
//if (this.parentNode.parentNode.tagName == 'LI')
 window.status = "Over";
}

 li.onmouseout = function ()
 {
 //if (this.parentNode.parentNode.tagName != 'LI')
 window.status = "Out";
 this.className=this.className.replace("over", "");
 }
 }


}


if (window.attachEvent) window.attachEvent("onload", assignHoverNav);
 else window.onload = assignHoverNav;

