');
//Special shipping
if(jSwatch.isSpecialShipping){pDiv.find("#ssShipping").html(' Ground Shipping Only ');}
else{pDiv.find("#ssShipping").html('');}
//SKU change
pDiv.find("#spCode").html('SKU: '+jSwatch.code+' ');
//Short Decription
if(jSwatch.shortDescription){pDiv.find("#sshortDesc").html(''+jSwatch.shortDescription+' ');}
else{pDiv.find("#sshortDesc").html('');}
//Pricing
//On Sale
if(jSwatch.price.onSale){pDiv.find("#spricing").html('MSRP: '+jSwatch.price.maxPrice+' Our Price: '+jSwatch.price.maxSalePrice+'');}
//Is Was Price
else if(jSwatch.price.isWasIs){pDiv.find("#spricing").html('MSRP: '+jSwatch.price.maxPrice+' Our Price: '+jSwatch.price.maxSalePrice+'');}
//Normal
else{pDiv.find("#spricing").html(''+jSwatch.price.maxPrice+'');}
//End Pricing
if(jSwatch.productReorderDateMessage){
pDiv.find("#sQTY>SPAN").hide();
pDiv.find("#sQTY").append(''+jSwatch.productReorderDateMessage+'').show();
}else if(!jQuery('#sQTY_'+sID).length){
var qtyHTML='';
pDiv.find("#sQTY>SPAN").hide();
pDiv.find("#sQTY").append(''+qtyHTML+'').show();
}
else{
pDiv.find("#sQTY>SPAN").hide();
jQuery('#sQTY_'+sID).show();
}
}
function openExtSwatch(plus){
var plusDiv = jQuery(plus);
var ext=plusDiv.siblings(".extSwatches").eq(0);
//var sOBJ=window["swatch_"+jQuery(this).attr("pgroupid")];
var trPare=plusDiv.closest("tr");
var allSCTR=trPare.find(".swatchesContainer");
var allESTR=trPare.find(".extSwatches");
var allFATR=trPare.find("#FamilyAlign");
var h=23;
var H=160;
var on=false;
if (ext.is(':visible'))
{
ext.css("display","none");
plusDiv.find("IMG").attr("src",plusDiv.find("IMG").attr('src').replace('swatch_view_more_off.gif', 'swatch_view_more_on.gif'));
allESTR.each(function(){
if(jQuery(this).is(":visible"))on=true;
})
if(on){
allSCTR.each(function(){
jQuery(this).css("height","auto");
if(jQuery(this).innerHeight()>h)h=jQuery(this).innerHeight();
})
allSCTR.css("height",h);
allFATR.css("height",H+h);
}
else{
allSCTR.css("height","auto");
allFATR.css("height",H);
}
}
else {
ext.css("display","block");
plusDiv.find("IMG").attr("src",plusDiv.find("IMG").attr('src').replace('swatch_view_more_on.gif', 'swatch_view_more_off.gif'));
allSCTR.each(function(){
jQuery(this).css("height","auto");
if(jQuery(this).innerHeight()>h)h=jQuery(this).innerHeight();
})
allSCTR.css("height",h);
allFATR.css("height",H+h);
}
}
|
ConversionConversion EmoticonEmoticon