function utagLink(n){typeof utag!="undefined"?utag.link(n):console.warn("utag.link called before defined")}function trackLoadMoreProducts(){try{console.log("trackLoadMoreProducts")}catch(n){console.error("trackLoadMoreProducts error",n)}}function trackSubCatPageSorting(){try{console.log("trackSubCatPageSorting")}catch(n){console.error("sendSortTrackingData error",n)}}function analyticsSetEmailVars(n){try{setCookie("_sat_lastemailsubmitted",n)}catch(t){console.error("analyticsSetEmailVars error",t)}}function analyticsTrackSub(n,t){try{var i={page_name:"",page_type:"",email:t,event_name:"email_signup",link_name:"email signup",email_signup_location:n,link_page_name:utag_data.page_name};utagLink(_.assign(utag_data_layer,i))}catch(r){console.error("analyticsTrackSub error",r)}}function slickProductImages(n,t){$(n).show().slick({slidesToShow:1,slidesToScroll:1,arrows:!1,speed:150,asNavFor:t,responsive:[{breakpoint:ssb_constants.SCREEN_MOBILE_MAX,settings:{arrows:!0,prevArrow:'<i class="slick-custom-arrow arrow-prev icon icon-arrow-left"><\/i>',nextArrow:'<i class="slick-custom-arrow arrow-next icon icon-arrow-right"><\/i>'}}]});sizeSliderHeight();$(t).show().slick({slidesToShow:6,slidesToScroll:1,arrows:!0,asNavFor:n,focusOnSelect:!0})}function sizeSliderHeight(){var n=$(".js-slider-for .slick-active > img").first();n.height()===0?window.requestAnimationFrame(sizeSliderHeight):$(".product-gallery.flex-row").css("min-height",n.height())}function showAddToCartMobileOverlay(){var n=document.querySelector(".mobile-minicart-message");n.style.display="block";setTimeout(function(){n.style.display=""},3e3)}function getSearchData(){var u={},i,r,n,t;if(location.search.substr&&(i=location.search.substr(1),i))for(r=i.split("&"),n=[],t=0;t<r.length;t++)n=r[t].split("="),u[n[0]]=unescape(n[1]);return u}function TrackCertonaOnQuickviewEvent(n,t){try{typeof certona!="undefined"?(SavePageLevelRecItems(),certona={},certona.pagetype=t==="certona"?"QUICKVIEWREC":"QUICKVIEW",certona.itemid=n,callCertona(),console.log(certona)):console.warn("Certona object called when not available.")}catch(i){console.error("TrackCertonaOnQuickviewEvent error",i)}}function TrackCertonaRecentlyViewedItems(n){try{if(typeof certona!="undefined"){var t=certona.recitems+","+n.replace(/;/gi,",");SetRecitemsAndPageTypeAndCallCertona(t,certona.pagetype)}else console.warn("Certona object called when not available.")}catch(i){console.error("TrackCertonaRecentlyViewedItems error",i)}}function TrackCertonaRecItems(n,t){try{if(typeof certona!="undefined"){certona.itemid="";var i=BuildRecItemsArray(n,t);SetRecitemsAndPageTypeAndCallCertona(i,"RECPAGE")}else console.warn("Certona object called when not available.")}catch(r){console.error("TrackCertonaRecItems error",r)}}function TrackCertonaRecItemsForAddToCart(n,t){try{if(typeof certona!="undefined"){SavePageLevelRecItems();var i=BuildRecItemsArray(n,t);SetRecitemsAndPageTypeAndCallCertona(i,"ADDTOCART")}else console.warn("Certona object called when not available.")}catch(r){console.error("TrackCertonaRecItemsForAddToCart error",r)}}function ReloadSavedPageLevelCertonaRecItems(){try{Object.assign(certona,document.certonaobject);document.certonaobject={};console.log(certona)}catch(n){console.error("ReloadSavedPageLevelCertonaRecItems error",n)}}function SavePageLevelRecItems(){try{(typeof document.certonaobject=="undefined"||typeof document.certonaobject.pagetype=="undefined")&&(document.certonaobject={},Object.assign(document.certonaobject,certona))}catch(n){console.error("SavePageLevelRecItems error",n)}}function BuildRecItemsArray(n,t){for(var i="",r=0;r<n.length;r++)i=i+n[r].sku+"|"+t+",";return i}function SetRecitemsAndPageTypeAndCallCertona(n,t){certona.recitems=n;certona.pagetype=t;callCertona();console.log(certona)}var ssb_constants={SCREEN_MOBILE_MAX:767,SCREEN_TABLET_MAX:921,SCREEN_DESKTOP:1199,RECENT_SLIDES_COUNT:7};!function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return-1==r.indexOf(t)&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),-1!=r&&i.splice(r,1),this},n.emitEvent=function(n,t){var r=this._events&&this._events[n],u,i,f,e;if(r&&r.length){for(u=0,i=r[u],t=t||[],f=this._onceEvents&&this._onceEvents[n];i;)e=f&&f[i],e&&(this.off(n,i),delete f[i]),i.apply(this,t),u+=e?0:1,i=r[u];return this}},n.allOff=n.removeAllListeners=function(){delete this._events;delete this._onceEvents},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("ev-emitter")):n.imagesLoaded=t(n,n.EvEmitter)}("undefined"!=typeof window?window:this,function(n,t){function e(n,t){for(var i in t)n[i]=t[i];return n}function h(n){var t=[],i;if(Array.isArray(n))t=n;else if("number"==typeof n.length)for(i=0;i<n.length;i++)t.push(n[i]);else t.push(n);return t}function i(n,t,r){return this instanceof i?("string"==typeof n&&(n=document.querySelectorAll(n)),this.elements=h(n),this.options=e({},this.options),"function"==typeof t?r=t:e(this.options,t),r&&this.on("always",r),this.getImages(),f&&(this.jqDeferred=new f.Deferred),void setTimeout(function(){this.check()}.bind(this))):new i(n,t,r)}function r(n){this.img=n}function u(n,t){this.url=n;this.element=t;this.img=new Image}var f=n.jQuery,o=n.console,s;return i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(n){var i,r,t,f,u,e;if("IMG"==n.nodeName&&this.addImage(n),this.options.background===!0&&this.addElementBackgroundImages(n),i=n.nodeType,i&&s[i]){for(r=n.querySelectorAll("img"),t=0;t<r.length;t++)f=r[t],this.addImage(f);if("string"==typeof this.options.background)for(u=n.querySelectorAll(this.options.background),t=0;t<u.length;t++)e=u[t],this.addElementBackgroundImages(e)}},s={1:!0,9:!0,11:!0},i.prototype.addElementBackgroundImages=function(n){var i=getComputedStyle(n),r,t,u;if(i)for(r=/url\((['"])?(.*?)\1\)/gi,t=r.exec(i.backgroundImage);null!==t;)u=t&&t[2],u&&this.addBackground(u,n),t=r.exec(i.backgroundImage)},i.prototype.addImage=function(n){var t=new r(n);this.images.push(t)},i.prototype.addBackground=function(n,t){var i=new u(n,t);this.images.push(i)},i.prototype.check=function(){function n(n,i,r){setTimeout(function(){t.progress(n,i,r)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",n);t.check()}):void this.complete()},i.prototype.progress=function(n,t,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;this.emitEvent("progress",[this,n,t]);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,n);this.progressedCount==this.images.length&&this.complete();this.options.debug&&o&&o.log("progress: "+i,n,t)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred)&&(n=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[n](this))},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var n=this.getIsImageComplete();return n?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.prototype.onload=function(){this.confirm(!0,"onload");this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror");this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype=Object.create(r.prototype),u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var n=this.getIsImageComplete();n&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){t=t||n.jQuery;t&&(f=t,f.fn.imagesLoaded=function(n,t){var r=new i(this,n,t);return r.jqDeferred.promise(f(this))})},i.makeJQueryPlugin(),i}),function(n){$("#SourcecodePopup").modal("show");$("#SourcecodePopup").on("hidden.bs.modal",function(){n.cookie="sourcecodePopup=dismissed"});$(".sourcecode-block-form").submit(function(t){t.preventDefault();var i=$(this),r=i.attr("action");$.ajax({type:"POST",url:r,data:{sourcecode:i.find(".sourcecode-block-input").val(),id:i.find(".sourcecode-block-id").val(),redirectToFeaturedProducts:i.find(".redirect-to-featured-products").val()},success:function(t){t.Succeeded==="true"?(i.find(".sourcecode-form-input-group").hide(),i.find(".submitted-message").hide(),i.find(".sourcecode-block-results").show(),i.find(".is-sourcecode-popup").val()==="true"&&(n.cookie="sourcecodePopup=dismissed"),t.RedirectUrl?location.href=t.RedirectUrl:location.reload()):i.find(".submitted-message").html(t.SubmittedMessage).css("display","inline-block")},error:function(){i.find(".submitted-message").html("An error occurred. Please try again.").show()}})})}(document),function(n,t){function u(n){n&&n.stopPropagation();this.classList.toggle("open");this.parentNode.querySelector(".js-collapse").classList.toggle("in")}function f(n){if(n&&n.stopPropagation(),n.srcElement.parentNode.className.includes("js-collapse-control")){n.srcElement.parentNode.classList.toggle("open");for(var t=n.srcElement.parentNode.nextElementSibling;t;)t.className.includes("js-collapse")&&t.classList.toggle("in"),t=t.nextElementSibling}}var r=t.querySelectorAll(".js-collapse-control"),i;[].forEach.call(r,function(n){n.addEventListener("click",u,!0)});i=t.querySelectorAll(".js-collapse");[].forEach.call(i,function(n){n.addEventListener("click",f,!0)})}(window,document);$(document).ready(function(){function t(n){for(var i,r,u,f,e=$(".reviews__list").detach(),t=0,o=n.length;t<o;t++){for(i=$($(".review-pager")[t]),r=0,u=n[t].length;r<u;r++)f=e.filter('[data-pwr-review-id="'+n[t][r]+'"]'),i.append(f);i.find(".review-page-footer").appendTo(i)}}function n(){$(window).width()<768?($(".tab-content #reviews").appendTo("#accordion #reviewcollapse .panel-body"),$(".tab-content #qa").appendTo("#accordion #qacollapse .panel-body")):($("#accordion #reviewcollapse #reviews").appendTo(".tab-content [ng-show*=customer_reviews]"),$("#accordion #qacollapse #qa").appendTo(".tab-content [ng-show*=q_and_a]"))}$(".TTOrderPage").prepend("<p>We'd love your thoughts!<\/p>");$(".reviews").on("click",".review-next-page",function(){$(this).closest(".review-pager").removeClass("current-page").next().addClass("current-page");$("html, body").animate({scrollTop:$(".reviews__controls").offset().top},250)});$(".reviews").on("click",".review-previous-page",function(){$(this).closest(".current-page").removeClass("current-page").prev().addClass("current-page");$("html, body").animate({scrollTop:$(".reviews__controls").offset().top},250)});$(".reviews").on("click",".btn-view-all-reviews",function(){$(".review-pager").addClass("mobile-view-all");$("html, body").animate({scrollTop:$(".reviews__controls").offset().top},250)});$(".reviews .reviews-sortby-ddl .dropdown-menu a").on("click",function(){var i=$(this).data("ddl-select-value")+"",n=null;switch(i){case"newest":n=pwr_new_sorting;break;case"oldest":n=pwr_old_sorting;break;case"highest":n=pwr_high_sorting;break;case"lowest":n=pwr_low_sorting;break;case"helpful":n=pwr_helpful_sorting;break;case"unhelpful":n=pwr_unhelpful_sorting}t(n);$(this).closest(".options-list").find(".dropdown-toggle-value").text(this.text);$(".review-pager").removeClass("current-page");$(".review-pager").first().addClass("current-page")});if($(".accordion").collapse(),$("#pr-war").length)$(window).on("load",function(){$("#pr-pros,#pr-cons,#pr-bestuses").parent().wrap($("<div><\/div>").addClass("col-xs-12 col-sm-4")).last().parent().next().css("clear","both")});$(window).resize(function(){n()});n()}),function(n,t){var i=t.querySelectorAll(".js-placeholder");i.length&&[].forEach.call(i,function(n){n.addEventListener("focus",function(){this.classList.add("focus")});n.addEventListener("blur",function(){this.value||this.classList.remove("focus")})})}(window,document),function(n,t){$(t).on("click",".js-print",function(){var r=t.getElementById("printArea"),i=n.open();i.document.write(r.innerHTML);i.document.close();i.focus();i.print();i.close()})}(window,document),function(n,t){$(t).on("click",".print-page",function(){n.print()})}(window,document),function(n,t){function i(){var n=t.querySelector(".js-ref");n&&n.scrollIntoView({behavior:"smooth"})}n.addEventListener?n.addEventListener("load",i,!1):n.attachEvent&&n.attachEvent("onload",i,!1)}(window,document),function(n,t){var i=n.history,r=t.querySelectorAll(".js-history-back");[].forEach.call(r,function(r){r.addEventListener("click",function(){t.referrer.split("/")[2]===location.hostname?i.back():n.location="/"})})}(window,document),function(n,t,i){function o(){l();n.innerWidth>i.SCREEN_TABLET_MAX?h():f&&c()}function s(){e()}function e(){clearTimeout(u);u=setTimeout(o,200)}function h(){[].forEach.call(r,function(n){n.style.width=n.parentNode.offsetWidth+"px"});f=!0}function c(){[].forEach.call(r,function(n){n.style.width=""})}function l(){r=t.querySelectorAll(".flexbox-fix")}var r=[],u=null,f=!1;n.addEventListener("resize",e);t.addEventListener("DOMContentLoaded",s)}(window,document,ssb_constants)