jquery(document).ready(function(){"use strict";function a(a){"top"===avadamenuvars.header_position&&(jquery(a).mouseenter(function(){jquery(this).find("> div").length&&0>jquery(this).find("> div").offset().left&&jquery(this).find("> div").css({left:"0",right:"auto"}),jquery(this).find("> div").length&&jquery(this).find("> div").offset().left+jquery(this).find("> div").width()>jquery(window).width()&&jquery(this).find("> div").css({left:"auto",right:"0"})}),jquery(window).on("resize",function(){jquery(a).find("> div").each(function(){var a=jquery(this),b=a.outerwidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jquery(window).width();jquery("body.rtl").length?c==e&&d>f||cf?a.css({left:"auto",right:"0"}):a.css({left:"0",right:"auto"}):cc||c==e&&0>c-b?a.css({left:"0",right:"auto"}):a.css({left:"auto",right:"0"})})}))}function b(){var a,b,c=jquery(".fusion-header-has-flyout-menu"),d=0,e=c.find(".fusion-header").offset().top;jquery("body").bind("touchmove",function(a){jquery(a.target).parents(".fusion-flyout-menu").length||a.preventdefault()}),1<=jquery(".fusion-mobile-menu-design-flyout").length?(b=1<=jquery(".fusion-is-sticky").length&&1<=jquery(".fusion-mobile-sticky-nav-holder").length?c.find(".fusion-flyout-menu.fusion-mobile-sticky-nav-holder"):c.find(".fusion-flyout-menu:not(.fusion-mobile-sticky-nav-holder)"),c.find(".fusion-flyout-menu").css({display:"none"}),b.css({display:"flex"})):b=c.find(".fusion-flyout-menu"),jquery(".fusion-header-has-flyout-menu .fusion-secondary-header").length&&(d=jquery(".fusion-header-has-flyout-menu .fusion-secondary-header").outerheight()),window.$wpadminbarheight=jquery("#wpadminbar").length?jquery("#wpadminbar").height():0,a=jquery(".fusion-header-has-flyout-menu-content").height()+jquery(".fusion-secondary-header").height()+window.$wpadminbarheight,c.hasclass("fusion-flyout-menu-active")&&(b.css({height:"calc(100% - "+a+"px)","margin-top":a}),b.find(".fusion-menu").height()>b.height()&&b.css("display","flex")),"0"==avadamenuvars.header_sticky?(c.find(".fusion-header").css({position:"fixed",width:"100%","max-width":"100%",top:window.$wpadminbarheight+d,"z-index":"210"}),jquery(".fusion-header-sticky-height").css({display:"block",height:c.find(".fusion-header").outerheight()})):e>window.$wpadminbarheight&&(c.find(".fusion-header").css({position:"fixed",top:window.$wpadminbarheight+d}),jquery(".layout-boxed-mode").length&&c.find(".fusion-header").css("max-width",jquery("#wrapper").outerwidth()+"px"),jquery(".fusion-header-wrapper").css("height",""))}function c(){settimeout(function(){var a=jquery(".fusion-header-has-flyout-menu"),b=0;jquery(".fusion-header-has-flyout-menu .fusion-secondary-header").length&&(b=jquery(".fusion-header-has-flyout-menu .fusion-secondary-header").outerheight()),a.find(".fusion-flyout-menu").css("display",""),"0"==avadamenuvars.header_sticky?(a.find(".fusion-header").attr("style",""),jquery(".fusion-header-sticky-height").attr("style","")):"fixed"===a.find(".fusion-header").css("position")&&(a.find(".fusion-header").css("position",""),a.find(".fusion-header").offset().top>b&&a.find(".fusion-header").css("top",window.$wpadminbarheight),jquery(window).trigger("scroll")),jquery("body").unbind("touchmove")},250)}var d;jquery(".fusion-dropdown-svg").length&&jquery(".fusion-dropdown-svg").each(function(){var a=jquery(this).parents("li").find("> .sub-menu > li:first-child");(jquery(a).hasclass("current-menu-item")||jquery(a).hasclass("current-menu-parent")||jquery(a).hasclass("current_page_item"))&&jquery(this).addclass("fusion-svg-active"),jquery(a).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("hover",function(){jquery(this).parents("li").find(".fusion-dropdown-svg").toggleclass("fusion-svg-active")})}),jquery.fn.fusion_position_menu_dropdown=function(){return"top"===avadamenuvars.header_position&&!jquery("body.rtl").length||"left"===avadamenuvars.header_position?jquery(this).children(".sub-menu").each(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=jquery(this);p.removeattr("style"),p.show(),p.removedata("shifted"),p.length&&(a=p.offset(),b=a.left,c=a.top,d=p.height(),e=p.outerwidth(),f=c+d,g=b+e,j=jquery("#wpadminbar").length?jquery("#wpadminbar").height():0,k=jquery(window).scrolltop(),l=jquery(window).height(),m=k+l,h=jquery(window).width(),g>h?(p.addclass("fusion-switched-side"),p.parent().parent(".sub-menu").length?p.css({left:-1*e}):p.css("left",-1*e+p.parent().width()),p.data("shifted",1)):p.parent().parent(".sub-menu").length&&(p.removeclass("fusion-switched-side"),p.parent().parent(".sub-menu").data("shifted")&&(p.css("left",-1*e),p.data("shifted",1))),"top"!==avadamenuvars.header_position&&f>m&&(i=d li > a").off("hover"),p.parents("li").find(".fusion-dropdown-svg").removeclass("fusion-svg-active"),n=math.floor(i/p.find("li").outerheight()),i=n*p.find("li").outerheight(),o=p.find("> li:nth-child( "+(math.abs(n)+1)+")"),(jquery(o).hasclass("current-menu-item")||jquery(o).hasclass("current-menu-parent")||jquery(o).hasclass("current_page_item"))&&p.parents("li").find(".fusion-dropdown-svg").addclass("fusion-svg-active"),jquery(o).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("hover",function(){p.parents("li").find(".fusion-dropdown-svg").toggleclass("fusion-svg-active")})),p.css("top",i)))}):jquery(this).children(".sub-menu").each(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;jquery(this).removeattr("style"),jquery(this).removedata("shifted"),a=jquery(this),a.length&&(b=a.offset(),c=b.left,d=b.top,e=a.height(),f=a.outerwidth(),g=d+e,h=jquery("#wpadminbar").length?jquery("#wpadminbar").height():0,i=jquery(window).scrolltop(),j=jquery(window).height(),k=i+j,m="right",0>c?(a.addclass("fusion-switched-side"),a.parent().parent(".sub-menu").length?ck&&(l=e li > a").off("hover"),a.parents("li").find(".fusion-dropdown-svg").removeclass("fusion-svg-active"),n=math.floor(l/a.find("li").outerheight()),l=n*a.find("li").outerheight(),o=a.find("> li:nth-child( "+(math.abs(n)+1)+")"),(jquery(o).hasclass("current-menu-item")||jquery(o).hasclass("current-menu-parent")||jquery(o).hasclass("current_page_item"))&&a.parents("li").find(".fusion-dropdown-svg").addclass("fusion-svg-active"),jquery(o).not(".current-menu-item, .current-menu-parent, .current_page_item").find("> a").on("hover",function(){a.parents("li").find(".fusion-dropdown-svg").toggleclass("fusion-svg-active")})),a.css("top",l)))})},jquery.fn.walk_through_menu_items=function(){jquery(this).fusion_position_menu_dropdown(),jquery(this).find(".sub-menu").length&&jquery(this).find(".sub-menu li").walk_through_menu_items()},jquery.fn.position_cart_dropdown=function(){"top"!==avadamenuvars.header_position&&jquery(this).find(".fusion-menu-cart-items").each(function(){var a,b,c,d=jquery(this),e=d.height(),f=jquery("#wpadminbar").length?jquery("#wpadminbar").height():0,g=jquery(window).scrolltop(),h=jquery(window).height(),i=g+h;d.css("top",""),a=d.offset().top,(b=a+e)>i&&(c=eh&&(c=-1*(b-h+10),d.css("top",c))})},jquery.fn.fusion_position_megamenu=function(){var a,b,c,d,e,f;return jquery(".side-header-left").length?this.each(function(){jquery(this).children("li").each(function(){var a,b,c,d,e,f,g,h,i=jquery(this),j=i.find(".fusion-megamenu-wrapper");j.length&&(j.removeattr("style"),a=jquery("#side-header").outerwidth()-1,b=j.offset().top,c=j.height(),d=b+c,e=jquery("#wpadminbar").length?jquery("#wpadminbar").height():0,f=jquery(".side-header-wrapper").offset().top-e,g=jquery(window).height(),jquery("body.rtl").length?j.css({left:a,right:"auto"}):j.css("left",a),d>f+g&&jquery(window).height()>=jquery(".side-header-wrapper").height()&&(h=cf+g&&jquery(window).height()>=jquery(".side-header-wrapper").height()&&(h=cf&&(i=-1*(f-d)),g.css("right",i)))})}):this.each(function(){jquery(this).children("li").each(function(){var a=jquery(this),b=a.offset(),c=a.find(".fusion-megamenu-wrapper"),d=c.outerwidth(),g=0,h=0;c.length&&(c.removeattr("style"),h=jquery(".fusion-secondary-main-menu").length?jquery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jquery(".fusion-header-wrapper .fusion-row"),c.hasclass("col-span-12")&&h.width()f&&(g=-1*(b.left-(f-d)),"right"===avadamenuvars.logo_alignment.tolowercase()&&b.left+ge+f&&(c.css("right","-1px").css("left","auto"),c.find(".sub-menu").each(function(){jquery(this).css("right","100px").css("left","auto")})))},jquery(".fusion-main-menu > ul > li:last-child").addclass("fusion-last-menu-item"),jquery.fn.fusion_position_menu_dropdown&&(jquery(".fusion-dropdown-menu, .fusion-dropdown-menu li").mouseenter(function(){jquery(this).fusion_position_menu_dropdown()}),jquery(".fusion-dropdown-menu > ul > li").each(function(){jquery(this).walk_through_menu_items()}),jquery(window).on("resize",function(){jquery(".fusion-dropdown-menu > ul > li").each(function(){jquery(this).walk_through_menu_items()})})),jquery(".fusion-dropdown-menu").mouseenter(function(){jquery(this).css("overflow","visible")}),jquery(".fusion-dropdown-menu, .fusion-megamenu-menu, .fusion-custom-menu-item ").mouseleave(function(){jquery(this).css("overflow",""),jquery(".fusion-active-link").removeclass("fusion-active-link")}),jquery("a").on("focus",function(){jquery(".fusion-active-link ").removeclass("fusion-active-link"),jquery(this).parents(".fusion-dropdown-menu, .fusion-main-menu-cart, .fusion-megamenu-menu, .fusion-custom-menu-item").length&&(jquery(this).parents("li").addclass("fusion-active-link"),jquery(".fusion-main-menu").css("overflow","visible"))}),jquery(document).click(function(){jquery(".fusion-main-menu-search .fusion-custom-menu-item-contents").hide(),jquery(".fusion-main-menu-search").removeclass("fusion-main-menu-search-open"),jquery(".fusion-main-menu-search").find("style").remove()}),jquery(".fusion-main-menu-search").click(function(a){a.stoppropagation()}),jquery(".fusion-main-menu-search .fusion-main-menu-icon").click(function(a){a.preventdefault(),a.stoppropagation(),"block"===jquery(this).parent().find(".fusion-custom-menu-item-contents").css("display")?(jquery(this).parent().find(".fusion-custom-menu-item-contents").hide(),jquery(this).parent().removeclass("fusion-main-menu-search-open"),jquery(this).parent().find("style").remove()):(jquery(this).parent().find(".fusion-custom-menu-item-contents").removeattr("style"),jquery(this).parent().find(".fusion-custom-menu-item-contents").show(),jquery(this).parent().addclass("fusion-main-menu-search-open"),jquery(this).parent().append(""),jquery(this).parent().find(".fusion-custom-menu-item-contents .s").focus(),"top"===avadamenuvars.header_position&&(!jquery("body.rtl").length&&0>jquery(this).parent().find(".fusion-custom-menu-item-contents").offset().left&&jquery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"0",right:"auto"}),jquery("body.rtl").length&&jquery(this).parent().find(".fusion-custom-menu-item-contents").offset().left+jquery(this).parent().find(".fusion-custom-menu-item-contents").width()>jquery(window).width()&&jquery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"auto",right:"0"})))}),jquery.fn.fusion_position_megamenu&&(jquery(".fusion-main-menu > ul").fusion_position_megamenu(),jquery(".fusion-main-menu .fusion-megamenu-menu").mouseenter(function(){jquery(this).parent().fusion_position_megamenu()}),jquery(window).resize(function(){jquery(".fusion-main-menu > ul").fusion_position_megamenu()})),jquery.fn.calc_megamenu_responsive_column_widths&&(jquery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths(),jquery(window).resize(function(){jquery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths()})),jquery(".fusion-header-wrapper .fusion-secondary-menu > ul > li:last-child").position_last_top_menu_item(),a(".fusion-main-menu .fusion-main-menu-cart"),a(".fusion-secondary-menu .fusion-menu-login-box"),jquery(".fusion-megamenu-menu").mouseenter(function(){jquery(this).find(".shortcode-map").length&&jquery(this).find(".shortcode-map").each(function(){jquery(this).reinitializegooglemap()})}),d=!1,jquery(".fusion-megamenu-menu").mouseover(function(){jquery(this).find(".fusion-megamenu-widgets-container iframe").each(function(){d||jquery(this).attr("src",jquery(this).attr("src")),d=!0})}),jquery(".fusion-megamenu-wrapper iframe").mouseover(function(){jquery(this).parents(".fusion-megamenu-widgets-container").css("display","block"),jquery(this).parents(".fusion-megamenu-wrapper").css({opacity:"1",visibility:"visible"})}),jquery(".fusion-megamenu-wrapper iframe").mouseout(function(){jquery(this).parents(".fusion-megamenu-widgets-container").css("display",""),jquery(this).parents(".fusion-megamenu-wrapper").css({opacity:"",visibility:""})}),jquery(".fusion-main-menu").on("mouseenter",".fusion-menu-cart",function(){jquery(this).position_cart_dropdown()}),jquery(".fusion-main-menu .fusion-main-menu-search .fusion-main-menu-icon").click(function(){var a=jquery(this);settimeout(function(){a.parent().find(".fusion-custom-menu-item-contents").position_menu_search_form()},5)}),jquery(window).on("resize",function(){jquery(".fusion-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents").position_menu_search_form()}),jquery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").each(function(){var a=jquery(this),b="",c="",d="";c=jquery(".fusion-mobile-navigation").length?jquery(this).parent().find(".fusion-mobile-navigation, .fusion-secondary-menu").not(".fusion-sticky-menu"):jquery(this).parent().find(".fusion-main-menu, .fusion-secondary-menu").not(".fusion-sticky-menu"),c.length&&("classic"===avadamenuvars.mobile_menu_design&&(a.append('"),jquery(this).find(".fusion-mobile-selector").append('
')),jquery(a).append(jquery(c).find("> ul").clone()),b=jquery(a).find("> ul"),d=b.attr("id"),b.attr("id","mobile-"+d),b.removeclass("fusion-middle-logo-ul"),"classic"===avadamenuvars.mobile_menu_design&&a.find(".fusion-mobile-selector").attr("aria-controls",b.attr("id")),b.find(".fusion-middle-logo-menu-logo, .fusion-caret, .fusion-menu-login-box .fusion-custom-menu-item-contents, .fusion-menu-cart .fusion-custom-menu-item-contents, .fusion-main-menu-search, li> a > span > .button-icon-divider-left, li > a > span > .button-icon-divider-right, .fusion-arrow-svg, .fusion-dropdown-svg").remove(),(jquery(".no-mobile-slidingbar").length||"classic"!==avadamenuvars.mobile_menu_design)&&b.find(".fusion-main-menu-sliding-bar").remove(),"classic"===avadamenuvars.mobile_menu_design?b.find(".fusion-menu-cart > a").html(avadamenuvars.mobile_nav_cart):b.find(".fusion-main-menu-cart").remove(),b.find("li").each(function(){var a="fusion-mobile-nav-item";jquery(this).data("classes")&&(a+=" "+jquery(this).data("classes")),jquery(this).find("img").hasclass("wpml-ls-flag")&&(a+=" wpml-ls-item"),jquery(this).hasclass("menu-item-has-children")&&(a+=" menu-item-has-children"),jquery(this).find("> a > .menu-text").removeattr("class").addclass("menu-text"),(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jquery(this).attr("class",a),jquery(this).attr("id")&&jquery(this).attr("id",jquery(this).attr("id").replace("menu-item","mobile-menu-item")),jquery(this).attr("style","")}),jquery(this).find(".fusion-mobile-selector").click(function(){b.hasclass("mobile-menu-expanded")?(b.removeclass("mobile-menu-expanded"),jquery(this).attr("aria-expanded","false")):(b.addclass("mobile-menu-expanded"),jquery(this).attr("aria-expanded","true")),b.slidetoggle(200,"easeoutquad"),jquery(".fusion-mobile-menu-search").slidetoggle(200,"easeoutquad")}))}),jquery(".fusion-mobile-sticky-nav-holder").each(function(){var a=jquery(this),b="",c=jquery(this).parent().find(".fusion-sticky-menu");"classic"===avadamenuvars.mobile_menu_design&&(a.append('"),jquery(this).find(".fusion-mobile-selector").append('
')),jquery(a).append(jquery(c).find("> ul").clone()),b=jquery(a).find("> ul"),"classic"===avadamenuvars.mobile_menu_design&&a.find(".fusion-mobile-selector").attr("aria-controls",b.attr("id")),b.find(".fusion-middle-logo-menu-logo, .fusion-menu-cart, .fusion-menu-login-box, .fusion-main-menu-search, .fusion-arrow-svg, .fusion-dropdown-svg").remove(),(jquery(".no-mobile-slidingbar").length||"classic"!==avadamenuvars.mobile_menu_design)&&b.find(".fusion-main-menu-sliding-bar").remove(),b.find(".fusion-button").attr("class","menu-text"),b.find("li").each(function(){var a="fusion-mobile-nav-item";jquery(this).data("classes")&&(a+=" "+jquery(this).data("classes")),jquery(this).find("img").hasclass("wpml-ls-flag")&&(a+=" wpml-ls-item"),(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jquery(this).attr("class",a),jquery(this).attr("id")&&jquery(this).attr("id",jquery(this).attr("id").replace("menu-item","mobile-menu-item")),jquery(this).attr("style","")}),jquery(this).find(".fusion-mobile-selector").click(function(){b.hasclass("mobile-menu-expanded")?(b.removeclass("mobile-menu-expanded"),jquery(this).attr("aria-expanded","false")):(b.addclass("mobile-menu-expanded"),jquery(this).attr("aria-expanded","true")),b.slidetoggle(200,"easeoutquad"),jquery(".fusion-mobile-menu-search").slidetoggle(200,"easeoutquad")})}),jquery(".fusion-mobile-nav-holder > ul > li").each(function(){jquery(this).find(".fusion-megamenu-widgets-container").remove(),jquery(this).find(".fusion-megamenu-holder > ul").each(function(){jquery(this).attr("class","sub-menu"),jquery(this).attr("style",""),jquery(this).find("> li").each(function(){var a,b="fusion-mobile-nav-item";jquery(this).data("classes")&&(b+=" "+jquery(this).data("classes")),jquery(this).find("img").hasclass("wpml-ls-flag")&&(b+=" wpml-ls-item"),(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor")||jquery(this).hasclass("fusion-mobile-current-nav-item"))&&(b+=" fusion-mobile-current-nav-item"),jquery(this).hasclass("menu-item-has-children")&&(b+=" menu-item-has-children"),jquery(this).attr("class",b),jquery(this).find(".fusion-megamenu-title a, > a").length||(jquery(this).find(".fusion-megamenu-title").each(function(){jquery(this).children("a").length||jquery(this).append(''+jquery(this).text()+"")}),jquery(this).find(".fusion-megamenu-title").length||(a=jquery(this),jquery(this).find(".sub-menu").each(function(){a.after(jquery(this))}),jquery(this).remove())),jquery(this).prepend(jquery(this).find(".fusion-megamenu-title a, > a")),jquery(this).find(".fusion-megamenu-title").remove()}),jquery(this).closest(".fusion-mobile-nav-item").append(jquery(this))}),jquery(this).find(".fusion-megamenu-wrapper, .caret, .fusion-megamenu-bullet").remove()}),jquery(".fusion-is-sticky").length&&jquery(".fusion-mobile-sticky-nav-holder").length?jquery(".fusion-mobile-menu-icons .fusion-icon-bars").attr("aria-controls",jquery(".fusion-mobile-sticky-nav-holder > ul").attr("id")):jquery(".fusion-mobile-menu-icons .fusion-icon-bars").attr("aria-controls",jquery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").find("> ul").attr("id")),jquery(window).scroll(function(){settimeout(function(){jquery(".fusion-is-sticky").length&&jquery(".fusion-mobile-sticky-nav-holder").length?jquery(".fusion-mobile-menu-icons .fusion-icon-bars").attr("aria-controls",jquery(".fusion-mobile-sticky-nav-holder > ul").attr("id")):jquery(".fusion-mobile-menu-icons .fusion-icon-bars").attr("aria-controls",jquery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").find("> ul").attr("id"))},50)}),jquery(".fusion-mobile-menu-icons .fusion-icon-bars").click(function(a){var b,c;a.preventdefault(),b=1<=jquery(".fusion-header-v4").length||1<=jquery(".fusion-header-v5").length?".fusion-secondary-main-menu":1<=jquery("#side-header").length?"#side-header":".fusion-header",c=1<=jquery(".fusion-is-sticky").length&&1<=jquery(".fusion-mobile-sticky-nav-holder").length?jquery(b).find(".fusion-mobile-sticky-nav-holder"):jquery(b).find(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder"),c.slidetoggle(200,"easeoutquad"),c.toggleclass("fusion-mobile-menu-expanded"),c.hasclass("fusion-mobile-menu-expanded")?jquery(this).attr("aria-expanded","true"):jquery(this).attr("aria-expanded","false")}),jquery(".fusion-mobile-menu-icons .fusion-icon-search").click(function(a){a.preventdefault(),jquery(".fusion-mobile-menu-search").slidetoggle(200,"easeoutquad")}),jquery('.fusion-mobile-nav-holder .fusion-mobile-nav-item a:not([href="#"])').click(function(){""!==jquery(this.hash).length&&this.hash.slice(1)&&(jquery(this).parents(".fusion-mobile-menu-design-classic").length?(jquery(this).parents(".fusion-menu, .menu").hide().removeclass("mobile-menu-expanded"),jquery(".fusion-mobile-menu-search").hide()):jquery(this).parents(".fusion-mobile-nav-holder").hide())}),1==avadamenuvars.submenu_slideout&&"flyout"!==avadamenuvars.mobile_menu_design&&(jquery(".fusion-mobile-nav-holder > ul li").each(function(){var a="fusion-mobile-nav-item";jquery(this).data("classes")&&(a+=" "+jquery(this).data("classes")),jquery(this).find("img").hasclass("wpml-ls-flag")&&(a+=" wpml-ls-item"),(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor")||jquery(this).hasclass("fusion-mobile-current-nav-item"))&&(a+=" fusion-mobile-current-nav-item"),jquery(this).hasclass("menu-item-has-children")&&(a+=" menu-item-has-children"),jquery(this).attr("class",a),jquery(this).find(" > ul").length&&(jquery(this).find("> a").after(''),jquery(this).find(" > ul").hide())}),jquery(".fusion-mobile-nav-holder .fusion-open-submenu").click(function(a){var b=jquery(this).parent().children(".sub-menu");a.stoppropagation(),b.slidetoggle(200,"easeoutquad"),b.toggleclass("fusion-sub-menu-open"),b.hasclass("fusion-sub-menu-open")?(jquery(this).attr("aria-label",avadamenuvars.mobile_submenu_close),jquery(this).attr("aria-expanded","true")):(jquery(this).attr("aria-label",avadamenuvars.mobile_submenu_open),jquery(this).attr("aria-expanded","false"))}),jquery(".fusion-mobile-nav-holder a").click(function(a){"#"===jquery(this).attr("href")&&("modal"===jquery(this).data("toggle")?jquery(this).trigger("show.bs.modal"):(a.preventdefault(),a.stoppropagation()),jquery(this).prev(".fusion-open-submenu").trigger("click"))})),jquery(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").on("click",function(a){var d=jquery(".fusion-header-has-flyout-menu");a.preventdefault(),d.hasclass("fusion-flyout-active")?(d.hasclass("fusion-flyout-search-active")?(d.addclass("fusion-flyout-menu-active"),b()):(d.removeclass("fusion-flyout-active"),d.removeclass("fusion-flyout-menu-active"),c()),d.removeclass("fusion-flyout-search-active")):(d.addclass("fusion-flyout-active"),d.addclass("fusion-flyout-menu-active"),b())}),jquery(".fusion-flyout-menu-icons .fusion-flyout-search-toggle").on("click",function(a){var d=jquery(".fusion-header-has-flyout-menu");a.preventdefault(),d.hasclass("fusion-flyout-active")?(d.hasclass("fusion-flyout-menu-active")?(d.addclass("fusion-flyout-search-active"),modernizr.mq("only screen and (min-width:"+parseint(avadamenuvars.side_header_break_point,10)+"px)")&&d.find(".fusion-flyout-search .s").focus()):(d.removeclass("fusion-flyout-active"),d.removeclass("fusion-flyout-search-active"),c()),d.removeclass("fusion-flyout-menu-active")):(d.addclass("fusion-flyout-active"),d.addclass("fusion-flyout-search-active"),modernizr.mq("only screen and (min-width:"+parseint(avadamenuvars.side_header_break_point,10)+"px)")&&d.find(".fusion-flyout-search .s").focus(),b())}),jquery(window).resize(function(){jquery(".fusion-mobile-menu-design-flyout").hasclass("fusion-flyout-active")&&modernizr.mq("screen and (min-width: "+(parseint(avadaheadervars.side_header_break_point,10)+1)+"px)")&&jquery(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").trigger("click")})}),jquery(window).load(function(){function a(){var a=0;modernizr.mq("only screen and (max-width: "+avadamenuvars.side_header_break_point+"px)")?(jquery(".fusion-secondary-menu > ul").children("li").each(function(){a+=jquery(this).outerwidth(!0)+2}),a>jquery(window).width()&&318 ul").append('
'),jquery(".fusion-secondary-menu > ul").css("position","relative"),jquery(".fusion-mobile-menu-sep").css({position:"absolute",top:jquery(".fusion-secondary-menu > ul > li").height()-1+"px",width:"100%","border-bottom-width":"1px","border-bottom-style":"solid"}),window.mobilemenusepadded=!0):(jquery(".fusion-secondary-menu > ul").css("position",""),jquery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),window.mobilemenusepadded=!1)):(jquery(".fusion-secondary-menu > ul").css("position",""),jquery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),window.mobilemenusepadded=!1)}window.mobilemenusepadded=!1,a(),"classic"===avadamenuvars.mobile_menu_design&&(jquery(".sh-mobile-nav-holder").append('
'+avadamenuvars.dropdown_goto+"
"),jquery(".sh-mobile-nav-holder .mobile-selector").append('
')),jquery(".sh-mobile-nav-holder").append(jquery(".nav-holder .fusion-navbar-nav").clone()),jquery(".sh-mobile-nav-holder .fusion-navbar-nav").attr("id","mobile-nav"),jquery(".sh-mobile-nav-holder ul#mobile-nav").removeclass("fusion-navbar-nav"),jquery(".sh-mobile-nav-holder ul#mobile-nav").children(".cart").remove(),jquery(".sh-mobile-nav-holder ul#mobile-nav .mobile-nav-item").children(".login-box").remove(),jquery(".sh-mobile-nav-holder ul#mobile-nav li").children("#main-nav-search-link").each(function(){jquery(this).parents("li").remove()}),jquery(".sh-mobile-nav-holder ul#mobile-nav").find("li").each(function(){var a="mobile-nav-item";(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor"))&&(a+=" mobile-current-nav-item"),jquery(this).attr("class",a),jquery(this).attr("id")&&jquery(this).attr("id",jquery(this).attr("id").replace("menu-item","mobile-menu-item")),jquery(this).attr("style","")}),jquery(".sh-mobile-nav-holder .mobile-selector").click(function(){jquery(".sh-mobile-nav-holder #mobile-nav").hasclass("mobile-menu-expanded")?jquery(".sh-mobile-nav-holder #mobile-nav").removeclass("mobile-menu-expanded"):jquery(".sh-mobile-nav-holder #mobile-nav").addclass("mobile-menu-expanded"),jquery(".sh-mobile-nav-holder #mobile-nav").slidetoggle(200,"easeoutquad")}),1==avadamenuvars.submenu_slideout&&(jquery(".header-wrapper .mobile-topnav-holder .mobile-topnav li, .header-wrapper .mobile-nav-holder .navigation li, .sticky-header .mobile-nav-holder .navigation li, .sh-mobile-nav-holder .navigation li").each(function(){var a="mobile-nav-item";(jquery(this).hasclass("current-menu-item")||jquery(this).hasclass("current-menu-parent")||jquery(this).hasclass("current-menu-ancestor")||jquery(this).hasclass("mobile-current-nav-item"))&&(a+=" mobile-current-nav-item"),jquery(this).attr("class",a),jquery(this).find(" > ul").length&&(jquery(this).prepend(''),jquery(this).find(" > ul").hide())}), jquery(".header-wrapper .mobile-topnav-holder .open-submenu, .header-wrapper .mobile-nav-holder .open-submenu, .sticky-header .mobile-nav-holder .open-submenu, .sh-mobile-nav-holder .open-submenu").click(function(a){a.stoppropagation(),jquery(this).parent().children(".sub-menu").slidetoggle(200,"easeoutquad")})),("ontouchstart"in document.documentelement||navigator.msmaxtouchpoints)&&(jquery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").on("click",function(){var a=jquery(this);return a.hasclass("hover")?(a.removeclass("hover"),!0):(a.addclass("hover"),jquery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").not(this).removeclass("hover"),!1)}),jquery(".sub-menu li, .fusion-mobile-nav-item li").not("li.menu-item-has-children").on("click",function(){var a=jquery(this).find("a").attr("href");return"_blank"!==jquery(this).find("a").attr("target")&&(0 a, .fusion-secondary-menu li.menu-item-has-children > a, .side-nav li.page_item_has_children > a").each(function(){jquery(this).attr("aria-haspopup","true")}),1<=jquery(".megaresponsive").length&&jquery(".mobile-nav-holder.main-menu").addclass("set-invisible"),"top"===avadamenuvars.header_position&&jquery(window).on("resize",function(){jquery(".main-nav-search").each(function(){var a,b,c,d,e,f;jquery(this).hasclass("search-box-open")&&(a=jquery(this).find(".main-nav-search-form"),b=a.outerwidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jquery(window).width(),jquery("body.rtl").length?c==e&&d>f||cf?a.css({left:"auto",right:"0"}):a.css({left:"0",right:"auto"}):cc||c==e&&0>c-b?a.css({left:"0",right:"auto"}):a.css({left:"auto",right:"0"}))})}),jquery(window).on("resize",function(){a()}),jquery(".fusion-custom-menu-item").on("hover",function(a){var b=jquery(this),c=b.find(".fusion-custom-menu-item-contents");c.find("input").click(function(){b.addclass("fusion-active-login")}),c.find("input").on("change",function(a){b.hasclass("fusion-active-login")&&b.removeclass("fusion-active-login").addclass("fusion-active-link")})}),jquery(document).click(function(a){"fusion-custom-menu-item-contents"!==a.target.classname&&"input-text"!==a.target.classname&&jquery(".fusion-custom-menu-item-contents").parents(".fusion-custom-menu-item").removeclass("fusion-active-login").removeclass("fusion-active-link")})});