Home

“);
hFrmDoc.close();
hHead = hFrmDoc.getElementsByTagName(“head”)[0];
}
var c = jQuery.ajaxSettings.cache;
jQuery.ajaxSettings.cache = true;
jQuery(hHead).append(”);
jQuery.ajaxSettings.cache = c;

amznJQ.available(“search-js-general” , function() {
window.precacheDetailImages = function(imageUrls, pids) {

function transformUrl(imgUrl, pid) {
var suffix = ‘._SL500_AA300_.jpg’,
defaultApparel = ‘._AA300_.jpg’,
iVApparel = ‘._SX300_SY390_CR,0,0,300,390_.jpg’,
imgUrlSplit = imgUrl.split(“._”);

if(imgUrlSplit.length) {
var prefix = imgUrlSplit[0];
if((!pid && storeName == “books”) || pid == “books_display_on_website”) {
if(imgUrl.match(“PIsitb-sticker-arrow-dp”)){
var OUID = imgUrl.substr(imgUrl.indexOf(‘_OU’), 6);
var lookInsideSticker = ‘._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20’+ OUID +’.jpg’;
urls.push(prefix + lookInsideSticker);
} else {
urls.push(prefix + suffix);
}
} else if((!pid && storeName == “apparel”) || pid == “apparel_display_on_website”) {
urls.push(prefix + “._SX342_.jpg”);
urls.push(prefix + “._SY445_.jpg”);
} else if((!pid && storeName == “shoes”) || pid == “shoes_display_on_website”) {
urls.push(prefix + “._SX395_.jpg”);
urls.push(prefix + “._SY395_.jpg”);
} else {
urls.push(prefix + suffix);
}
}
};

var dpImages = [],
urls = [],
numImgsPreload = Math.min(4, imageUrls.length),
storeName = “”;

for(var i = 0; i

 Read story

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s