	  
		// Hide script from older browsers 
		// script by http://www.hypergurl.com
		var urlAddress = "http://www.ihighstreet.co.uk/"; 
		var pageName = "iHighstreet - Online Shopping Made Simple"; 
		  
		function addToFavorites() { 
			if (window.external) { 
				window.external.AddFavorite(urlAddress,pageName) 
			} 
		}  

		  function replaceText(text){
		  while(text.lastIndexOf("&") > 0){
		  text = text.replace("&", "[i-Stats]");
		  }
		  return text;
		  }
		  function clearDefault(el) {
		  if (el.defaultValue==el.value) el.value = ""
		  }

		  var web_referrer = replaceText(document.referrer);
		  istat = new Image(1,1);
		  istat.src = "http://www.ihighstreet.co.uk/stats/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+web_referrer+"&page="+location.href;


var amazonaffiliate="tsunamicomput-21";

var linkcount;
function checklinks() {
 if (!(linkcount==document.links.length)) {
   // Something changed the links!
   // Iterate for an id of _goog
   for (i=0; i < document.links.length; i++) {
if (document.links[i].id.substring(0,5)=="_goog") {
// If we find an id of _goog then do something
if (amazonaffiliate=="") { 
// No affiliate id defined so remove the links
var tr = document.links[i].parentTextEdit.createTextRange();
tr.moveToElementText(document.links[i]);
tr.execCommand("Unlink",false);
tr.execCommand("Unselect",false);
i--;
} else {
// An affiliate id defined so rewrite ISBN links
if (document.links[i].href.indexOf("isbn")>0) {
var isbn=document.links[i].href.substring(document.links[i].href.indexOf("text")+5,document.links[i].href.length);
document.links[i].href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=" + amazonaffiliate + "&keyword=" + isbn + "&index=books";
}
}
}
   }
  }
  linkcount = document.links.length;
  setTimeout("checklinks()",500);
}
if (document.getElementById && document.createElement) {
linkcount=document.links.length;
setTimeout("checklinks()",500);
}
