!function(e){function i(){if(matchMedia("only screen and (min-width: 1024px)").matches){e(".menuStyle1.sticky-header:not(.admin-bar) .site-header, .menuStyle2.sticky-header:not(.admin-bar) .site-header").sticky({topSpacing:0,responsiveWidth:!0}),e(".menuStyle1.sticky-header.admin-bar .site-header, .menuStyle2.sticky-header.admin-bar .site-header").sticky({topSpacing:32,responsiveWidth:!0}),e(".menuStyle4.sticky-header .main-navigation").sticky({topSpacing:15,responsiveWidth:!0}),e(".menuStyle3.sticky-header.admin-bar .bottom-bar").sticky({topSpacing:32,responsiveWidth:!0}),e(".menuStyle3.sticky-header:not(.admin-bar) .bottom-bar").sticky({topSpacing:0,responsiveWidth:!0}),e(".menuStyle5.sticky-header.admin-bar .site-header").sticky({topSpacing:32,responsiveWidth:!0}),e(".menuStyle5.sticky-header:not(.admin-bar) .site-header").sticky({topSpacing:0,responsiveWidth:!0});var i=e(".main-navigation").outerHeight();e(".menuStyle4 #site-navigation-sticky-wrapper, .menuStyle4 .main-navigation").css("margin-bottom",-(i/2+30));var t=e(".site-header").outerHeight();e("#masthead-sticky-wrapper").css("min-height",t),$window=e(window),$window.scroll(function(){$window.scrollTop()<=0?e(".menuStyle1 .sticky-wrapper").removeClass("is-sticky"):e(".menuStyle1 .sticky-wrapper").addClass("is-sticky")})}else e(".sticky-header .site-header, .sticky-header .main-navigation, .sticky-header .bottom-bar").unstick()}i(),e(window).on("resize",i)}(jQuery),function(e){e(".site-header").on("click",".mobile-menu-toggle",function(i){i.preventDefault(),e("body").toggleClass("mobile-menu-active")}),e(".main-navigation").on("click","li a",function(i){e("body").hasClass("mobile-menu-active")&&e("body").removeClass("mobile-menu-active")}),e(".main-navigation").find("li:has(ul)").children("a").after('<span class="subnav-toggle"></span>'),e(".main-navigation").on("click",".subnav-toggle",function(i){i.preventDefault(),e(this).toggleClass("open").next(".sub-menu, .children").slideToggle()})}(jQuery),function(e){e(window).on("load resize",function(){if(e(".site-header").length){var i=e(".site-header").outerHeight();if(matchMedia("(max-width: 1199px)").matches)if(e("#wpadminbar").length){var t=e("#wpadminbar").outerHeight();e(".main-navigation").css("top",i+t-1)}else e(".main-navigation").css("top",i-1);else e(".main-navigation").css("top","auto")}})}(jQuery),function(e){var i=e(".header-search-toggle");i.length&&i.on("click",function(){e(".header-search-form").slideToggle()})}(jQuery);