!function(e){"use strict";e.fn.fusion_scroll_to_anchor_target=function(t){var s,i,a,r,c,l,u,f=0[0]!==e(this).attr("href")?e(this).attr("href"):e(this).data("link"),p=f.substr(f.indexOf("#")).slice(1),n=e("#"+p),d=e("html").hasClass("ua-edge")||e("html").hasClass("ua-safari-12")||e("html").hasClass("ua-safari-11")||e("html").hasClass("ua-safari-10")?"body":"html",h=e(".fusion-tb-header").length,o=!1,m=!1;if(t=0[0]!==t?t:0,n.length&&""!==p){if((n.parents(".hundred-percent-height-scrolling").length||n.find(".hundred-percent-height-scrolling").length)&&(0!=fusionScrollToAnchorVars.container_hundred_percent_height_mobile||!Modernizr.mq("only screen and (max-width: "+fusionScrollToAnchorVars.content_break_point+"px)"))){if((r=n.hasClass("fusion-scroll-section-element")?n:n.parents(".fusion-scroll-section-element")).hasClass("active")&&r.offset().top>=e(window).scrollTop()&&r.offset().tops?a-u:a+u,e(d).animate({scrollTop:c},{duration:400,easing:"easeInExpo",complete:function(){i="function"==typeof getAdminbarHeight?getAdminbarHeight():0,h?((o=fusionGetStickyOffset())||(o=i),s=n.offset().top-o-t):(l="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,s=n.offset().top-i-l-t),e(d).animate({scrollTop:s},450,"easeOutExpo",function(){location.hash&&"#_"===location.hash.substring(0,2)&&"history"in window&&"replaceState"in history&&history.replaceState("",window.location.href.replace("#_","#"),window.location.href.replace("#_","#")),h&&(m=fusionGetStickyOffset(),o!==m&&(s=n.offset().top-m-t,e(d).animate({scrollTop:s},450)),e("body").removeClass("fusion-scrolling-active"))})}}),(n.hasClass("tab-pane")||n.hasClass("tab-link"))&&"function"==typeof e.fn.fusionSwitchTabOnLinkClick&&setTimeout(function(){n.parents(".fusion-tabs").fusionSwitchTabOnLinkClick()},100),!1}}}(jQuery),jQuery(document).ready(function(){jQuery("body").on("click",'.fusion-menu a:not([href="#"], .fusion-megamenu-widgets-container a, .search-link), .fusion-widget-menu a, .fusion-secondary-menu a, .fusion-mobile-nav-item a:not([href="#"], .search-link), .fusion-button:not([href="#"], input, button), .fusion-one-page-text-link:not([href="#"]), .fusion-content-boxes .fusion-read-more:not([href="#"]), .fusion-imageframe > .fusion-no-lightbox, .content-box-wrapper:not(.link-area-box) .heading-link, a.woocommerce-review-link',function(e){var t,n,s,o,i,a,r=jQuery("body").hasClass("fusion-builder-live");if(jQuery(this).hasClass("avada-noscroll")||jQuery(this).parent().hasClass("avada-noscroll")||jQuery(this).is(".fusion-content-box-button, .fusion-tagline-button")&&jQuery(this).parents(".avada-noscroll").length)return!0;if(this.hash){if(a=jQuery(this).attr("target")?jQuery(this).attr("target"):"_self",o=(i=0[0]!==(s=(n=jQuery(this).attr("href")).split("#"))[1]?s[1]:"").substring(0,1),"/"!==(t=s[0]).substring(t.length-1,t.length)&&(t+="index.html"),"!"===o||"/"===o)return;e.preventDefault(),location.pathname.replace(/^\//,"")!=this.pathname.replace(/^\//,"")&&"#"!==n.charAt(0)||""!==location.search&&-1===location.search.indexOf("lang=")&&-1===location.search.indexOf("builder=")&&!jQuery(this).hasClass("tfs-scroll-down-indicator")&&!jQuery(this).hasClass("fusion-same-page-scroll")?r||("/"===t&&""!==location.search&&(t=location.href.replace(location.search,"")),window.open(t+"#_"+i,a)):(jQuery(this).fusion_scroll_to_anchor_target(),"history"in window&&"replaceState"in history&&!r&&history.replaceState("",n,n),jQuery(this).parents(".fusion-menu-element-wrapper.flyout-submenu-expanded").length?jQuery(".fusion-close-flyout").trigger("click"):jQuery(this).parents(".fusion-flyout-menu").length&&jQuery(".fusion-flyout-menu-toggle").trigger("click"))}})}),location.hash&&"#_"===location.hash.substring(0,2)&&(jQuery(".fusion-page-load-link").attr("href",decodeURIComponent("#"+location.hash.substring(2))),jQuery(window).on("load",function(){jQuery(".fusion-blog-shortcode").length?setTimeout(function(){jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()},300):jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()})) ;function checkHoverTouchState(){var t,e=!1;document.addEventListener("touchstart",function(){clearTimeout(t),e=!0,jQuery("body").addClass("fusion-touch"),jQuery("body").removeClass("fusion-no-touch"),t=setTimeout(function(){e=!1},500)}),document.addEventListener("mouseover",function(){e||(e=!1,jQuery("body").addClass("fusion-no-touch"),jQuery("body").removeClass("fusion-touch"))})}checkHoverTouchState(),jQuery(document).ready(function(){jQuery("input, textarea").placeholder()}) ;jQuery(document).ready(function(){jQuery(".fusion-vertical-menu-widget .current_page_item, .fusion-vertical-menu-widget .current-menu-item").each(function(){jQuery(this).find(".children, .sub-menu").length&&jQuery(this).find("> .children, > .sub-menu").show("slow")}),jQuery(".fusion-vertical-menu-widget .current_page_item , .fusion-vertical-menu-widget .current-menu-item").each(function(){jQuery(this).parent().hasClass("fusion-vertical-menu-widget")&&jQuery(this).find("ul").show("slow"),(jQuery(this).parent().hasClass("children")||jQuery(this).parent().hasClass("sub-menu"))&&jQuery(this).parents("ul").show("slow")})}),jQuery(window).on("load",function(){jQuery(".fusion-vertical-menu-widget.click li a .arrow").on("click",function(e){if(e.preventDefault(),(jQuery(this).parent().parent(".page_item_has_children").length||jQuery(this).parent().parent(".menu-item-has-children").length)&&(jQuery(this).parent().parent().find("> .children, > .sub-menu").length&&!jQuery(this).parent().parent().find("> .children, > .sub-menu").is(":visible")?jQuery(this).parent().parent().find("> .children, > .sub-menu").stop(!0,!0).slideDown("slow"):jQuery(this).parent().parent().find("> .children, > .sub-menu").stop(!0,!0).slideUp("slow")),jQuery(this).parent().parent(".page_item_has_children.current_page_item, .menu-item-has-children.current-menu-item").length)return!1}),jQuery(".fusion-vertical-menu-widget.hover li").hoverIntent({over:function(){jQuery(this).find("> .children, > .sub-menu").length&&jQuery(this).find("> .children, > .sub-menu").stop(!0,!0).slideDown("slow")},out:function(){(0===jQuery(this).find(".current_page_item").length&&!1===jQuery(this).hasClass("current_page_item")||0===jQuery(this).find(".current-menu-item").length&&!1===jQuery(this).hasClass("current-menu-item"))&&jQuery(this).find("> .children, > .sub-menu").stop(!0,!0).slideUp("slow")},timeout:500})})