startList = function() {

        node = document.getElementsByTagName("UL")[0].firstChild;

        while(node != null) {

               node.onmouseover=function() {
                       this.className+=" hover";
               }

               node.onmouseout=function() {
                       this.className=this.className.replace(" hover", "");
               }

               if(node.hasChildNodes != null) {

                       for (i=0; i<node.childNodes.length; i++) {
                                 subnode = node.childNodes[i];

                                 if (subnode.nodeName=="UL") {

                                           if(subnode.hasChildNodes != null) {

                                                   for (k=0; k<subnode.childNodes.length; k++) {

                                                             subnav3 = subnode.childNodes[k];

                                                              if (subnav3.nodeName=="LI") {

                                                                            subnav3.onmouseover=function() {
                                                                                   this.className+=" hover";
                                                                             }

                                                                             subnav3.onmouseout=function() {
                                                                                   this.className=this.className.replace(" hover", "");
                                                                             }
                                                               }
                                                     }
                                            }
                                  }
                         }
                }

                node = node.nextSibling;                                    
        }
}
window.onload=startList;

