startList = function(navRoot) {
    if (document.all && document.getElementById) {
        for (var i = 0; i < navRoot.childNodes.length; i++) {
            var node = navRoot.childNodes[i];
            if (node.nodeName == 'LI') {
                node.onmouseover = function() {
                    this.className += ' over';
                }
                    node.onmouseout = function() {
                    this.className = this.className.replace(' over', '');
                }

                for (var j = 0; j < node.childNodes.length; j++) {
                    if (node.childNodes[j].nodeName == 'UL') {
                        startList(node.childNodes[j]);
                    }
                }
            }
        }
    }
}
window.setTimeout(function(){startList(document.getElementById('nav'))}, 500)
