"),$("#secondary-img-794").show());if(n.disableBatchForSelection?($(".batchSelection").hide(),$(".availability").hide()):($(".batchSelection").show(),$(".availability").show()),n.replaceImages&&($(".gallery").find(".thumb-item").each(function(){$(this).remove()}),$(".picture-thumbs").html("")),n.images&&n.images.length>2){var nt=n.sku,r=jQuery.parseJSON(n.images);for(t=0;t<\/a><\/div>"):$(".picture-thumbs").append(" <\/a>");if(r.length>0&&!r[0].PictureDefaultSizeUrl.includes("default-image"))try{$('img[id^="main-product-img"]').length&&$($('img[id^="main-product-img"]')[0]).attr("src",r[0].PictureDefaultSizeUrl);$('img[id^="main-product-img-lightbox-anchor"]').length&&$($('img[id^="main-product-img-lightbox-anchor"]')[0]).attr("src",r[0].PictureDefaultSizeUrl);$(".gallery").find(".picture").find("a").attr("href",r[0].PictureFullSizeUrl);$(".picture-link").length&&$($(".picture-link")[0]).attr("data-full-image-url",r[0].PictureFullSizeUrl);$(".cloudzoom").length&&$($(".cloudzoom")[0]).attr("src",r[0].PictureFullSizeUrl);$(".cloudzoom-zoom-inside").length&&($($(".cloudzoom-zoom-inside")[0]).attr("src",r[t].PictureFullSizeUrl),$("#cloudzoom-zoom-image-1").attr("src",r[t].PictureFullSizeUrl));$(".cloudzoom").length&&(a=$("#cloudZoomImage").data("CloudZoom"),a&&($("#cloudZoomImage").attr("src",r[0].PictureFullSizeUrl),$("#cloudZoomImage").attr("alt",r[0].Sku),$("#zoom1").attr("data-full-image-url",r[0].PictureFullSizeUrl),a.loadImage(r[0].PictureDefaultSizeUrl,r[0].PictureFullSizeUrl),a.refreshImage()))}catch(g){console.error("zoomInstance failed messagge: "+g)}}if(n.toggleChildDescriptions&&(n.shortDescription.length>1&&$(".short-description").html(n.shortDescription),n.longDescription.length>1&&$(".full-description").html(n.longDescription)),n.grid)for(i=jQuery.parseJSON(n.grid),$("div[id^='grid_entry']").each(function(){$(this).hide()}),t=0;t