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