/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,n=location.hash.substring(1);/^[A-z0-9_-]+$/.test(n)&&(e=document.getElementById(n))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1),function(n){"use strict";n.fn.stopScrolling=function(){return n("html").on("wheel.modal mousewheel.modal",function(){return!1}),this},n.fn.restoreScrolling=function(){return n("html").off("wheel.modal mousewheel.modal"),this};var t=n(".body-overlay");n(".hamburger-menu").on("click",function(){t.addClass("is-active"),n(".main-navigation").toggleClass("is-active"),n(this).toggleClass("cross"),n.fn.stopScrolling()}),n(".hamburger-menu.cross, .close-navigation").on("click",function(){n(".hamburger-menu").removeClass("cross"),t.removeClass("is-active"),n(".main-navigation").removeClass("is-active"),n.fn.restoreScrolling()}),n(document).keyup(function(e){27===e.keyCode&&(n(".hamburger-menu").removeClass("cross"),t.removeClass("is-active"),n(".main-navigation").removeClass("is-active"),n.fn.restoreScrolling())}),n(document).on("click",function(e){0===n(e.target).closest(".hamburger-menu,.main-navigation").length&&(t.removeClass("is-active"),n(".main-navigation").removeClass("is-active"),n(".hamburger-menu").removeClass("cross"),n.fn.restoreScrolling())})}(jQuery);