var nav = function() {
      if (document.all&&document.getElementById) {
            navRootProject = document.getElementById("navProject");
            for (i=0; i<navRootProject.childNodes.length; i++) {
                  node = navRootProject.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
      if (document.all&&document.getElementById) {
            navRootExpert = document.getElementById("navExpert");
            for (i=0; i<navRootExpert.childNodes.length; i++) {
                  node = navRootExpert.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
      if (document.all&&document.getElementById) {
            navRootPublick = document.getElementById("navPublick");
            for (i=0; i<navRootPublick.childNodes.length; i++) {
                  node = navRootPublick.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
      if (document.all&&document.getElementById) {
            navRootRec = document.getElementById("navRec");
            for (i=0; i<navRootRec.childNodes.length; i++) {
                  node = navRootRec.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
      if (document.all&&document.getElementById) {
            navRootQuest = document.getElementById("navQuest");
            for (i=0; i<navRootQuest.childNodes.length; i++) {
                  node = navRootQuest.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
}

window.onload=nav;