﻿function hoverMenu(id) {
    var root = document.getElementById(id);
    for (var i = 0; i < root.childNodes.length; i++) {
        node = root.childNodes[i];
        if (node.nodeName == "LI") {
            node.onmouseover = function() {
                this.className = "hover";
            }
        }
        node.onmouseout = function() { this.className = this.className.replace("hover", ""); }
    }
}
