(function(n){function i(){n(".owl-item .carousel__description").addClass("loaded")}var t={onInitialized:i,loop:!0,nav:!1,dots:!1,items:1,autoplay:!0,autoplayTimeout:8e3,animateOut:"fadeOut",navText:["<span class='icon icon-arrow-65'><\/span>","<span class='icon icon-arrow-66'><\/span>"],touchDrag:!0,mouseDrag:!1,lazyLoad:!0,responsive:{769:{nav:!0}}};n(document).ready(function(){var i=n(".carousel");i.owlCarousel?i.owlCarousel(t):i.phoenixCarousel&&i.phoenixCarousel(t);n(".carousel").find(".owl-item.cloned a").attr("tabIndex",-1)})})(jQuery);$(".close-popup").on("click",function(){$(this).parent().addClass("hide");$(this).parent().removeClass("active")});$(".banner--products_list li").on("click",function(){return $(this).find(".product").hasClass("hide")?$(".product").removeClass("hide"):($(".product").removeClass("active"),$(this).find(".product").addClass("active")),!1});$(document).on("click",function(){$(".product").removeClass("active")});$(document).ready(function(){function f(){var n=$(this),r=n.find(".tabs li"),f=$("<ul>").addClass("tab-headers"),e=$("<ul>").addClass("tab-content"),h=n.width(),t,o;for(n.children(".tabs").remove(),t=0,o=r.length;t<o;t++){var u=$(r[t]),s=u.attr("title"),i=u.find(".tab-thumbnail").remove(),c=i.is("img")?i:i.find("img").first();c.attr("alt",s);f.append($("<li>").attr("title",s).css("width",Math.round(h/r.length)).append(i));e.append($("<li>").append(u.children(".slide")))}n.append(f,e)}function e(){var h=$(this),a=h.find(".tab-headers"),o=h.find(".tab-content").after(a),s=a.children("li"),i=o.children("li"),f=$("<ul>").addClass("slide-control-bar"),c=h.width(),e=0,l=0,v=function(){var r=i.eq(e).find(".slide"),n,t;for(f.empty(),n=0,t=r.length;n<t;n++)f.append($("<li>").addClass("slide-invoker"));f.find(".slide-invoker").first().addClass("active")};slideToTabIndex=function(n){var u=i.eq(n),r=0,t;for(s.eq(n).addClass("active").siblings().removeClass("active"),e=n,l=0,v(),t=0;t<e;t++)r+=i.eq(t).find(".slide").length*c;o.css({opacity:"0","margin-left":-r});o.animate({opacity:"1"},600)};slideToSlideIndex=function(n){for(var t=0,r=0;r<e;r++)t+=i.eq(r).find(".slide").length*c;t+=n*c;f.find(".slide-invoker").eq(n).addClass("active").siblings().removeClass("active");l=n;o.css({opacity:"0","margin-left":-t});o.animate({opacity:"1"},600)};autoSlide=function(){var f=i.eq(e),o=f.find(".slide"),r=l+1,u=e+1;r<o.length?slidesPlaying&&slideToSlideIndex(r):n?u<s.length?slideToTabIndex(u):slideToTabIndex(0):slidesPlaying&&slideToSlideIndex(0);setTimeout(autoSlide,t)};n=!0;slidesPlaying=!0;i.parent().after(f);s.click(function(i){var u=$(i.target),f=u.is("a")||u.closest("a").closest(".tab-headers li")[0]==this;f||(slideToTabIndex($(this).index()),n=!1,setTimeout(function(){n=!0},r),slidesPlaying=!1,setTimeout(function(){slidesPlaying=!0},t))});f.on("click",".slide-invoker",function(){slidesPlaying=!1;slideToSlideIndex($(this).index());setTimeout(function(){slidesPlaying=!0},u)});s.eq(0).addClass("active");v();setTimeout(autoSlide,t)}var t=8e3,r=2e4,u=1e4,n=!1,i=$(".tabbed-slider");i.each(f);i.each(e)});jQuery(document).ready(function(n){function f(){function w(){s.find("img").each(function(t,i){var r=n(i),u=r.attr("data-src");u&&(r.attr("src",u),r.attr("data-src",null))})}function l(){h.hasClass("active")||(h.removeClass("hide"),h.addClass("active"));s.hasClass("active")||(s.addClass("active"),w(),r(f.eq(0),o))}var h=n(".cd-nugget-info"),s=n(".cd-tour-wrapper"),f=s.children("li"),a=f.length,o=n(".cd-cover-layer"),c=n(".cd-more-info"),v=n("#cd-tour-trigger"),y=n(".tour-trigger"),p=n(".cd-skip");e(f,a);v.on("click",function(){l()});y.on("click",function(){n(".tour").show();l()});c.on("click",".cd-prev",function(t){n(t.target).hasClass("inactive")||i(f,o,"prev")});c.on("click",".cd-next",function(t){n(t.target).hasClass("inactive")||i(f,o,"next")});n(".cd-next.inactive").on("click",function(){t(h,f,s,o)});p.on("click",function(){t(h,f,s,o)});c.on("click",".cd-close",function(){t(h,f,s,o)});n(document).on("click",function(i){n(i.target).closest(".modal-body--content").length||n(i.target).is(".modal-body--content")||n(i.target).closest(".tour-wrapper .call-to-action").length||n(i.target).is(".tour-wrapper .call-to-action")||n(i.target).closest(".cd-single-step.is-selected").length||n(i.target).is("cd-single-step.is-selected")||n(i.target).closest(".cd-tour-nav").length||n(i.target).is(".cd-tour-nav")||n("#welcomeToNewSitePopup").is(":visible")&&t(h,f,s,o)});n(document).keyup(function(n){n.keyCode===27&&t(h,f,s,o)});c.on("swiperight",function(){n(this).find(".cd-prev").hasClass("inactive")||u()!=="mobile"||i(f,o,"prev")});c.on("swipeleft",function(){n(this).find(".cd-next").hasClass("inactive")||u()!=="mobile"||i(f,o,"next")})}function e(t,i){var r=function(n){var t=i===n?"Close":"Next";return'<div class="cd-nav"><span><b class="cd-actual-step">1<\/b> of '+i+'<\/span><ul class="cd-tour-nav call-to-action grid-100"><li class="grid-70 grid-xs-60 cancel"><a class="cd-prev">Previous<\/a><\/li><li class="grid-30 grid-xs-40 continue"><a class="cd-next btn btn-primary btn-100">'+t+'<\/a><\/li><\/ul><\/div><a class="cd-close">Close<\/a>'};t.each(function(t){var e=n(this),u=t+1,o=u<i?"":"inactive",s=u===1?"inactive":"",f=r(u),h;window.Phoenix&&window.Phoenix.precached&&window.Phoenix.precached.translation&&window.Phoenix.precached.translation.tourNavigationHtml&&(f=window.Phoenix.precached.translation.tourNavigationHtml(i,u));h=n(f).find(".cd-next").addClass(o).end().find(".cd-prev").addClass(s).end().find(".cd-actual-step").html(u).end().appendTo(e.children(".cd-more-info"))})}function r(n,t){n.addClass("is-selected").removeClass("move-left");o(n.children(".cd-more-info"));s(t)}function o(t){t.offset().top<n(window).scrollTop()&&n("body,html").animate({scrollTop:t.offset().top},100);t.offset().top+t.height()>n(window).scrollTop()+n(window).height()&&n("body,html").animate({scrollTop:t.offset().top+t.height()-n(window).height()},100)}function s(n){n.addClass("is-visible").on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){n.removeClass("is-visible")})}function i(n,t,i){var f=n.filter(".is-selected"),e=u()==="desktop"?300:0;f.removeClass("is-selected");i==="next"&&f.addClass("move-left");setTimeout(function(){i==="next"?r(f.next(),t):r(f.prev(),t)},e)}function t(t,i,r,u){t.removeClass("active");t.addClass("hide");i.removeClass("is-selected move-left");r.removeClass("active");u.removeClass("is-visible");n("body").removeClass("tour-active")}function u(){return window.getComputedStyle(document.querySelector(".cd-tour-wrapper"),"::before").getPropertyValue("content").replace(/"/g,"").replace(/'/g,"")}n(".cd-tour-wrapper").exists()&&f();var h=n(window);n(window).on("load resize",function(){var t=n(".search.desktop-menu.tag-menu").offset().left,i=n("#top-products").offset().top;n(".cd-single-step.step-2").css("left",t+20+"px");n(".cd-single-step.step-4").css("top",i+"px")}).resize()});jQuery.fn.exists=function(){return this.length>0}