").addClass("mmoverlay").insertAfter("#main-navigation-wrapper").css({
position: "absolute",
background: "rgba(0,0,0,0.4)",
top: "38px",
//width: window.innerWidth + "px",
width: "100%",
height: document.body.scrollHeight - e + "px"
})
},
destroyOverlay: function () {
var e = $(".mmoverlay");
e.fadeOut(300, function () {
e.remove()
})
},
showSubmenu: function (e) {
$(".mmoverlay").length || MegaMenu.createOverlay();
var t = "#" + this.id;
$(t).addClass("hov")
},
hideSubmenu: function (e) {
$("#" + this.id).removeClass("hov")
}
};
$(function () {
MegaMenu.init()
});