﻿var fixList = {

    init: function() {
        $self = this;
        this.menuHoverIE6();
        this.fixZIndex();
    },

    menuHoverIE6: function() {
        jQuery.each(jQuery.browser, function(i, val) {
            if (i == "msie" && jQuery.browser.version.substr(0, 3) == "6.0") {
                $('.main-menu li').hover(
                    function() {
                        $(this).addClass('hover');
                    },
                    function() {
                        $(this).removeClass('hover');
                    }
                );
            }
        });
    },

    fixZIndex: function() {
        $('.fix-z-index').bgiframe();
    }
}

function initializeMainMenuFix() {
    fixList.init();    
}
