
startList = function() {
  // document.all is IE>=4.0 specific
  if ( document.all && document.getElementById ) {
    var navRoot = document.getElementById( "menu" );
    var allSubmenus = navRoot.getElementsByTagName( "ul" );
    for ( i=0; i<allSubmenus.length; i++ ) {
      node = allSubmenus[i].parentNode;  // get the <li> element around the submenu <ul>
      if ( node.nodeName == "LI" ) {
        node.onmouseover=function() {
          this.className += " over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace( " over", "" );
        }
      }
    }
  }
}

if ( document.all ) {
  window.onload=startList;
}

/*
var oldonload = window.onload;
if ( typeof window.onload != 'function' ) {
  window.onload = startList;
} else {
  window.onload = function() {
    oldonload();
    startList();
  }
}
*/