
function menus_init() {
     if (document.all&&document.getElementById) {
          menuList = document.getElementsByTagName("UL");

          if (menuList.length > 0)
          {
               for (x=0; x<menuList.length; x++)
               {
                    menuRoot = menuList[x];
                    for (i=0; i<menuRoot.childNodes.length; i++) {
                         menuNode = menuRoot.childNodes[i];
                         if (menuNode.nodeName=="LI") {
                              if (menuNode.className == "parent item2")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }
                              if (menuNode.className == "parent item3")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }


                              if (menuNode.className == "parent item4")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }

                              if (menuNode.className == "parent item5")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }

                              if (menuNode.className == "parent item6")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }


                              if (menuNode.className == "parent item7")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }

                              if (menuNode.className == "parent item8")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }

                              if (menuNode.className == "parent item9")
                              {
                                   menuNode.onmouseover=function() {
                                        this.className+=" over";
                                   }
                                   menuNode.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                   }
                              }









                         }
                    }
               }
          }
     }
}
addEvent(window, "load", menus_init);


function addEvent(obj, evType, fn){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, true);

    return true;
  } else if (obj.attachEvent){
     var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
     return false;
  }
}


