// Copyright: Nic's JavaScript Page - http://www.javascript-page.com

var currentdate = 0;
var core = 0;

function initArray() {
this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

link = new initArray(
"/cgi-bin/gourl.exe?http://www.beltonchalet.com/",
"http://www.depotinnandsuites.com/",
"/cgi-bin/gourl.exe?http://www.ichotelsgroup.com/h/d/hi/hd/FLGLL",
"http://www.depotinnandsuites.com/",
"/cgi-bin/gourl.exe?http://www.americanhouseinn.com/",
"http://www.depotinnandsuites.com/"
);

image = new initArray(
"./adimages/nstation/usa/105_sm.jpg",
"./adimages/nstation/usa/152_sm.jpg",
"./adimages/nstation/usa/117_sm.jpg",
"./adimages/nstation/usa/152_sm.jpg",
"./adimages/tview/usa/20_sm.jpg",
"./adimages/nstation/usa/152_sm.jpg"
);

text = new initArray(
"Belton Chalet",
"Depot Inn & Suites",
"Holiday Inn",
"Depot Inn & Suites",
"American House Inn",
"Depot Inn & Suites"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

document.write('<a href=\"' +ranlink+ '\" target=\"_top\"><img src=\"'+ranimage+'\" border=0 width=160 height=120 vspace=5 alt=\"Click here!\"></a><br>');
document.write('<a href=\"' +ranlink+ '\" target=\"_top\"><small>'+rantext+'</small></a>');

