function MediaGalleryRotator(){function t(){}function i(){var o;u.lightGallery({selector:".gallery-items a, .gallery-item a, .gallery-items span.video"});n.hasClass("carousel-6")&&r.slick({dots:!0,arrows:!0,infinite:!0,speed:300,slidesToShow:6,slidesToScroll:1,asNavFor:".large-media-gallery-component .media-gallery-items",responsive:[{breakpoint:1200,settings:{slidesToShow:5}},{breakpoint:992,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1}}]});n.hasClass("overflow-5")&&$(".overflow-5").find(".media-gallery-items").each(function(){$(this).find("> div").slick({dots:!0,arrows:!0,infinite:!0,speed:300,slidesToShow:4,slidesToScroll:4})});n.hasClass("three-slider")&&n.find(".producttypenode").length>3&&n.children("div.row").addClass("overflow-4");n.hasClass("three-slider")&&n.find(".servicetypenode").length>3&&n.children("div.row").addClass("overflow-4");var i=n.find("input.autoplay-flag").val()=="true",s=n.find("input.autoplay-show").val(),f=n.find("input.autoplay-time").val(),e;e=f==0?2e4:f*1e3;o=n.find(".autoplay-controls");n.children("div").hasClass("overflow-4")&&$(".overflow-4 > div").slick({dots:!0,arrows:!0,infinite:!0,speed:300,autoplay:i,autoplaySpeed:e,slidesToShow:3,slidesToScroll:3,appendDots:$(".autoplay-controls")});s=="false"&&n.find(".autoplay-controls > button").hide();i==!0&&(n.find(".play").toggleClass("hidden"),n.find(".pause").toggleClass("hidden"));$(".pause").on("click",function(){$(".overflow-4 > div").slick("slickPause");$(this).addClass("hidden");$(this).siblings().removeClass("hidden")});$(".play").on("click",function(){$(".overflow-4 > div").slick("slickPlay");$(this).addClass("hidden");$(this).siblings().removeClass("hidden")});t()}var n=$("body").find(".media-gallery-component"),r=n.find(".media-gallery-items"),u=n.find(".gallery-items, .gallery-item"),f=n.find(".producttypenode");n.length>0&&i()}function PresentationRotator(){function t(){}function i(){$(".presentation-content > div").removeAttr("title");n.each(function(){var n=$(this).find(".autoplay-flag").val()=="true",t=$(this).find(".autoplay-time").val(),u=$(this).find(".autoplay-show").val(),i,r;i=t==0?2e4:t*1e3;r=$(this).find(".control-wrapper").remove().html();$(this).find(".presentation-rotator").each(function(){$(this).on("init reInit afterChange",function(n,t,i){var r=$(t.$slides.get(i)).find("img").height();$(this).find(".slick-arrow").css("top",r/2+"px");$(this).find(".slick-dots").css("top",r-40+"px")})});$(this).find(".presentation-rotator").on("init",function(){$(this).find(".slick-dots").append(r);u=="false"&&$(this).find(".autoplay-controls button").hide();n==!0&&($(this).find(".play").toggleClass("hidden"),$(this).find(".pause").toggleClass("hidden"));$(this).find(".pause").on("click",function(){$(this).parents(".presentation-rotator").slick("slickPause");$(this).addClass("hidden");$(this).siblings().removeClass("hidden")});$(this).find(".play").on("click",function(){$(this).parents(".presentation-rotator").slick("slickPlay");$(this).addClass("hidden");$(this).siblings().removeClass("hidden")})});$(this).find(".presentation-rotator").slick({dots:!0,arrows:!0,infinite:!0,speed:300,pauseOnHover:!1,pauseOnFocus:!1,autoplay:n,autoplaySpeed:i,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:768,settings:{arrows:!1,draggable:!0}}]})});t()}var n=$("body").find(".presentation-component"),r=n.find(".presentation-rotator"),u=n.find(".presentation-content");n.length>0&&i()}function RecentlyViewedRotator(){function t(){}function i(){n.each(function(){$(this).find(".slider-rotator").slick({dots:!1,arrows:!0,infinite:!1,speed:300,pauseOnHover:!1,pauseOnFocus:!1,slidesToShow:4,slidesToScroll:1,vertical:!0,responsive:[{breakpoint:767,settings:{slidesToShow:3,dots:!1,arrows:!0,infinite:!1,speed:300,slidesToScroll:1,vertical:!1}},{breakpoint:480,settings:{slidesToShow:2,dots:!1,arrows:!0,infinite:!1,speed:300,slidesToScroll:1,vertical:!1}}]})});t()}var n=$("body").find(".slider-component"),r=n.find(".slider-rotator");n.length>0&&i()}function ProductContactsComponent(){function t(){}function i(){t();$(".change-location").popover({html:!0,trigger:"manual",content:function(){var n=$(this).attr("data-target");return $("#contactType").val($(this).data("type")),$(n).children(".popover-body").html()},title:""}).click(function(n){$(this).popover("show");$(".close").click(function(){$(".change-location").popover("hide")});$(".btn-close").on("click",function(){$(".change-location").popover("hide")});$("#countries").on("change",checkExtraFilters);displayStateNameZip();n.preventDefault()});$(document).ready(function(){loadCountry("Support");displayStateNameZip()})}var n=$("body").find(".contacts");n.length>0&&i()}function scrollableListComponent(){var t=$("body").find("#scrollable-list"),n,i;t.length>0&&(n=document.getElementById("scrollable-list"),i=n.scrollHeight>n.clientHeight,i===!0&&($(".scroll-message").show(),t.find("dl").addClass("has-scroll")))}function checkExtraFilters(){$.ajax({url:"/api/Product/GetStates",data:{countryId:$("#countries").val()},success:function(n){var t,i,r;n!=undefined&&n.length!=0?(t=$("#states"),t.empty(),i='<option value="" selected="selected" >Select State<\/option>',$.each(n,function(n,i){var r=$("<option><\/option>").attr("value",i.value).text(i.text);i.value==$("#stateId").text()&&$(r).attr("selected",!0);t.append(r)}),t.prepend(i),$("#zipCode").removeClass("hidden"),$("#extraFilters").removeClass("hidden"),r="#stateId"+$("#contactTypeSelected").text(),$("#states option").filter(function(){return $(this).val()==$(r).text()}).attr("selected",!0)):$("#extraFilters").addClass("hidden");$("#zipCode").val("")},error:function(n,t,i){console.log("Change location: "+n);console.log("Change location: "+t);console.log("Change location: "+i)}})}function displayStateNameZip(){$.ajax({url:"/api/Product/GetStates",data:{countryId:$("#countries").val()},success:function(n){var t,i,r,u;n!=undefined&&n.length!=0?(t=$("#states"),t.empty(),i='<option value="" selected="selected" >Select State<\/option>',$.each(n,function(n,i){var r=$("<option><\/option>").attr("value",i.value).text(i.text);i.value==$("#stateId").text()&&$(r).attr("selected",!0);t.append(r)}),t.prepend(i),$("#zipCode").removeClass("hidden"),$("#extraFilters").removeClass("hidden"),r="#stateId"+$("#contactTypeSelected").text(),$("#states option").filter(function(){return $(this).val()==$(r).text()}).attr("selected",!0),$("#states option:selected").val()!=""?(u=$("#states option:selected").text(),$(".state-holder").text(u+",")):$(".state-holder").text(""),$("#zipCode").val($("#zipCode"+$("#contactTypeSelected").text()).text())):$("#extraFilters").addClass("hidden")},error:function(n,t,i){console.log("Change location: "+n);console.log("Change location: "+t);console.log("Change location: "+i)}})}function loadCountry(n){var t,i;resetModal();t="#countryName"+n;$("#changeLoc select option").filter(function(){return $(this).text()==$(t).text()}).attr("selected",!0);$("#contactTypeSelected").text(n);i="#stateId"+n;$("#states option").filter(function(){return $(this).val()==$(i).text()}).attr("selected",!0)}function resetModal(){$("#changeLoc option:selected").removeAttr("selected")}function changeLocation(){var n=$("#contactType").val(),t=$("#countries").val(),f=$("#isService").val()?"":$("#productType").val(),e=$("#isService").val()?$("#productType").val():"",o=$("#extraFilters").hasClass("hidden")?"":$("#states").val(),s=$("#extraFilters").hasClass("hidden")?"":$("#zipCode").val(),i=$("#extraFilters").hasClass("hidden")||$("#states").val()==""?"":$("#states").find(":selected").text(),r=[],u;return n==1&&$(".contactTypeCategoryIds").each(function(){r.push($(this).val())}),u={contactTypeId:n,countryId:t,productType:f,serviceType:e,stateId:o,zipCode:s,SalesChannelTaggedCategories:r},$.ajax({type:"GET",url:"/api/Product/GetContacts",data:u,dataType:"json",success:function(r){displayResults(r,n,i,t);i=""},error:function(n,t){console.log("Change location: "+t)}}),$(".change-location").popover("hide"),!1}function displayResults(n,t,i,r){var u="",f,e;$.each(n.contacts.slice(0,3),function(){var n="<div class='contact-item'><div class='row'><div class='col-xs-12 col-sm-3'><span class='x-larger x-thick contact-name'>"+getValue(this.name)+"<\/span><span>"+getValue(this.displayName)+"<\/span><\/div><div class='col-xs-12 col-sm-3 larger thick spacer'>",t;getValue(this.email)!=""&&(n+="<a class='data-modal split-xs' data-toggle='modal' data-target='#modal-contact' data-contacname='"+getValue(this.name)+"' data-email='"+getValue(this.email)+"' href='#'><span class='icon-extra icon-email-rgb inline blue'><\/span>"+emailContact+"<\/a>");t=getValue(this.phone2)!=""?"<br/><a class='tel-desktop' href='tel:"+getValue(this.phone2)+"'>"+getValue(this.phone2)+"<\/a><\/div><\/div>":"<\/div><\/div>";getValue(this.phone1)!=""&&(n+="<div class = 'media split-xs'><div class ='media-left'><span class='icon-extra icon-phone-numbers-rgb inline blue tel-desktop-icon'><\/span><\/div><div class='media-body'><span class='tel-content inline block'><a class='tel-desktop' href='tel:"+getValue(this.phone1)+"'><\/span>"+getValue(this.phone1)+"<\/a>"+t);getValue(this.url)!=""&&(n+="<a class ='website-link' href='"+getValue(this.url)+"' target='_blank'><span class='icon-extra icon-website-url-rgb inline blue'><\/span>"+getValue(this.url)+"<\/a>");n+="<\/div><div class='col-xs-12 col-sm-2 dark larger'><span>"+getValue(this.address1)+"<\/span><span>"+getValue(this.address2)+"<\/span><span>"+getValue(this.city)+" "+getValue(this.state)+" "+getValue(this.zipCode)+"<\/span><span>"+getValue(this.country)+"<\/span><\/div><div class='col-xs-12 col-sm-4 larger'><span class='thick inline' id='productAreas'>"+productAreas+"<\/span> <span class='inline dark'>"+($("#isService").val()?getValue(this.services).join(", "):getValue(this.products).join(", "))+"<\/span><\/div><\/div><\/div>";u+=n});f="<a href='"+getValue(n.moreContactsUrl)+"' class='more-contacts'>"+getValue(n.moreContacts)+"<\/a>";t==1?($("#countryNameSales").text(getValue(n.countryName)),$("#stateIdSales").text(getValue(n.stateId)),$("#selectedZipCodeSales").text(getValue(n.zipCode)),e="<span class='subtitle xx-light' id='salesContactsCountry'>"+getValue(n.sales)+" "+(i==""||i==null?"":i+", ")+(getValue(n.zipCode)==""||getValue(n.zipCode)==null?"":getValue(n.zipCode)+", ")+getValue(n.countryName)+"<\/span>",$("#salesContactsCountry").html(e),$("#salesContacts").html(u),$("#moreSalesContacts").html(n.contacts.length>3?f:"")):($("#countryNameSupport").text(getValue(n.countryName)),$("#stateIdSupport").text(getValue(n.stateId)),$("#supportContacts").html(u),$("#moreSupportContacts").html(n.contacts.length>3?f:""),$("#zipCodeSupport").text(getValue(n.zipCode)),n.stateId!=null?$.ajax({url:"/api/Product/GetStates",data:{countryId:r},success:function(t){console.log(r);console.log(t);t!=undefined&&t.length!=0&&$.each(t,function(t,i){i.value==n.stateId&&(console.log(i.value),$("#selectedZipCodeSupport .state-holder").text(i.text+","))});$("#selectedZipCodeSupport .country-holder").text(getValue(n.countryName))},error:function(n,t,i){console.log("Change location: "+n);console.log("Change location: "+t);console.log("Change location: "+i)}}):($("#selectedZipCodeSupport .state-holder").text(""),$("#selectedZipCodeSupport .country-holder").text(getValue(n.countryName))),getValue(n.zipCode)!=""?$("#selectedZipCodeSupport .zipcode-holder").text(getValue(n.zipCode)+","):$("#selectedZipCodeSupport .zipcode-holder").text(getValue(n.zipCode)))}function getValue(n){return n==undefined?"":n}function addToWishlist(){var t={ProductCode:$("#hdfProductCode").val()},i={__RequestVerificationToken:$('input[name="__RequestVerificationToken"]').val()},n=$("body").find(".product-hero-buttons"),r=n.find(".remove-from-wishlist"),u=n.find(".add-to-wishlist");return $.ajax({type:"POST",contentType:"application/json",url:"/api/Wishlist/Add/",data:JSON.stringify(t),headers:i,success:function(n){n.success?(r.removeClass("hidden"),u.addClass("hidden"),$(".product-hero-buttons .popover").addClass("shown")):$(".product-hero-buttons .popover").addClass("shown")},error:function(){}}),!1}function removeFromWishlist(){var n=$("body").find(".product-hero-buttons"),t=n.find(".remove-from-wishlist"),i=n.find(".add-to-wishlist"),r={ProductCode:$("#hdfProductCode").val(),__RequestVerificationToken:JSON.stringify($("input [name=__RequestVerificationToken]").val())};return $.ajax({type:"POST",contentType:"application/json",url:"/api/Wishlist/Remove/",data:JSON.stringify(r),success:function(n){n.success&&(i.removeClass("hidden"),t.addClass("hidden"))},error:function(){}}),!1}function clearFilters(){$("#zipCode").val("")}function ProductHeroGalleryComponent(){function r(n,t){function r(n){if(!n)throw new Error("Unsupported YouTube URL");t({type:"y",id:n.id,url:"http://i2.ytimg.com/vi/"+n.id+"/hqdefault.jpg"})}var i=u(n);if(i.type=="y")return r(i);i.type=="v"?$.ajax({url:"http://vimeo.com/api/v2/video/"+i.id+".json",dataType:"jsonp",success:function(n){t({type:"v",id:i.id,url:n[0].thumbnail_large})}}):i.type=="vq"&&t({type:"vq",id:i.id,url:"http://vpic.video.qq.com/36946342/"+i.id+".png"})}function u(n){function o(n){if(!n)throw new Error("Unsupported YouTube URL");return i={type:"y",id:n}}var t,i,u,r,f,e;if(n.indexOf("youtube.com")>-1)return n.indexOf("v=")>-1?t=n.split("v=")[1].split("&")[0]:n.indexOf("embed")>-1&&(t=n.split("embed/")[1].split("?")[0]),o(t);if(n.indexOf("youtu.be")>-1)return t=n.split("/")[1],o(t);if(n.indexOf("vimeo.com")>-1)if(u=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,r=n.match(u),r)t=r[5];else throw new Error("Unsupported Vimeo URL");else{if(n.indexOf("v.qq.com")>-1)return f=n.split("vid="),e=f[1].split("&"),t=e[0],i={type:"vq",id:t};throw new Error("Unrecognised URL");}return i={type:"v",id:t}}function f(){n.children("a").hover(function(){$(this).addClass("selected").siblings().removeClass("selected");t.find("img").attr("src",$(this).attr("data-hover-src"));t.find("source:first-child").attr("srcset",$(this).attr("data-hover-src")+"/DesktopPdpHero");t.find("source:nth-child(2)").attr("srcset",$(this).attr("data-hover-src")+"/TabletPdpHero");t.find("source:nth-child(3)").attr("srcset",$(this).attr("data-hover-src")+"/PhonePdpHero")})}function e(){n.children("a.video-item").not(".video").each(function(){var n=$(this).attr("href"),t=$(this);console.log(n);r(n,function(n){$(t).addClass("video").attr("data-hover-src",n.url).find("img").attr("src",n.url)})})}function o(){f();e();n.children("a").length>4&&n.slick({dots:!1,arrows:!0,infinite:!0,speed:300,slidesToShow:4,slidesToScroll:1,vertical:!0,responsive:[{breakpoint:767,settings:{slidesToShow:3,dots:!1,arrows:!0,infinite:!0,speed:300,slidesToScroll:1,vertical:!0}}]})}var i=$("body").find(".product-hero-gallery-component"),n=i.find(".vertical-thumbs"),t=i.find(".main-image-holder");i.length>0&&o()}function RelatedProductsComponent(){function i(){}function r(){i();t.children(".media-tile-component").length>2&&t.slick({dots:!0,arrows:!0,infinite:!0,speed:300,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:767,settings:"unslick"}]})}var n=$("body").find(".related-products"),t=n.find(".container > .row");n.length>0&&r()}function TabsCollapsibleComponent(){function t(){n.on("click",function(){$(this).toggleClass("reverted");$(this).parent().parent().find(".mobile-panel-collapse").toggleClass("open");var n=window.SameHeightComponent({parentSelector:".same-height-component",childrenSelector:".same-height-target",sameHeightOnResize:{}})})}function i(){t()}var n=$("body").find(".mobile-collapse .arrow");n.length>0&&i()}function TableCollapsibleComponent(){function e(){f.on("click",function(){$(this).toggleClass("reverted");$(this).parents("tbody").find(".table-panel-collapse").toggleClass("open");$(this).parents("tbody").next("tfoot").toggleClass("show")});r.children("button").click(function(){var i;n.find("tbody.hidden:lt("+parseInt(t)+")").removeClass("hidden");i=n.find("tbody.hidden").length;i==0&&u(0);var f=window.SameHeightComponent({parentSelector:".same-height-table-content-component",childrenSelector:".same-height-target",sameHeightOnResize:{minWidthToResize:1,maxWidthToResize:768}}),r=$(window).scrollTop();$("html,body").animate({scrollTop:r+$(".header-bar").outerHeight()+350},"slow")})}function o(){if($(window).width()>767){var i=n.find("tbody").length;i>t&&(n.find("tbody").not("tbody:lt("+parseInt(t)+")").addClass("hidden"),u(1))}e()}function u(t){switch(t){case 0:r.addClass("hidden");n.removeClass("limited-rows");break;case 1:r.removeClass("hidden");n.addClass("limited-rows")}}var f=$("body").find(".table-collapse .arrow"),t=12,i=$("body").find(".scrollable-table-component"),n=i.find(".inner"),r=i.find(".show-more-table");i.length>0&&o()}function ListCollapsibleComponent(){function r(){t.click(function(){$(this).hasClass("hidden")?($(this).parent().find(".scrollable-list-body:gt(3)").addClass("hidden"),$(this).toggleClass("hidden")):($(this).parent().find(".scrollable-list-body").removeClass("hidden"),$(this).addClass("hidden"))})}function u(){r();i.each(function(){$(this).find(".scrollable-list-body").length>3&&($(this).find(".scrollable-list-button").removeClass("hidden"),$(this).find(".scrollable-list-body:gt(2)").addClass("hidden"))})}var n=$("body").find(".scrollable-list-component"),t=$("body").find(".scrollable-list-button"),i=$("body").find(".data-list-holder");n.length>0&&u()}function scrollToElementComponent(n){function i(){$("html,body").animate({scrollTop:t.offset().top-$(".header-bar").outerHeight()},"slow")}var t=$("body").find(n);t.length>0&&i()}function changeMeasurementUnit(n,t){$.get(n,function(n){$("#productSpecificationPartial").replaceWith(n);var i=window.SameHeightComponent({parentSelector:".same-height-table-title-component",childrenSelector:".same-height-target",sameHeightOnResize:{minWidthToResize:1,maxWidthToResize:768}}),r=window.SameHeightComponent({parentSelector:".same-height-table-content-component",childrenSelector:".same-height-target",sameHeightOnResize:{minWidthToResize:1,maxWidthToResize:768}});t==="metric"&&$(".metric-unit").addClass("active");t==="imperial"&&$(".imperial-unit").addClass("active");ToolsComponent();TableCollapsibleComponent()})}function triggerLogin(){var n=$(".desktop-nav-dropdown__inp");$("#saveForLater").attr("checked",!0);$(".v3-button--secondary-light").css("display")=="block"?$(".v3-button--secondary-light").click():$(".desktop-nav-dropdown__content:visible").length==0?(window.scroll(0,0),n.removeClass("ng-empty"),n.addClass("ng-not-empty"),$(".desktop-nav-dropdown__btn").click(),$("#closeLoginPopUp").click()):(window.scroll(0,0),$("#closeLoginPopUp").click())}function triggerCreateAccount(){var n=window.location.origin+"/"+window.location.pathname.split("/")[1]+"/create-account";return window.location.href=n,!1}function openProductViewModal(){document.getElementById("product-view_modal").classList.remove("hidden");document.body.appendChild(document.getElementById("product-view_modal"));document.body.classList.add("bodyDisableScroll")}function closeProductViewModal(){document.getElementById("product-view_modal").classList.add("hidden");document.body.classList.remove("bodyDisableScroll")}function displayViewIn3d(){var t=document.getElementById("view-in-3d__btn"),n=document.getElementById("view-in-3d__modal");t&&(t.onclick=function(){$(n).modal("show");$(n).find(".sketchfab-embed-wrapper p").addClass("hidden");$(".modal-backdrop").addClass("view-in-3d__modal-backdrop")},window.onclick=function(t){t.target==n&&$(n).modal("hide")})}function showKeyBenefits(){$(".key-benefits").removeClass("less-key-benefits");$(".show-key-benefits").addClass("hidden");$(".hide-key-benefits").removeClass("hidden")}function hideKeyBenefits(){$(".key-benefits").addClass("less-key-benefits");$(".show-key-benefits").removeClass("hidden");$(".hide-key-benefits").addClass("hidden")}function ProductDownloadsComponent(){function t(){$("a[data-product-code]").click(function(t){t.preventDefault();var u=$("#PreferredCultureName").val(),i=$(this),r=i.data("product-code");$.ajax({type:"GET",url:"/ProductDetailPage/Downloads?productCode="+r+"&lang="+u,async:!1,success:function(t){n.html(t);$("div.tabs-left-component>ul>li.active").removeClass("active");i.parent().addClass("active");var u=setInterval(function(){$('[data-tab-product-code="'+r+'"]').length&&(clearInterval(u),$("[name='partnerHasDownloads']").val()=="True"?$("div.download-notice.enabled").removeClass("hidden"):$("div.download-notice.enabled").addClass("hidden"),$("[name='returningPartnerHasDownloads']").val()=="True"?$("div.download-notice.disabled").removeClass("hidden"):$("div.download-notice.disabled").addClass("hidden"))},100)}})})}var n=$("body").find("#product-downloads-container");n.length>0&&t()}function AnchoredMenuComponent(){function h(){$(window).on("scroll",function(){setTimeout(function(){r=$("body").find(".header-bar").outerHeight()+$("body").find(".scrollable-menu-component").outerHeight();e();i()},0)});$(window).resize(function(){i()});b.click(function(){n.toggleClass("moved")});o.each(function(){$(this).find("a").each(function(){$(this).click(function(i){i.preventDefault();var u=$("body").find(".header-bar").outerHeight()+$("body").find(".scrollable-menu-component").outerHeight(),r=$("body").find("[data-anchor-target='"+$(this).parent().attr("data-anchor-source")+"']").offset();r!==undefined&&(n.hasClass("fixed")?$(this).parent("li").is("li:first-child")?t.stop().animate({scrollTop:r.top-u-f+1},"500","swing",function(){}):t.stop().animate({scrollTop:r.top-u+1},"500","swing",function(){}):$(this).parent("li").is("li:first-child")?t.stop().animate({scrollTop:r.top-u-f+1},"500","swing",function(){}):t.stop().animate({scrollTop:r.top-u-n.outerHeight()+1},"500","swing",function(){}))})})})}function c(){var i=function(n){for(var u=decodeURIComponent(window.location.search.substring(1)),r=u.split("&"),t,i=0;i<r.length;i++)if(t=r[i].split("="),t[0]===n)return t[1]===undefined?!0:t[1]},u=i("section"),n=$("body").find("[data-anchor-target='"+u+"']").offset();n!==undefined&&t.stop().animate({scrollTop:n.top-r},"500","swing",function(){})}function l(){p.slick({responsive:[{breakpoint:1e4,settings:"unslick"},{breakpoint:768,settings:{infinite:!1,swipeToSlide:!0,slidesToShow:3.5,slidesToScroll:1,variableWidth:!0}}]})}function i(){var t;$(window).scrollTop()>f||$(window).width()<768?(t=$("body").find(".header-bar").outerHeight(),n.css("top",t+"px"),n.addClass("fixed"),s.length&&(t=$("body").find(".header-bar").outerHeight(),n.css("top",t))):(n.removeClass("fixed"),n.css("top","0"))}function e(){w.each(function(n){for(var t,i=0;i<u.length;i++)if(u.eq(i).attr("data-anchor-target")===$(this).attr("data-anchor-source")){t=u.eq(i).offset();break}t!==undefined&&(t.top<=$(window).scrollTop()+r+1?($(this).siblings().removeClass("active"),$(this).addClass("active")):$(this).removeClass("active"),n==0&&t.top>$(window).scrollTop()+r+1&&$(this).addClass("active"),$(window).scrollTop()+$(window).height()==$(document).height()&&($(this).siblings().removeClass("active"),$(this).parent().find(":last-child").addClass("active")))})}function a(){$(".cookie-alert .close").click(function(){setTimeout(function(){var t=$("body").find(".header-bar").outerHeight();n.css("top",t+"px")},50);s=$("body").find(".header-component.cookie-active");i()})}function v(){n.show()}function y(){l();i();e();h();a();c();v()}var t=$("html, body"),o=$("body").find(".anchored-menu-component"),r=$("body").find(".header-bar").outerHeight()+$("body").find(".scrollable-menu-component").outerHeight(),n=$("body").find(".scrollable-menu-component"),p=n.find(".anchored-menu-component"),s=$("body").find(".header-component.cookie-active"),u=$("body").find("[data-anchor-target]"),w=$(".scrollable-menu-component .anchored-menu-component").find("li"),f=$(".page-header-component").outerHeight(),b=$("body").find(".navbar-toggle");o.length>0&&y()}function TabsLeftComponent(){function f(){r.click(function(){var i,r;n.children("li.hidden:lt("+parseInt(t)+")").removeClass("hidden");i=n.children("li.hidden").length;i==0&&u(0);r=$(window).scrollTop();$("html,body").animate({scrollTop:r+$(".header-bar").outerHeight()+350},"slow")})}function e(){var i=n.children("li").length;i>t&&(n.children("li").not("li:lt("+parseInt(t)+")").addClass("hidden"),u(1));f()}function u(t){switch(t){case 0:r.addClass("hidden");n.removeClass("limited-tabs");break;case 1:r.removeClass("hidden");n.addClass("limited-tabs")}}var t=12,i=$("body").find(".tabs-left-component"),n=i.find(".nav.nav-tabs"),r=i.find(".show-more-button");i.length>0&&$(window).width()>767&&e()}function ToolsComponent(){function i(){t.click(function(){var n=$(this);$(this).prev().slideToggle(1,function(){$(n).prev().css("display")=="none"?($(n).children("strong").html(e),$(n).children(".icon").removeClass("icon-angle-up").addClass("icon-angle-down"),$("body").find(".product-type-list-page").removeClass("tools-and-selector-page-adjuster")):($(n).children("strong").html(o),$(n).children(".icon").addClass("icon-angle-up").removeClass("icon-angle-down"),$("body").find(".product-type-list-page").addClass("tools-and-selector-page-adjuster"))})});f.click(function(){var n=$(this);$(this).next().slideToggle(1,function(){$(n).next().css("display")=="none"?$(n).children(".icon").removeClass("icon-angle-up").addClass("icon-angle-down"):$(n).children(".icon").addClass("icon-angle-up").removeClass("icon-angle-down")})})}function r(){i()}function u(){$("body").find(".tools-component").find(".show-button.hidden-xs").children(".icon").removeClass("icon-angle-up").addClass("icon-angle-down");$("body").find(".product-type-list-page").removeClass("tools-and-selector-page-adjuster")}var n=$("body").find(".tools-component"),t=n.find(".show-button.hidden-xs"),f=n.find(".show-button.visible-xs"),e=t.attr("data-show"),o=t.attr("data-hide");n.length>0&&($("body").find(".product-type-list-page").addClass("tools-and-selector-page-adjuster"),r(),u())}var Froogaloop,emailContact,productAreas,TabsCollapsibleComponent,tableCollapsibleComponent,ListCollapsibleComponent;(function(n,t,i){"use strict";function r(t,r){if(this.el=t,this.$el=n(t),this.s=n.extend({},u,r),this.s.dynamic&&this.s.dynamicEl!=="undefined"&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in i.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.$items=this.s.dynamic?this.s.dynamicEl:this.s.selector==="this"?this.$el:this.s.selector!==""?this.s.selectWithin?n(this.s.selectWithin).find(this.s.selector):this.$el.find(n(this.s.selector)):this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var u={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};r.prototype.init=function(){var i=this,r;if(i.s.preload>i.$items.length&&(i.s.preload=i.$items.length),r=t.location.hash,r.indexOf("lg="+this.s.galleryId)>0&&(i.index=parseInt(r.split("&slide=")[1],10),n("body").addClass("lg-from-hash"),n("body").hasClass("lg-on")||setTimeout(function(){i.build(i.index);n("body").addClass("lg-on")})),i.s.dynamic)i.$el.trigger("onBeforeOpen.lg"),i.index=i.s.index||0,n("body").hasClass("lg-on")||setTimeout(function(){i.build(i.index);n("body").addClass("lg-on")});else i.$items.on("click.lgcustom",function(t){try{t.preventDefault();t.preventDefault()}catch(r){t.returnValue=!1}i.$el.trigger("onBeforeOpen.lg");i.index=i.s.index||i.$items.index(this);n("body").hasClass("lg-on")||(i.build(i.index),n("body").addClass("lg-on"))})};r.prototype.build=function(t){var i=this;i.structure();n.each(n.fn.lightGallery.modules,function(t){i.modules[t]=new n.fn.lightGallery.modules[t](i.el)});i.slide(t,!1,!1);i.s.keyPress&&i.keyPress();i.$items.length>1&&(i.arrow(),setTimeout(function(){i.enableDrag();i.enableSwipe()},50),i.s.mousewheel&&i.mousewheel());i.counter();i.closeGallery();i.$el.trigger("onAfterOpen.lg");i.$outer.on("mousemove.lg click.lg touchstart.lg",function(){i.$outer.removeClass("lg-hide-items");clearTimeout(i.hideBartimeout);i.hideBartimeout=setTimeout(function(){i.$outer.addClass("lg-hide-items")},i.s.hideBarsDelay)})};r.prototype.structure=function(){var e="",o="",r=0,s="",h,u=this,c,f;for(n("body").append('<div class="lg-backdrop"><\/div>'),n(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),r=0;r<this.$items.length;r++)e+='<div class="lg-item"><\/div>';this.s.controls&&this.$items.length>1&&(o='<div class="lg-actions"><div class="lg-prev lg-icon">'+this.s.prevHtml+'<\/div><div class="lg-next lg-icon">'+this.s.nextHtml+"<\/div><\/div>");this.s.appendSubHtmlTo===".lg-sub-html"&&(s='<div class="lg-sub-html"><\/div>');h='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+e+'<\/div><div class="lg-toolbar group"><span class="lg-close lg-icon"><\/span><span class="page-title"><\/span><\/div>'+o+s+"<\/div><\/div>";n("body").append(h);this.$outer=n(".lg-outer");this.$slide=this.$outer.find(".lg-item");c=n(i).find("title").text();n(".page-title").text(c);this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3");u.setTop();n(t).on("resize.lg orientationchange.lg",function(){setTimeout(function(){u.setTop()},100)});this.$slide.eq(this.index).addClass("lg-current");this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0);this.$outer.addClass(this.s.mode);this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab");this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load");this.doCss()&&(f=this.$outer.find(".lg-inner"),f.css("transition-timing-function",this.s.cssEasing),f.css("transition-duration",this.s.speed+"ms"));n(".lg-backdrop").addClass("in");setTimeout(function(){u.$outer.addClass("lg-visible")},this.s.backdropDuration);this.s.download&&(this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" rel="noreferrer noopener" download class="lg-icon icon"><span class="icon icon-upload"><\/span><span class="text">Download<\/span><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-print" data-location="aaa" class="lg-icon icon"><span class="icon icon-printer"><\/span><span class="text">Print<\/span><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-linkedin" target="_blank" rel="noreferrer noopener" class="lg-icon icon icon-linkedin"><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-googleplus" target="_blank" rel="noreferrer noopener" class="lg-icon icon icon-googleplus"><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-twitter" target="_blank" rel="noreferrer noopener" class="lg-icon icon icon-twitter"><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-facebook" target="_blank" rel="noreferrer noopener" class="lg-icon icon icon-facebook"><\/a>'),this.$outer.find(".lg-toolbar").append('<a id="lg-mail" class="lg-icon icon icon-envelope"><\/a>'),n("#lg-print").click(function(){var i=t.open("","",""),r=n("#lg-print").attr("data-location");i.document.write("<img src='"+location.protocol+"//"+location.host+r+"'>");i.document.close();i.focus();n(i).ready(function(){i.print()})}));this.prevScrollTop=n(t).scrollTop()};r.prototype.setTop=function(){if(this.s.height!=="100%"){var i=n(t).height(),u=(i-parseInt(this.s.height,10))/2,r=this.$outer.find(".lg");i>=parseInt(this.s.height,10)?r.css("top",u+"px"):r.css("top","0px")}};r.prototype.doCss=function(){var n=function(){for(var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],r=i.documentElement,n=0,n=0;n<t.length;n++)if(t[n]in r.style)return!0};return n()?!0:!1};r.prototype.isVideo=function(n,t){var i;if(i=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html"),!n&&i)return{html5:!0};var r=n.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),u=n.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),f=n.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),e=n.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i),o=n.match(/\/\/(?:www\.)?v.qq.com\/([0-9a-z\-_]+)/i);return r?{youtube:r}:u?{vimeo:u}:f?{dailymotion:f}:e?{vk:e}:o?{vqq:o}:void 0};r.prototype.counter=function(){this.s.counter&&n(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'<\/span> / <span id="lg-counter-all">'+this.$items.length+"<\/span><\/div>")};r.prototype.addHtml=function(t){var i=null,r,u;this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?r=this.s.dynamicEl[t].subHtmlUrl:i=this.s.dynamicEl[t].subHtml:this.$items.eq(t).attr("data-sub-html-url")?r=this.$items.eq(t).attr("data-sub-html-url"):(i=this.$items.eq(t).attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!i&&(i=this.$items.eq(t).attr("title")||this.$items.eq(t).find("img").first().attr("alt")));r||(typeof i!="undefined"&&i!==null?(u=i.substring(0,1),(u==="."||u==="#")&&(i=n(i).html())):i="");this.s.appendSubHtmlTo===".lg-sub-html"?r?this.$outer.find(this.s.appendSubHtmlTo).load(r):this.$outer.find(this.s.appendSubHtmlTo).html(i):r?this.$slide.eq(t).load(r):this.$slide.eq(t).append(i);typeof i!="undefined"&&i!==null&&(i===""?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html"));this.$el.trigger("onAfterAppendSubHtml.lg",[t])};r.prototype.preload=function(n){for(var i=1,t=1,i=1;i<=this.s.preload;i++){if(i>=this.$items.length-n)break;this.loadContent(n+i,!1,0)}for(t=1;t<=this.s.preload;t++){if(n-t<0)break;this.loadContent(n-t,!1,0)}};r.prototype.loadContent=function(i,r,u){var f=this,s=!1,h,o,v,c,l,y,w=function(i){for(var r,s,u,f=[],h=[],e=0;e<i.length;e++)r=i[e].split(" "),r[0]===""&&r.splice(0,1),h.push(r[0]),f.push(r[1]);for(s=n(t).width(),u=0;u<f.length;u++)if(parseInt(f[u],10)>s){o=h[u];break}},b,k,a,e,p;if(f.s.dynamic?(f.s.dynamicEl[i].poster&&(s=!0,v=f.s.dynamicEl[i].poster),y=f.s.dynamicEl[i].html,o=f.s.dynamicEl[i].src,f.s.dynamicEl[i].responsive&&(b=f.s.dynamicEl[i].responsive.split(","),w(b)),c=f.s.dynamicEl[i].srcset,l=f.s.dynamicEl[i].sizes):(f.$items.eq(i).attr("data-poster")&&(s=!0,v=f.$items.eq(i).attr("data-poster")),y=f.$items.eq(i).attr("data-html"),o=f.$items.eq(i).attr("href")||f.$items.eq(i).attr("data-src"),f.$items.eq(i).attr("data-responsive")&&(k=f.$items.eq(i).attr("data-responsive").split(","),w(k)),c=f.$items.eq(i).attr("data-srcset"),l=f.$items.eq(i).attr("data-sizes")),a=!1,f.s.dynamic?f.s.dynamicEl[i].iframe&&(a=!0):f.$items.eq(i).attr("data-iframe")==="true"&&(a=!0),e=f.isVideo(o,i),!f.$slide.eq(i).hasClass("lg-loaded")){if(a?f.$slide.eq(i).prepend('<div class="lg-video-cont" style="max-width:'+f.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+o+'"  allowfullscreen="true"><\/iframe><\/div><\/div>'):s?(p="",p=e&&e.youtube?"lg-has-youtube":e&&e.vimeo?"lg-has-vimeo":"lg-has-html5",f.$slide.eq(i).prepend('<div class="lg-video-cont '+p+' "><div class="lg-video"><span class="lg-video-play"><\/span><img class="lg-object lg-has-poster" src="'+v+'" /><\/div><\/div>')):e?(f.$slide.eq(i).prepend('<div class="lg-video-cont "><div class="lg-video"><\/div><\/div>'),f.$el.trigger("hasVideo.lg",[i,o,y])):f.$slide.eq(i).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+o+'" /><\/div>'),f.$el.trigger("onAferAppendSlide.lg",[i]),h=f.$slide.eq(i).find(".lg-object"),l&&h.attr("sizes",l),c){h.attr("srcset",c);try{picturefill({elements:[h[0]]})}catch(d){console.error("Make sure you have included Picturefill version 2")}}this.s.appendSubHtmlTo!==".lg-sub-html"&&f.addHtml(i);f.$slide.eq(i).addClass("lg-loaded")}f.$slide.eq(i).find(".lg-object").on("load.lg error.lg",function(){var t=0;u&&!n("body").hasClass("lg-from-hash")&&(t=u);setTimeout(function(){f.$slide.eq(i).addClass("lg-complete");f.$el.trigger("onSlideItemLoad.lg",[i,u||0])},t)});if(e&&e.html5&&!s&&f.$slide.eq(i).addClass("lg-complete"),r===!0)if(f.$slide.eq(i).hasClass("lg-complete"))f.preload(i);else f.$slide.eq(i).find(".lg-object").on("load.lg error.lg",function(){f.preload(i)})};r.prototype.slide=function(t,i,r){var f=this.$outer.find(".lg-current").index(),u=this,e,s,h;if(!u.lGalleryOn||f!==t){var o=this.$slide.length,a=u.lGalleryOn?this.s.speed:0,c=!1,l=!1;u.lgBusy||(this.s.download&&(e=u.s.dynamic?u.s.dynamicEl[t].downloadUrl!==!1&&(u.s.dynamicEl[t].downloadUrl||u.s.dynamicEl[t].src):u.$items.eq(t).attr("data-download-url")!=="false"&&(u.$items.eq(t).attr("data-download-url")||u.$items.eq(t).attr("href")||u.$items.eq(t).attr("data-src")),e?(n("#lg-download").attr("href",e),n("#lg-print").attr("data-location",e),n("#lg-mail").attr("href","mailto:?subject= &body="+location.protocol+"//"+location.host+e),n("#lg-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+location.protocol+"//"+location.host+e),n("#lg-twitter").attr("href","https://twitter.com/home?status="+location.protocol+"//"+location.host+e),n("#lg-googleplus").attr("href","https://plus.google.com/share?url="+location.protocol+"//"+location.host+e),n("#lg-linkedin").attr("href","https://www.linkedin.com/shareArticle?mini=true&url="+location.protocol+"//"+location.host+e),u.$outer.removeClass("lg-hide-download")):u.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[f,t,i,r]),u.lgBusy=!0,clearTimeout(u.hideBartimeout),this.s.appendSubHtmlTo===".lg-sub-html"&&setTimeout(function(){u.addHtml(t)},a),this.arrowDisable(t),i?(s=t-1,h=t+1,t===0&&f===o-1?(h=0,s=o-1):t===o-1&&f===0&&(h=0,s=o-1),this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),u.$slide.eq(s).addClass("lg-prev-slide"),u.$slide.eq(h).addClass("lg-next-slide"),u.$slide.eq(t).addClass("lg-current")):(u.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),t<f?(l=!0,t!==0||f!==o-1||r||(l=!1,c=!0)):t>f&&(c=!0,t!==o-1||f!==0||r||(l=!0,c=!1)),l?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(f).addClass("lg-next-slide")):c&&(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(f).addClass("lg-prev-slide")),setTimeout(function(){u.$slide.removeClass("lg-current");u.$slide.eq(t).addClass("lg-current");u.$outer.removeClass("lg-no-trans")},50)),u.lGalleryOn?(setTimeout(function(){u.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){u.lgBusy=!1;u.$el.trigger("onAfterSlide.lg",[f,t,i,r])},this.s.speed)):(u.loadContent(t,!0,u.s.backdropDuration),u.lgBusy=!1,u.$el.trigger("onAfterSlide.lg",[f,t,i,r])),u.lGalleryOn=!0,this.s.counter&&n("#lg-counter-current").text(t+1))}};r.prototype.goToNextSlide=function(n){var t=this;t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,n,!1)):t.s.loop?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,n,!1)):t.s.slideEndAnimatoin&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))};r.prototype.goToPrevSlide=function(n){var t=this;t.lgBusy||(t.index>0?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,n]),t.slide(t.index,n,!1)):t.s.loop?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,n]),t.slide(t.index,n,!1)):t.s.slideEndAnimatoin&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))};r.prototype.keyPress=function(){var i=this;if(this.$items.length>1)n(t).on("keyup.lg",function(n){i.$items.length>1&&(n.keyCode===37&&(n.preventDefault(),i.goToPrevSlide()),n.keyCode===39&&(n.preventDefault(),i.goToNextSlide()))});n(t).on("keydown.lg",function(n){i.s.escKey===!0&&n.keyCode===27&&(n.preventDefault(),i.$outer.hasClass("lg-thumb-open")?i.$outer.removeClass("lg-thumb-open"):i.destroy())})};r.prototype.arrow=function(){var n=this;this.$outer.find(".lg-prev").on("click.lg",function(){n.goToPrevSlide()});this.$outer.find(".lg-next").on("click.lg",function(){n.goToNextSlide()})};r.prototype.arrowDisable=function(n){!this.s.loop&&this.s.hideControlOnEnd&&(n+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),n>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))};r.prototype.setTranslate=function(n,t,i){this.s.useLeft?n.css("left",t):n.css({transform:"translate3d("+t+"px, "+i+"px, 0px)"})};r.prototype.touchMove=function(t,i){var r=i-t;Math.abs(r)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),r,0),this.setTranslate(n(".lg-prev-slide"),-this.$slide.eq(this.index).width()+r,0),this.setTranslate(n(".lg-next-slide"),this.$slide.eq(this.index).width()+r,0))};r.prototype.touchEnd=function(n){var t=this;t.s.mode!=="lg-slide"&&t.$outer.addClass("lg-slide");this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0");setTimeout(function(){t.$outer.removeClass("lg-dragging");n<0&&Math.abs(n)>t.s.swipeThreshold?t.goToNextSlide(!0):n>0&&Math.abs(n)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(n)<5&&t.$el.trigger("onSlideClick.lg");t.$slide.removeAttr("style")});setTimeout(function(){t.$outer.hasClass("lg-dragging")||t.s.mode==="lg-slide"||t.$outer.removeClass("lg-slide")},t.s.speed+100)};r.prototype.enableSwipe=function(){var n=this,t=0,i=0,r=!1;if(n.s.enableSwipe&&n.isTouch&&n.doCss()){n.$slide.on("touchstart.lg",function(i){n.$outer.hasClass("lg-zoomed")||n.lgBusy||(i.preventDefault(),n.manageSwipeClass(),t=i.originalEvent.targetTouches[0].pageX)});n.$slide.on("touchmove.lg",function(u){n.$outer.hasClass("lg-zoomed")||(u.preventDefault(),i=u.originalEvent.targetTouches[0].pageX,n.touchMove(t,i),r=!0)});n.$slide.on("touchend.lg",function(){n.$outer.hasClass("lg-zoomed")||(r?(r=!1,n.touchEnd(i-t)):n.$el.trigger("onSlideClick.lg"))})}};r.prototype.enableDrag=function(){var i=this,u=0,f=0,r=!1,e=!1;if(i.s.enableDrag&&!i.isTouch&&i.doCss()){i.$slide.on("mousedown.lg",function(t){i.$outer.hasClass("lg-zoomed")||(n(t.target).hasClass("lg-object")||n(t.target).hasClass("lg-video-play"))&&(t.preventDefault(),i.lgBusy||(i.manageSwipeClass(),u=t.pageX,r=!0,i.$outer.scrollLeft+=1,i.$outer.scrollLeft-=1,i.$outer.removeClass("lg-grab").addClass("lg-grabbing"),i.$el.trigger("onDragstart.lg")))});n(t).on("mousemove.lg",function(n){r&&(e=!0,f=n.pageX,i.touchMove(u,f),i.$el.trigger("onDragmove.lg"))});n(t).on("mouseup.lg",function(t){e?(e=!1,i.touchEnd(f-u),i.$el.trigger("onDragend.lg")):(n(t.target).hasClass("lg-object")||n(t.target).hasClass("lg-video-play"))&&i.$el.trigger("onSlideClick.lg");r&&(r=!1,i.$outer.removeClass("lg-grabbing").addClass("lg-grab"))})}};r.prototype.manageSwipeClass=function(){var t=this.index+1,n=this.index-1,i=this.$slide.length;this.s.loop&&(this.index===0?n=i-1:this.index===i-1&&(t=0));this.$slide.removeClass("lg-next-slide lg-prev-slide");n>-1&&this.$slide.eq(n).addClass("lg-prev-slide");this.$slide.eq(t).addClass("lg-next-slide")};r.prototype.mousewheel=function(){var n=this;n.$outer.on("mousewheel.lg",function(t){t.deltaY&&(t.deltaY>0?n.goToPrevSlide():n.goToNextSlide(),t.preventDefault())})};r.prototype.closeGallery=function(){var t=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()});if(t.s.closable){t.$outer.on("mousedown.lg",function(t){i=n(t.target).is(".lg-outer")||n(t.target).is(".lg-item ")||n(t.target).is(".lg-img-wrap")?!0:!1});t.$outer.on("mouseup.lg",function(r){(n(r.target).is(".lg-outer")||n(r.target).is(".lg-item ")||n(r.target).is(".lg-img-wrap")&&i)&&(t.$outer.hasClass("lg-dragging")||t.destroy())})}};r.prototype.destroy=function(i){var r=this;i||r.$el.trigger("onBeforeClose.lg");n(t).scrollTop(r.prevScrollTop);i&&(r.s.dynamic||this.$items.off("click.lg click.lgcustom"),n.removeData(r.el,"lightGallery"));this.$el.off(".lg.tm");n.each(n.fn.lightGallery.modules,function(n){r.modules[n]&&r.modules[n].destroy()});this.lGalleryOn=!1;clearTimeout(r.hideBartimeout);this.hideBartimeout=!1;n(t).off(".lg");n("body").removeClass("lg-on lg-from-hash");r.$outer&&r.$outer.removeClass("lg-visible");n(".lg-backdrop").removeClass("in");setTimeout(function(){r.$outer&&r.$outer.remove();n(".lg-backdrop").remove();i||r.$el.trigger("onCloseAfter.lg")},r.s.backdropDuration+50)};n.fn.lightGallery=function(t){return this.each(function(){if(n.data(this,"lightGallery"))try{n(this).data("lightGallery").init()}catch(i){console.error("lightGallery has not initiated properly")}else n.data(this,"lightGallery",new r(this,t))})};n.fn.lightGallery.modules={}})(jQuery,window,document),function(n){"use strict";var i={videoMaxWidth:"855px",youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},t=function(t){return this.core=n(t).data("lightGallery"),this.$el=n(t),this.core.s=n.extend({},i,this.core.s),this.videoLoaded=!1,this.init(),this};t.prototype.init=function(){var t=this,i;t.core.$el.on("hasVideo.lg.tm",function(n,i,r,u){if(t.core.$slide.eq(i).find(".lg-video").append(t.loadVideo(r,"lg-object",!0,i,u)),u)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(i).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){t.videoLoaded||this.play()})}catch(f){console.error("Make sure you have included videojs")}else t.core.$slide.eq(i).find(".lg-html5").get(0).play()});t.core.$el.on("onAferAppendSlide.lg.tm",function(n,i){t.core.$slide.eq(i).find(".lg-video-cont").css("max-width",t.core.s.videoMaxWidth);t.videoLoaded=!0});if(i=function(n){var i,r,u,e;if(n.find(".lg-object").hasClass("lg-has-poster")&&n.find(".lg-object").is(":visible"))if(n.hasClass("lg-has-video")){var o=n.find(".lg-youtube").get(0),s=n.find(".lg-vimeo").get(0),h=n.find(".lg-dailymotion").get(0),f=n.find(".lg-html5").get(0);if(o)o.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(s)try{$f(s).api("play")}catch(c){console.error("Make sure you have included froogaloop2 js")}else if(h)h.contentWindow.postMessage("play","*");else if(f)if(t.core.s.videojs)try{videojs(f).play()}catch(c){console.error("Make sure you have included videojs")}else f.play();n.addClass("lg-video-playing")}else if(n.addClass("lg-video-playing lg-has-video"),u=function(i,r){if(n.find(".lg-video").append(t.loadVideo(i,"",!1,t.core.index,r)),r)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(t.core.index).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){this.play()})}catch(u){console.error("Make sure you have included videojs")}else t.core.$slide.eq(t.core.index).find(".lg-html5").get(0).play()},t.core.s.dynamic?(i=t.core.s.dynamicEl[t.core.index].src,r=t.core.s.dynamicEl[t.core.index].html,u(i,r)):(i=t.core.$items.eq(t.core.index).attr("href")||t.core.$items.eq(t.core.index).attr("data-src"),r=t.core.$items.eq(t.core.index).attr("data-html"),u(i,r)),e=n.find(".lg-object"),n.find(".lg-video").append(e),!n.find(".lg-video-object").hasClass("lg-html5")){n.removeClass("lg-complete");n.find(".lg-video-object").on("load.lg error.lg",function(){n.addClass("lg-complete")})}},t.core.doCss()&&t.core.$items.length>1&&(t.core.s.enableSwipe&&t.core.isTouch||t.core.s.enableDrag&&!t.core.isTouch))t.core.$el.on("onSlideClick.lg.tm",function(){var n=t.core.$slide.eq(t.core.index);i(n)});else t.core.$slide.on("click.lg",function(){i(n(this))});t.core.$el.on("onBeforeSlide.lg.tm",function(i,r,u){var e=t.core.$slide.eq(r),h=e.find(".lg-youtube").get(0),c=e.find(".lg-vimeo").get(0),l=e.find(".lg-dailymotion").get(0),o=e.find(".lg-vk").get(0),s=e.find(".lg-html5").get(0),a,f;if(h)h.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(c)try{$f(c).api("pause")}catch(v){console.error("Make sure you have included froogaloop2 js")}else if(l)l.contentWindow.postMessage("pause","*");else if(s)if(t.core.s.videojs)try{videojs(s).pause()}catch(v){console.error("Make sure you have included videojs")}else s.pause();o&&n(o).attr("src",n(o).attr("src").replace("&autoplay","&noplay"));a=t.core.s.dynamic?t.core.s.dynamicEl[u].src:t.core.$items.eq(u).attr("href")||t.core.$items.eq(u).attr("data-src");f=t.core.isVideo(a,u)||{};(f.youtube||f.vimeo||f.dailymotion||f.vk||f.vqq)&&t.core.$outer.addClass("lg-hide-download")});t.core.$el.on("onAfterSlide.lg.tm",function(n,i){t.core.$slide.eq(i).removeClass("lg-video-playing")})};t.prototype.loadVideo=function(t,i,r,u,f){var s="",h=1,e="",o=this.core.isVideo(t,u)||{},a,c,v,l,y,p;if(r&&(h=this.videoLoaded?0:1),o.youtube)e="?wmode=opaque&autoplay="+h+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(e=e+"&"+n.param(this.core.s.youtubePlayerParams)),s='<iframe class="lg-video-object lg-youtube '+i+'" width="560" height="315" src="//www.youtube.com/embed/'+o.youtube[1]+e+'" frameborder="0" allowfullscreen><\/iframe>';else if(o.vimeo){if(e="?autoplay="+h+"&api=1",this.core.s.vimeoPlayerParams&&(e=e+"&"+n.param(this.core.s.vimeoPlayerParams)),a=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,c=o.vimeo.input.match(a),c)v=c[5];else throw new Error("Unsupported Vimeo URL");s='<iframe class="lg-video-object lg-vimeo '+i+'" width="560" height="315"  src="//player.vimeo.com/video/'+v+e+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen><\/iframe>'}else o.dailymotion?(e="?wmode=opaque&autoplay="+h+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(e=e+"&"+n.param(this.core.s.dailymotionPlayerParams)),s='<iframe class="lg-video-object lg-dailymotion '+i+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+o.dailymotion[1]+e+'" frameborder="0" allowfullscreen><\/iframe>'):o.html5?(l=f.substring(0,1),(l==="."||l==="#")&&(f=n(f).html()),s=f):o.vk?(e="&autoplay="+h,this.core.s.vkPlayerParams&&(e=e+"&"+n.param(this.core.s.vkPlayerParams)),s='<iframe class="lg-video-object lg-vk '+i+'" width="560" height="315" src="http://vk.com/video_ext.php?'+o.vk[1]+e+'" frameborder="0" allowfullscreen><\/iframe>'):o.vqq&&(e="&autoplay="+h,y=t.split("vid="),p=y[1].split("&"),s='<iframe class="lg-video-object lg-vk '+i+'" width="560" height="315" src="https://v.qq.com/txp/iframe/player.html?vid='+p[0]+'"&tiny=0&auto=0'+e+'"  frameborder="0" allowfullscreen><\/iframe>');return s};t.prototype.destroy=function(){this.videoLoaded=!1};n.fn.lightGallery.modules.video=t}(jQuery,window,document);Froogaloop=function(){function t(n){return new t.fn.init(n)}function i(n,t,i){return i.contentWindow.postMessage?(n=JSON.stringify({method:n,value:t}),void i.contentWindow.postMessage(n,u)):!1}function f(t){var i,f,o,e;try{i=JSON.parse(t.data);f=i.event||i.method}catch(s){}return("ready"!=f||r||(r=!0),!/^https?:\/\/player.vimeo.com/.test(t.origin))?!1:("*"===u&&(u=t.origin),t=i.value,o=i.data,e=""===e?null:i.player_id,i=e?n[e][f]:n[f],f=[],i?(void 0!==t&&f.push(t),o&&f.push(o),e&&f.push(e),0<f.length?i.apply(null,f):i.call()):!1)}function e(t,i,r){r?(n[r]||(n[r]={}),n[r][t]=i):n[t]=i}var n={},r=!1,u="*";return t.fn=t.prototype={element:null,init:function(n){return"string"==typeof n&&(n=document.getElementById(n)),this.element=n,this},api:function(n,t){if(!this.element||!n)return!1;var r=this.element,f=""!==r.id?r.id:null,o=t&&t.constructor&&t.call&&t.apply?null:t,u=t&&t.constructor&&t.call&&t.apply?t:null;return u&&e(n,u,f),i(n,o,r),this},addEvent:function(n,t){if(!this.element)return!1;var u=this.element,f=""!==u.id?u.id:null;return e(n,t,f),"ready"!=n?i("addEventListener",n,u):"ready"==n&&r&&t.call(null,f),this},removeEvent:function(t){if(!this.element)return!1;var u=this.element,r=""!==u.id?u.id:null,f=!1;r&&n[r]?n[r][t]?n[r][t]=null:(r=!1,f=!0):n[t]?n[t]=null:(r=!1,f=!0);f||(r=!0);"ready"!=t&&r&&i("removeEventListener",t,u)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",f,!1):window.attachEvent("onmessage",f),window.Froogaloop=window.$f=t}();scrollableListComponent();emailContact="";productAreas="";emailContact=$(".email-addr").first().text()!=""?$(".email-addr").first().text():"Email Contact";productAreas=$("#productAreas").first().text()!=""?$("#productAreas").first().text():"Product areas of focus";$(window).load(function(){var n,t;$(".list-tile-component .info-popover, .product-hero-buttons .info-popover").popover({html:!0,trigger:"manual",content:function(){var n=$(this).attr("data-target");return $(n).children(".popover-body").html()},title:""}).click(function(n){$(".list-tile-component .info-popover, .product-hero-buttons .info-popover").popover("show");$(".close").click(function(){$(".info-popover").popover("hide")});$(".btn-close").on("click",function(){$(".list-tile-component .info-popover, .product-hero-buttons .info-popover").popover("hide")});n.preventDefault()});n=$("body").find("#recently-viewed-section");n.length>0&&$.ajax({type:"GET",url:"/VariantDetailPage/RecentlyViewedProducts",async:!0,success:function(t){n.html(t);setTimeout(function(){new RecentlyViewedRotator},50)}});t=$("body").find("#recently-viewed-section--redesign");t.length>0&&$.ajax({type:"GET",url:"/VariantDetailPage/RecentlyViewedProductsRedesign",async:!0,success:function(n){t.html(n);setTimeout(function(){new RecentlyViewedRotator},50)}})});$(document).on("click",function(n){$(".info-popover").each(function(){$(this).is(n.target)||$(this).has(n.target).length!==0||$(".popover").has(n.target).length!==0||$(this).popover("hide")})});!function(){function n(){var t=$(this).data("url"),n=$("#modalContacts iframe");return n.attr("src",t),n.ready(function(){$("#modal-how-to-buy").modal("show")}),!1}$("[data-target='#modal-how-to-buy']").on("click",n)}();TabsCollapsibleComponent=new TabsCollapsibleComponent;tableCollapsibleComponent=new TableCollapsibleComponent;ListCollapsibleComponent=new ListCollapsibleComponent;$("#unit").val()=="metric"?$(".metric-unit").addClass("active"):$(".imperial-unit").addClass("active");$(document).ready(function(){displayViewIn3d()});$("img#pdpHeroImage").on("click",function(){var n=$("img#pdpHeroImage").attr("src");$('a[href="'+n+'"]').trigger("click")});$("img#pdpHeroImageMobile").on("click",function(){var n=$("img#pdpHeroImageMobile").attr("src");$('a[href="'+n+'"]').trigger("click")});$(window).load(function(){var n=new AnchoredMenuComponent,t=new MediaGalleryRotator,i=new PresentationRotator,r=new ProductContactsComponent,u=new Contact,f=new EmailContactPopUpComponent,e=new ProductHeroGalleryComponent,o=new RelatedProductsComponent,s=new ProductDownloadsComponent,h=new RecentlyViewedRotator,c=new TabsLeftComponent,l=new ToolsComponent});!function(){function n(){var n=this.href,i=$(this).data(),r=n+"?"+t(i);return window.open(r,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600"),!1}function t(n){var i=[];for(var t in n)n.hasOwnProperty(t)&&i.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return i.join("&")}$(".gplus-share, .facebook-share, .twitter-share, .linkedin-share").on("click",n)}()