
var activateMenus = function(menus) 
{   
    for(var j = 0; j < menus.length; j++)
    {
        var menu = menus[j];
        var obj = document.getElementById(menu);
        
        if(obj == null) continue;
        
        /* currentStyle restricts the Javascript to IE only */
	    if (document.all && obj.currentStyle) 
	    {  
            var menuroot = document.getElementById(menu);
            
            /* Get all the list items within the menu */
            var lis = menuroot.getElementsByTagName("LI");  
            for (var i = 0; i < lis.length; i++) 
            {
               /* If the LI has another menu level */
                if(true || lis[i].lastChild.tagName == "UL")
                {
             	    lis[i].onmouseover = function() 
             	    {
                       this.className += " ie_hover";
                    }
                    
                    lis[i].onmouseout = function() 
                    {                       
                       this.className = this.className.replace(" ie_hover", "");
                    }
                }
            }
        }
    }
}
