"); }) } var locHash = window.location.hash; var locInterval = setInterval(function() { if (document.readyState == "complete") { clearInterval(locInterval); if (locHash != undefined && locHash != "" && locHash != null) { if (jQuery(locHash + "_secscroll").length > 0) { if (locHash.indexOf("split_frame_with_text_cta_and_video") > -1 && jQuery(locHash + "_secscroll .split_frame_with_text_cta_and_video_inner").length > 0) { jQuery("body, html").animate({ scrollTop: jQuery(locHash + "_secscroll .split_frame_with_text_cta_and_video_inner").offset().top - 120 }, 1000); } else { jQuery("body, html").animate({ scrollTop: jQuery(locHash + "_secscroll").offset().top - 160 }, 1000); } } } } }); jQuery("a").on("click", function(e) { e.preventDefault(); var scbsection = false; if (jQuery(this).closest(".section_scroll_to_section_buttons").hasClass("enable_sticky_animation")) { scbsection = true; } var link1 = jQuery(this).attr("href"); var target1 = jQuery(this).attr("target"); if (target1 == undefined || target1 == null || target1 == "") { target1 = "_self"; } if (link1.indexOf("#") > -1 && jQuery(this).closest("#wpadminbar").length == 0 && link1.indexOf("/page/") <= -1) { var link1Arr = link1.split('#'); if (link1Arr.length > 1) { var linkId = link1Arr[1]; if (jQuery("#" + linkId + "_secscroll").length > 0) { if (linkId.indexOf("split_frame_with_text_cta_and_video") > -1 && jQuery(linkId + "_secscroll .split_frame_with_text_cta_and_video_inner").length > 0) { jQuery("body, html").animate({ scrollTop: jQuery("#" + linkId + "_secscroll .split_frame_with_text_cta_and_video_inner").offset().top - 110 }, 1000); } if (scbsection) { jQuery("body, html").animate({ scrollTop: jQuery("#" + linkId + "_secscroll").offset().top - (jQuery(".site-header").outerHeight() + jQuery(".section_scroll_to_section_buttons.enable_sticky_animation .scroll_to_section_buttons").outerHeight() + 10) }, 1000); } else { jQuery("body, html").animate({ scrollTop: jQuery("#" + linkId + "_secscroll").offset().top - 160 }, 1000); } } else { if (link1.indexOf("/page/") <= -1) { window.open(link1, target1); } } } else { if (link1.indexOf("/page/") <= -1) { window.open(link1, target1); } } } else { if (link1.indexOf("/page/") <= -1) { window.open(link1, target1); } } }); jQuery(".accordion__inner__wrapper .item__inner__content").hide(); jQuery(".accordion__inner__wrapper .item__inner__headingacc").on("click", function(e) { e.preventDefault(); if (jQuery(this).next().is(":visible")) { jQuery(this).removeClass("active"); jQuery(this).next().slideUp(); } else { jQuery(this).closest(".accordion__inner__wrapper").find(".item__inner__contentacc").slideUp(); jQuery(this).closest(".accordion__inner__wrapper").find(".item__inner__headingacc").removeClass("active"); // jQuery(this).closest(".accordion__inner__wrapper").find(".list_title").slideUp(); jQuery(this).addClass("active"); jQuery(this).next().slideDown(); } }); if (jQuery(window).scrollTop() > 100) { jQuery("button.back_to_top").addClass("show"); } else { jQuery("button.back_to_top").removeClass("show"); } jQuery("#mega-menu-primary > .mega-menu-item.mega-menu-item-has-children").each(function() { if (jQuery(this).find(".current-menu-item").length > 0) { jQuery(this).addClass("mega-current-menu-parent"); } }) }); jQuery(window).on("scroll", function() { if (jQuery(window).scrollTop() > 100) { jQuery("button.back_to_top").addClass("show"); } else { jQuery("button.back_to_top").removeClass("show"); } }) jQuery("button.back_to_top").on("click", function() { jQuery("body, html").animate({ scrollTop: 0 }, 1000); })