﻿function forBlueMenu() {
    if (document.all && document.getElementById) {
        var navBlue = document.getElementById('blueMenu');
        for (i = 0; i < navBlue.childNodes.length; i++) {
            node = navBlue.childNodes[i];
            if (node.nodeName == "LI") {
                node.onmouseover = function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }
    }
}
function forRedMenu() {
    if (document.all && document.getElementById) {
        var navBlue = document.getElementById('redMenu');
        for (i = 0; i < navBlue.childNodes.length; i++) {
            node = navBlue.childNodes[i];
            if (node.nodeName == "LI") {
                node.onmouseover = function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }
    }
}