window.onload = function() {
        if (document.all&&document.getElementById){
                navRoot = document.getElementById('menu');
                for (var i=0; i<navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];
                        if (node.nodeName=='LI')
                                hoverIE( node );
                }
                var sub = navRoot.getElementsByTagName('ul');
                
                for( var i=0;i<sub.length;i++ )
                {
                        for( var j=0;j<sub[i].childNodes.length;j++ )
                        {
                                var node = sub[i].childNodes[j];
                                hoverIE( node );
                        }
                }
        }
}
function hoverIE( node )
{
        node.onmouseover=function(){
                this.className+=' over';
        }
        node.onmouseout=function(){
                this.className=this.className.replace(' over', '');
        }
}
