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(
"<table align=center><tr><td><table bgcolor=#770077 border=0 cellspacing=0><tr><td><table border=0 cellpadding=3 cellspacing=0 width=100%><tr><td bgcolor=#efefce nowrap><a href='http://www.newadvent.org/jump/ad1.htm'><center><b>Get free catalogs, magazines<br>and more from <font color='#ff0000'>Free for Catholics</font></b></center></a></td></tr></table></td></tr></table></td><td><table bgcolor=#770077 border=0 cellspacing=0><tr><td><table border=0 cellpadding=3 cellspacing=0 width=100%><tr><td bgcolor=#efefce nowrap><a href='http://www.newadvent.org/jump/ad2.htm'><center><b>Single? Catholic? There's reason<br>for hope at <font color='#ff0000'>Ave Maria Singles</font></b></center></a></td></tr></table></td></tr></table></td></tr></table>",
"<table align=center><tr><td><table bgcolor=#770077 border=0 cellspacing=0><tr><td><table border=0 cellpadding=3 cellspacing=0 width=100%><tr><td bgcolor=#efefce nowrap><a href='http://www.newadvent.org/jump/ad2.htm'><center><b>Single? Catholic? There's reason<br>for hope at <font color='#ff0000'>Ave Maria Singles</font></b></center></a></td></tr></table></td></tr></table></td><td><table bgcolor=#770077 border=0 cellspacing=0><tr><td><table border=0 cellpadding=3 cellspacing=0 width=100%><tr><td bgcolor=#efefce nowrap><a href='http://www.newadvent.org/jump/ad1.htm'><center><b>Get free magazines, catalogs<br>and more from <font color='#ff0000'>Free for Catholics</font></b></center></a></td></tr></table></td></tr></table></td></tr></table>"
);

image = new initArray(
"1",
"1"
);

text = new initArray(
"1",
"1"
);

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

document.write('' +ranlink+ '');


