$('input[name="globalunsub"]').change((function(){$(this).is(":checked")?($(".item").addClass("disabled"),$(".item input").attr("disabled","disabled")):($(".item").removeClass("disabled"),$(".item input").removeAttr("disabled"))})),$(".hs-blog-listing").parent().addClass("blog"),$(".hs-blog-post").parent().addClass("blog"),$(".body-container-wrapper").attr("id","top"),$((function(){$("a[href*=#]:not([href=#])").click((function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var target=$(this.hash);if((target=target.length?target:$("[name="+this.hash.slice(1)+"]")).length)return $("html,body").animate({scrollTop:target.offset().top},1e3),!1}}))})),$(".header-menu-toggle").click((function(){$("body").toggleClass("menu-open")})),$(".header-nav-close").click((function(){$("body").removeClass("menu-open")})),$(window).scroll((function(){$(window).scrollTop()>=10?$("body").addClass("fixed-header"):$("body").removeClass("fixed-header")})),$(".custom-menu-primary .flyouts .hs-item-has-children > a").after('
'),$(".child-trigger").click((function(){return $(this).parent().siblings(".hs-item-has-children").find(".child-trigger").removeClass("child-open"),$(this).parent().siblings(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250),$(this).next(".hs-menu-children-wrapper").slideToggle(250),$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250),$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".child-trigger").removeClass("child-open"),$(this).toggleClass("child-open"),!1})),document.addEventListener("DOMContentLoaded",(function(event){var element=document.querySelector(".blog-sidebar");if(null!==element){function resize(){window.innerWidth<768?element.classList.add("mobile"):element.classList.remove("mobile")}window.onload=resize,window.onresize=resize;var topicListing=document.querySelector(".blog-sidebar-topic-filter h3"),topicListingSidebar=document.querySelector(".blog-sidebar-topic-filter"),postListing=document.querySelector(".blog-sidebar-post-listing h3"),postListingSidebar=document.querySelector(".blog-sidebar-post-listing");postListing.addEventListener("click",(function(event){postListingSidebar.classList.toggle("clicked")})),topicListing.addEventListener("click",(function(event){topicListingSidebar.classList.toggle("clicked")}))}}));let no_banner=document.querySelector(".cm-banner-area");null==no_banner&&document.querySelector("body").classList.add("no-banner");