number_of_sponsors = 3;
var sctr = 0;
var halt = 0;
var isn = new Array();
for(i=0;i<number_of_sponsors;i++) {
  isn[i] = new Image();
}
isn[0].src = "http://www.banknotewatch.co.uk/images/bnw_banner.gif";
isn[1].src = "http://www.banknotewatch.co.uk/images/bnw_bannerjoin.gif";
isn[2].src = "http://www.banknotewatch.co.uk/images/bnw_bannerposters.gif";

/* Finally, replace the URL's below with those of
   your sponsors IN THE SAME ORDER. */
   
var durl = new Array();
durl[0] = "http://www.banknotewatch.org";
durl[1] = "mailto:info@banknotewatch.org";
durl[2] = "mailto:info@banknotewatch.org";

function rotateIt() {
  if(halt!=1) {
    sctr++;
    if(sctr>number_of_sponsors-1) {
      sctr = 0;
    }
    document.sponsor.src = isn[sctr].src;
    setTimeout("rotateIt()",7000);
  } else {
  	setTimeout("rotateIt()",100);
  }
}

function gotoAd() {
  window.open(durl[sctr],"","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes");
}  

