// JavaScript Document

 var NoImage = new Image(); 

function checkImages() {
	NoImage.src="http://www.psychohelp.co.uk/images/NoImage.gif";
	setTimeout("Replace1by1Images()", 2000);
}

function Replace1by1Images() {
	var imagesArr = new Array();
 
 // By creating a Javascript image object, and setting the src (which loads the image from network)
 // we have a object that when we refer to the SRC propery, the image will be loaded from
 // the cache rather from the network.
 
 imagesArr = document.getElementsByTagName("img");
 for (var i=0; i < imagesArr.length; i++) { 
 	if(imagesArr[i].width=="1" && imagesArr[i].src.indexOf("amazon")>-1 ) { 
		imagesArr[i].src=NoImage.src;
		//"http://www.psychohelp.co.uk/images/NoImage.gif"; 
	} 
 }
}
window.onload=checkImages;
//checkImages();

