// 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(
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.aztrainsca.com/",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.modelrailroadnews.com/",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.rrmodelcraftsman.com/",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.narrowgaugedownunder.com",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.maine2footquarterly.com",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.heimburgerhouse.com/",
"http://www.railcams.com/cgi-bin/netgo.exe?http://www.ngslgazette.com/"
);

image = new initArray(
"./adimages/aztrainsca.gif",
"./adimages/model-railroad-news.jpg",
"./adimages/railroad-model-craftsman.jpg",
"./adimages/narrow-gauge-downunder.jpg",
"./adimages/maine-2-foot-quarterly.jpg",
"./adimages/s-gaugian.jpg",
"./adimages/narrow-gauge-shortline-gazette.jpg"
);

text = new initArray(
"Arizona Trains & Hobbies",
"Model Railroad News",
"Railroad Model Craftsman",
"Narrow Gauge Downunder",
"Maine 2 Foot Quarterly",
"S Gaugian",
"Narrow Gauge & Shortline"
);

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 alt=\"Click here!\"></a><br>');
document.write('<a href=\"' +ranlink+ '\" target=\"_top\"><small>'+rantext+'</small></a>');


