// set your AFFILIATE IDs here. Leave blank any you do not have an account for.
var arrAffiliates = {
	'co.uk' : 'triciaschinesw07',
	'com'	: 'triciaschineswat',
	'de'	: 'triciaschines-21',
	'fr'	: 'triciaschin0e-21',
	'ca'	: 'triciaschin0f-20',
	'jp'	: 'triciaschines-22'
}

function checkAmazonLinks(){var F;var E=new RegExp("/([A-Z0-9]{10})");if(typeof google!="undefined"){var A=google.loader.ClientLocation.address.country_code}else{alert('You need to add the following code to your <head> section:\n<script src="http://www.google.com/jsapi" language="javascript"><\/script>');return }switch(A){case"GB":case"IE":F="co.uk";break;case"AT":F="de";default:F=(arrAffiliates[A.toLowerCase()]?A.toLowerCase():"com");break}var D=document.getElementsByTagName("a");strAffiliateId=(arrAffiliates[F]?arrAffiliates[F]:arrAffiliatesSpares[F]);for(i=0;i<D.length;i++){var B=D[i].href.toLowerCase().indexOf("amazon.");if(B>0){var C=E.exec(D[i].href);if(C){var G=C[1];D[i].href="http://www.amazon."+F+"/exec/obidos/ASIN/"+G+"/"+strAffiliateId}}}}if(window.addEventListener){window.addEventListener("load",checkAmazonLinks,false)}else{window.attachEvent("onload",checkAmazonLinks)}var arrAffiliatesSpares={"co.uk":"pcrev05",com:"petewill-20",de:"petewill05-21",fr:"petewill-21",ca:"petewill00-20",jp:"petewill-22"};