// 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(  // MAKE SURE EVERY LINE ENDS WITH A COMMA, EXCEPT FOR THE FINAL LINE
"/category.php?category_id=22",
"/category.php?category_id=22"
);

//September 22, 2009 - catids
//22 sleep mask, 23 pin cusions, 24 toliet paper, 25 utin burrito, 26 necklace, 27 accessories, 28 potty fairy


image = new initArray(  // MAKE SURE EVERY LINE ENDS WITH A COMMA, EXCEPT FOR THE FINAL LINE
"Main_2_Blue_owl_sleeping_mask_143x143.jpg",
"main_2_C22_Owl_Sleep_mask_143x143.jpg"
);

text = new initArray(  // MAKE SURE EVERY LINE ENDS WITH A COMMA, EXCEPT FOR THE FINAL LINE
"Adorable Blue owl sleep masks. Cute owl gifts",
"Fierce Black Cat sleeping masks, Cute Cat love gifts"
);

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

document.write('<div style=\"background:transparent url(../images/main/'+ranimage+') no-repeat center center\"><a href=\"' +ranlink+ '\" class=\"noborder\"><img src=\"images/main/medborder.gif\" class="mainimg" width="143" height="143" alt=\"'+rantext+'\"></a></div>');
