
function setupIE()
{
    var hm_ie_fix;

    makeHovers(document.getElementById("mm"));
    fixHovers('sb', 'input');
    fixHovers('rb', 'input');
    if (hm_ie_fix == undefined) {
        fixHovers('hm', 'div');
    }
}

function fixHovers(name, type)
{
    var elements = YAHOO.util.Dom.getElementsByClassName(name, type);
    var n = elements.length;
    for (i = 0; i < n; ++i) {
        YAHOO.util.Event.addListener(elements[i], "mouseover", function() { this.className += " over"; });
        YAHOO.util.Event.addListener(elements[i], "mouseout", function() { this.className = this.className.replace(" over", ""); });
    }
}

function makeHovers(navRoot)
{
    for (i=0; i < navRoot.childNodes.length; i++){
        node = navRoot.childNodes[i];
        if (node.nodeName == "LI") {
            YAHOO.util.Event.addListener(node, "mouseover", function() { this.className += " over"; });
            YAHOO.util.Event.addListener(node, "mouseout", function() { this.className = this.className.replace(" over", ""); });
        }
    }
}

if (document.all) {
    YAHOO.util.Event.addListener(window, "load", setupIE);
}