﻿__menu = {};

__menu.highlightTab = function(e) {
    var el = jQuery(this);
    el.attr("class", "main_menu_tab_ovr")
}

__menu.restoreTab = function(e) {
    var el = jQuery(this);
    el.attr("class", "main_menu_tab_reg")
}

__menu.register = function() {
    jQuery("[stype='menu_node']").each(function(i) {
        if (this.className != "main_menu_tab_sel") {
            jQuery(this).mouseover(__menu.highlightTab);
            jQuery(this).mouseout(__menu.restoreTab);
        }
    });
}

jQuery("document").ready(function() {
    __menu.register();
});
