"),$("#secondary-img-131701").show());if(n.images)for(r=jQuery.parseJSON(n.images),f=!1,t=0;t
<\/a><\/div>"):$(".picture-thumbs").append("
<\/a>"),t==0&&($("#main-product-img-131701").attr("src",r[t].PictureDefaultSizeUrl),$("#main-product-img-lightbox-anchor-131701").attr("href",r[t].PictureFullSizeUrl)),t==1&&($(".picture").append('Prev<\/span>
<\/div>'),$(".picture").append('Next<\/span>
<\/div>')));if(n.grid)for(i=jQuery.parseJSON(n.grid),$("div[id^='grid_entry']").each(function(){$(this).hide()}),t=0;t0||!n.disableBuyOnProductAttributeChnage)&&$("#add-to-cart-button-131701").show(),$("#product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId+"_price").html(i[t].PriceDisplay),$("#product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId+"_sku").html(i[t].Sku),i[t].LogoUrl==""?$("#grid-img-product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId).hide():($("#grid-img-product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId).show(),$("#grid-img-product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId).attr("src",i[t].LogoUrl),$(".grid-row").css("min-height","160px")),$("#product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId+"_UOM").html(i[t].UOM),n.checkStockQuantityForGridEntry&&(h="focuspoint.stock.avilabilitymessage",$("#product_attribute_"+i[t].ProductAttributeMappingId+"_"+i[t].ValueId+"_availability").text(h+i[t].AvailableStock));n.message&&alert(n.message);$(document).trigger({type:"product_attributes_changed",changedData:n})}})}$(document).ready(function(){$(".thumb-item img").on("click",function(){$("#main-product-img-131701").attr("src",$(this).attr("data-defaultsize"));$("#main-product-img-131701").attr("title",$(this).attr("title"));$("#main-product-img-131701").attr("alt",$(this).attr("alt"));$("#main-product-img-lightbox-anchor-131701").attr("href",$(this).attr("data-fullsize"));$("#main-product-img-lightbox-anchor-131701").attr("title",$(this).attr("title"))})});$(document).ready(function(){attribute_change_handler_131701();$("#product_attribute_42295_43698").on("click",function(){attribute_change_handler_131701()});$("#product_attribute_42295_43699").on("click",function(){attribute_change_handler_131701()});$("#product_attribute_43315_45738").on("click",function(){attribute_change_handler_131701()});$("#product_attribute_43315_45739").on("click",function(){attribute_change_handler_131701()})})