";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/700/"+i,"#product-details-form"))}function attribute_change_handler_700(){var n="#product-details-form";$("#product-details-form-default").length>0&&(n="#product-details-form-default");$.ajax({cache:!1,url:"/shoppingcart/productdetails_attributechange?productId=700&validateAttributeConditions=False&loadPicture=True",data:$(n).serialize(),type:"POST",success:function(n){var i,t,u,r;if(n.price&&($(".price-value-700").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-700").text(n.basepricepangv):$("#base-price-pangv-700").hide(),n.sku?$("#sku-700").text(n.sku).parent(".sku").show():$("#sku-700").parent(".sku").hide(),n.mpn?$("#mpn-700").text(n.mpn).parent(".manufacturer-part-number").show():$("#mpn-700").parent(".manufacturer-part-number").hide(),n.gtin?$("#gtin-700").text(n.gtin).parent(".gtin").show():$("#gtin-700").parent(".gtin").hide(),n.stockAvailability&&($("#stock-availability-value-700").text(n.stockAvailability),$("#stock-availability-value-700").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-700").text(n.price);n.pictureDefaultSizeUrl&&$("#main-product-img-700").attr("src",n.pictureDefaultSizeUrl);n.pictureFullSizeUrl&&$("#main-product-img-lightbox-anchor-700").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_700();$("#product_attribute_392_13574").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13575").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4845").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4846").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4869").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4865").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4893").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4864").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_15839").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4858").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4857").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4881").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4901").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4856").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4887").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13580").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4898").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4850").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4849").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4848").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4899").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4868").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4866").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13578").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4884").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12825").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12826").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4888").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4900").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4895").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12834").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12835").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4897").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4886").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4853").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4885").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12827").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_12828").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4851").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4852").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13576").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4891").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4890").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4855").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4854").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4894").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13579").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4896").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8811").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4859").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4863").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8819").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4883").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4860").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4867").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8802").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4861").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8806").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4862").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8808").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8815").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8809").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8812").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8813").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8814").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8820").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8803").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8817").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8807").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8818").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4870").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4889").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8810").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_13577").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4847").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8804").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8805").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8816").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_9824").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4873").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4874").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4875").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4876").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4880").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_15835").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_15836").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_15837").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_15838").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4872").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_8821").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_4871").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10602").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10603").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10604").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10605").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10606").on("click",function(n){colourClicked(n);attribute_change_handler_700()});$("#product_attribute_392_10607").on("click",function(n){colourClicked(n);attribute_change_handler_700()})})