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.blushingbooks.com",
"http://www.blushingbooks.com",
"http://www.blushingbooks.com",
"http://www.blushingbooks.com"
);

image = new initArray(

"http://www.spankingblog.com/blushingbooks1.jpg",
"http://www.spankingblog.com/blushingbooks2.jpg",
"http://www.spankingblog.com/blushingbooks3.jpg",
"http://www.spankingblog.com/blushingbooks4.jpg"
);


text = new initArray(

"Blushing Books",
"Blushing Books",
"Blushing Books",
"Blushing Books"
);


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+ '\" class=\"toplink\"><img src=\"' +ranimage+ '\" alt= \"' +rantext+ '\" width=\"150\" height=\"250\" border=\"3\"></a>');
