";r+="<\/form>";$(".nopAjaxCartProductVariantAddToCartButton").remove();$("#product-details-form-default").before(r);i===1?($("#add-to-cart-button-"+n).after("<\/button>"),$(".nopAjaxCartProductVariantAddToCartButton").trigger("click")):(AjaxCart.usepopupnotifications=!0,AjaxCart.addproducttocart_details("addproducttocart/details/1135/"+i,"#product-details-form"))}function attribute_change_handler_1135(){var n="#product-details-form";$("#product-details-form-default").length>0&&(n="#product-details-form-default");$.ajax({cache:!1,url:"/shoppingcart/productdetails_attributechange?productId=1135&validateAttributeConditions=False&loadPicture=True",data:$(n).serialize(),type:"POST",success:function(n){var i,t,u,r;if(n.price&&($(".price-value-1135").text(n.price),$(".afterpay-product-info .amount").length>0&&(i=(parseFloat(n.price.replace("$","").replace(",",""))/4).toFixed(2),isNaN(i)||$(".afterpay-product-info .amount").html(i))),n.basepricepangv?$("#base-price-pangv-1135").text(n.basepricepangv):$("#base-price-pangv-1135").hide(),n.sku?$("#sku-1135").text(n.sku).parent(".sku").show():$("#sku-1135").parent(".sku").hide(),n.mpn?$("#mpn-1135").text(n.mpn).parent(".manufacturer-part-number").show():$("#mpn-1135").parent(".manufacturer-part-number").hide(),n.gtin?$("#gtin-1135").text(n.gtin).parent(".gtin").show():$("#gtin-1135").parent(".gtin").hide(),n.stockAvailability&&($("#stock-availability-value-1135").text(n.stockAvailability),$("#stock-availability-value-1135").attr("class","value "+n.stockAvailability.toLowerCase().replaceAll(" ","-"))),n.enabledattributemappingids){for(t=0;t0&&($("#product_attribute_label_0").hide(),$("#product_attribute_input_0").hide(),$("#product_attribute_readmore_0").hide())}u=$(".color-squares li.selected-value").is(":visible");r=$("input[id^='product_attribute_'][value='0']");(r.length>0&&r.prop("checked")||!u)&&$(".price-value-1135").text(n.price);n.pictureDefaultSizeUrl&&$("#main-product-img-1135").attr("src",n.pictureDefaultSizeUrl);n.pictureFullSizeUrl&&$("#main-product-img-lightbox-anchor-1135").attr("href",n.pictureFullSizeUrl);n.message&&alert(n.message);$(document).trigger({type:"product_attributes_changed",changedData:n})}})}var globalResizeTimer=null;$(window).resize(function(){globalResizeTimer!=null&&window.clearTimeout(globalResizeTimer);globalResizeTimer=window.setTimeout(function(){setColourDetailsPosition()},200)});$(document).ready(function(){attribute_change_handler_1135();$("#product_attribute_697_7067").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7073").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7017").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7069").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7037").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7070").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7016").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7015").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7075").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7052").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7064").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7060").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7040").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7021").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7020").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7018").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7023").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7068").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7062").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7036").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7026").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7077").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7031").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7051").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7030").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7027").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7078").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7071").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7059").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7054").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7045").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7024").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7044").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7014").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7025").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7065").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7028").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7038").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7050").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7076").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7046").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7043").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7079").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7010").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7034").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7013").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7039").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7032").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7048").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7072").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7033").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7047").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7053").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7008").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7074").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7056").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7063").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7011").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7080").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7061").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7049").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7029").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7012").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7066").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7041").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7022").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7019").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7058").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7035").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7055").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7042").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7009").on("click",function(n){colourClicked(n);attribute_change_handler_1135()});$("#product_attribute_697_7057").on("click",function(n){colourClicked(n);attribute_change_handler_1135()})})