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];
  }
}

image = new initArray(
"/img/bannerv2/logo_seabob.gif",
"/img/bannerv2/logo_dragonsub.gif",
"/img/bannerv2/logo_sevylor.gif",
"/img/bannerv2/logo_scubapro.gif",
"/img/bannerv2/logo_sporasub.gif",
"/img/bannerv2/logo_bauer.gif",
"/img/bannerv2/logo_seadoo.gif",
"/img/bannerv2/logo_atomic.gif",
"/img/bannerv2/logo_problue.gif",
"/img/bannerv2/logo_omer.gif",
"/img/bannerv2/logo_mares.gif",
"/img/bannerv2/logo_aqualung.gif",
"/img/bannerv2/logo_cressi.gif"
);

imagewidth = new initArray(
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483",
"483"
);

imageheight = new initArray(
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81",
"81"
);

link = new initArray(
"http://www.",
"http://www.dragonsub.com",
"http://www.sevylor.com",
"http://www.scubapro.com",
"http://www.sporasub.com",
"http://www.bauercomp.com",
"http://www.sea-doo.com",
"http://www.atomicaquatics.com",
"http://www.problue.com.tw",
"http://www.omersub.com",
"http://www.mares.com",
"http://www.aqualung.fr",
"http://www.cressi.it"
);

target = new initArray(
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank",
"_blank"
);

text = new initArray(
"SEABOB",
"DRAGONSUB",
"SEVYLOR",
"SCUBAPRO",
"SPORASUB",
"BAUER",
"SEA-DOO",
"ATOMIC",
"PROBLUE",
"OMERSUB",
"MARES",
"AQUALUNG",
"CRESSI-SUB"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink  = link[core];
var rantarget = target[core];
var ranimage = image[core];
var ranimagewidth = imagewidth[core];
var ranimageheight = imageheight[core];
var rantext  = text[core];