  function slide() {
            var menu=document.getElementById('menu');
            var count=menu.getElementsByTagName('LI');
            var countin,i,k,tname;

            for(i=0; i<count.length; i++) {
               countin=count[i].childNodes.length;
               for(k=0; k<countin; k++) {
                  tname=count[i].childNodes[k].tagName;
                  if(tname=='UL') {
                     count[i].onmouseover=function() {
                        this.childNodes[2].style.display='block';
                     }
                     count[i].onmouseout=function() {
                        this.childNodes[2].style.display='none';
                     }
                  }
               }
            }
         }
         window.onload=slide;