function replaceImage(img) {
    if (img.width == '1' && img.src.match(/\.01\./)) {
	img.src = '/images/noimage.MZZZZZZZ.jpg';
    } else if (img.width == '1') {
	img.src = img.src.replace('.09.','.01.');
    }
}

function getOffers(asin) {
	new Ajax.Updater(asin, '/amp/?action_offers=1&asin=' + asin,
		{
			method: 'get',
			parameters: asin,
			asynchronous: true,
			//evalScripts: true,
			onLoading: function(request) {
				var el = 's' + asin;
				$(el).style.display = 'inline';
			},
			onComplete: function(request) {
				var el = 's' + asin;
				$(el).style.display = 'none';
			}
         });
	return false;
}

