function isIE() { return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent); }
          
var currentOver = false;
var currentSubOver = false;
var timerID;

//function to detect mouseover for IE browsers
function IEMenuStart(id) 
{
    //if (isIE()) 
    {
      navRoot = document.getElementById(id);
      for (i=0; i<navRoot.childNodes.length; i++) 
      {
        node = navRoot.childNodes[i];
        if (node.nodeName=="LI") 
        {
          //node.onmouseover=function() { this.className+=" over"; }
          //node.onmouseout=function() { this.className=this.className.replace(" over", ""); }
          
          //delayed close verion
          node.onmouseover=function() 
          {
            //stop any currently closing menu and close it manually
            clearTimeout(timerID); 
            if( currentOver ) currentOver.className=currentOver.className.replace(" over", "");
            
            this.className+=" over";
            currentOver = this;
          }
          
          node.onmouseout=function() 
          { 
            var that=this; //change scope
            clearTimeout(timerID);
            timerID=setTimeout(function(){that.className=that.className.replace(" over", "")},100); 
          }
          
          for (j=0; j<node.childNodes.length; j++) 
          {
            node2 = node.childNodes[j];
            if (node2.nodeName=="UL") 
            {
              for (k=0; k<node2.childNodes.length; k++) 
              {
                node3 = node2.childNodes[k];
                if (node3.nodeName=="LI") 
                {
                    node3.onmouseover=function() 
                    {
                        //stop any currently closing menu and close it manually
                        clearTimeout(timerID); 
                        if( currentSubOver ) currentSubOver.className=currentSubOver.className.replace(" over", "");
                        
                        this.className+=" over";
                        currentSubOver = this;
                    }
                      
                    node3.onmouseout=function() 
                    { 
                        var that=this; //change scope
                        clearTimeout(timerID);
                        timerID=setTimeout(function(){that.className=that.className.replace(" over", "")},100); 
                    }
                }
              }
            }
          }
        }
      }
    }
}
