'
jQuery('#reviewsBlock').replaceWith(strResult);
jQuery('#reviewsBlock').fadeIn("slow");
});
}
}
//error: alert("error");
});
}
var OriginalImage = jQuery('#listing_main_image_link').attr('href') ?? '';
function SelectSwatch(id) {
var imagepath = jQuery('#swatch-image-' + id).val();
if (imagepath == '') imagepath = OriginalImage;
if (imagepath != '') {
if (jQuery('#listing_main_image_link').length > 0) {
jQuery('#listing_main_image_link').attr('href', imagepath);
jQuery('#large').attr('src', 'thumbnail.asp?file=' + imagepath + '&maxx=300&maxy=0');
jQuery('.MagicZoomBigImageCont img').attr('src', imagepath)
jQuery('.MagicThumb-expanded img').attr('src', imagepath)
}
else {
jQuery("#mediaBlock").prepend('
');
}
selectedimage = imagepath;
}
}