// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: 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.threeamdesign.com.au/",
"http://www.adelaideonlinecomputers.com.au/",
"http://kjedetailing.com.au/",
"http://ferrarispizzabar.com.au/",
"http://mjftiling.com.au/",
"http://auslax.com.au",
"http://designinc.com.au",
"http://omikron.net.au",
"http://www.bc-lawyers.com.au",
"http://www.australbricks.com.au"
);

image = new initArray(
"/images/ads/3am.gif",
"/images/ads/aol.gif",
"/images/ads/kje-detailing.jpg",
"/images/ads/ferraris.jpg",
"/images/ads/mjf-tiling.jpg",
"/images/ads/auslax.gif",
"/images/ads/design-inc.gif",
"/images/ads/omikron.gif",
"/images/ads/belperio-clark.gif",
"/images/ads/australbricks.gif"
);

text = new initArray(
"Three Am Design",
"Adelaide Online Computers",
"Kenny James Eime Detailing",
"Ferraris Pizza Bar",
"MJF Tiling",
"Auslax",
"Design Inc",
"Omikron",
"Belperio Clark",
"Austral Bricks"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

