jQuery(document).ready(function(t){var e=t("#loader"),a=t("#preloader"),n=(t(window).scrollTop(),t(".backtotop")),i=t(".main-navigation button.dropdown-toggle"),s=t("#masthead .menu-toggle"),o=t("#masthead .main-navigation");a.delay(1e3).fadeOut(),e.delay(1e3).fadeOut("slow"),t(window).scroll(function(){1 li:last-child button.active").unbind("keydown")}),t("#masthead .search-menu > a").click(function(e){e.preventDefault(),t(this).toggleClass("search-active"),t("#masthead #search").fadeToggle(),t("#masthead .search-field").focus()}),t("#masthead #search").find("button").bind("keydown",function(e){9===e.keyCode&&(e.preventDefault(),t("#masthead #search").hide(),t("#masthead .search-menu > a").removeClass("search-active"),t("#masthead .search-menu").removeClass("active").focus(),t("#masthead .search-menu > a").focus())}),t("#masthead #search").find("input").bind("keydown",function(e){var a=9===e.keyCode;e.shiftKey&&a&&(e.preventDefault(),t("#masthead #search").hide(),t("#masthead .search-menu > a").focus(),t("#masthead .search-menu > a").removeClass("search-active"),t("#masthead .search-menu").addClass("active"))}),t(window).width()<1024?(t("#primary-menu").find("li").last().bind("keydown",function(e){9===e.which&&(e.preventDefault(),t("#masthead").find(".menu-toggle").focus())}),t("#primary-menu > li:last-child button:not(.active)").bind("keydown",function(e){9===e.which&&(e.preventDefault(),t("#masthead").find(".menu-toggle").focus())})):t("#primary-menu").find("li").unbind("keydown"),t(window).resize(function(){t(window).width()<1024?(t("#primary-menu").find("li").last().bind("keydown",function(e){9===e.which&&(e.preventDefault(),t("#masthead").find(".menu-toggle").focus())}),t("#primary-menu > li:last-child button:not(.active)").bind("keydown",function(e){9===e.which&&(e.preventDefault(),t("#masthead").find(".menu-toggle").focus())})):t("#primary-menu").find("li").unbind("keydown")}),s.on("keydown",function(e){var a=9===e.keyCode,n=e.shiftKey;s.hasClass("active")&&n&&a&&(e.preventDefault(),o.slideUp(),t(".main-navigation").removeClass("menu-open"),t(".menu-overlay").removeClass("active"),s.removeClass("active"))})});