startList = function() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        for (j=0; j<node.childNodes.length; j++) {
          findNode = node.childNodes[j];
          if (findNode.nodeName=="UL") {
            for (k=0; k<findNode.childNodes.length; k++) {
              subNode = findNode.childNodes[k];
              if (subNode.className=="second") {
                subNode.onmouseover=function() {
                  this.className+=" over2";
                }
                subNode.onmouseout=function() {
                  this.className=this.className.replace(" over2", "");
                }
              }
            }
          }
        }
        node.onmouseover=function() {
          this.className+=" over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", "");
        }
      }
    }
  }
}
window.onload=startList;