activateMenu = function(nav) {

/* currentStyle restricts the Javascript to IE only */
  if (document.all && document.getElementById(nav).currentStyle) {  
    var navroot = document.getElementById(nav);
    var lis=navroot.getElementsByTagName("LI"); /* Get all the list items within the menu */
    for (i=0; i<lis.length; i++) {
      if(lis[i].lastChild.tagName=="UL") { /* If the LI has another menu level */
        lis[i].onmouseover=function() {	/* assign the function to the LI */
          this.lastChild.style.display="block"; /* display the inner menu */
        }
        lis[i].onmouseout=function() {                       
          this.lastChild.style.display="none";
        }
      }
    }
  }
}

