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(
"<td bgcolor='#ffffff' align=right><a href=http://www.cwnews.com target='newadvent2'><font face='verdana,arial,helvetica,sans-serif' size='-2'><b><font color='#000000'>Visit Catholic World News</font></b></font></a></td>",
"<td bgcolor='#ffffff' align=right><a href=http://www.petersnet.net target='newadvent2'><font face='verdana,arial,helvetica,sans-serif' size='-2'><b><font color='#000000'>Visit PetersNet</font></b></font></a></td>"
);

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+ '');
