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