<!--
function adArray2() {
 for (i=0; i*3<adArray.arguments.length; i++) {
  this[i] = new Object();
   this[i].sponsor = adArray.arguments[i*3];
  this[i].src = adArray.arguments[i*3+1];
  this[i].href = adArray.arguments[i*3+2];
 }
 this.length = i;
}
function adArray() {
 for (i=0; i*2<adArray.arguments.length; i++) {
  this[i] = new Object();
  this[i].src = adArray.arguments[i*2];
  this[i].href = adArray.arguments[i*2+1];
 }
 this.length = i;
}
function getAdNum() {
 dat = new Date();
 dat = (dat.getTime()+"").charAt(8);
 if (dat.length == 1)
  ad_num = dat%ads.length;
 else
  ad_num = 0;
 return ad_num;
}
 
// ****** YOU NEED NOT MODIFY ANYTHING THAT IS NOT IN BETWEEN THESE TWO COMMENTS ****

//var ads = new adArray(
//"ADI","ads/adi152x26.gif","http://www.adilink.com/",
//"DSC","ads/dsc152x26.gif","http://www.dsc.com/",
//"Sur-Gard","ads/sg152x26.gif","http://www.sur-gard.com.org/");
var ads = new adArray(
"ads/adi152x26.gif","http://www.adilink.com/",
"ads/dsc152x26.gif","http://www.dsc.com/",
"ads/sg152x26.gif","http://www.sur-gard.com/");
var ad_num = getAdNum(); // don't change this line

document.write('<TABLE align=left CELLPADDING=0 CELLSPACING=1 BORDER=0><TR><TD '
+'ALIGN=center><FONT SIZE=1 face=Arial><B>Visit our sponsors-click below:<p></FONT></TD></tr>'
//+'<tr><TD align=center>'+ '<A HREF="'+ads[ad_num].href+'"> + sponsors[ad_num] + '</A></tr></td>'
//+'<tr><TD align=center><span id=sponsor>' + ads[ad_num].sponsor + '</span></td></tr>'

+'<tr><td align=center><A HREF="'+ads[ad_num].href+'" target="new"><IMG SRC="'+ads[ad_num].src+'" '
+'HEIGHT=26 WIDTH=150 BORDER=1 name=js_ad></A></TD></TR></TABLE>');

// ****** YOU NEED NOT MODIFY ANYTHING THAT IS NOT IN BETWEEN THESE TWO COMMENTS ****

link_num = document.links.length-1;

function rotateSponsor() {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  //document.sponsor.value = ads[ad_num].sponsor;
  document.js_ad.src = ads[ad_num].src;
  document.links[link_num].href = ads[ad_num].href;
    
  setTimeout("rotateSponsor()",5000);
 }
}
setTimeout("rotateSponsor()",5000);

// -->  
