// 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(
"/category.php?category_id=18",
"/category.php?category_id=19",
"/category.php?category_id=18",
"/category.php?category_id=4",
"/category.php?category_id=18",
"/category.php?category_id=19",
"/category.php?category_id=19"
);

image = new initArray(
"03.jpg",
"03a.jpg",
"03b.jpg",
"03c.jpg",
"03d.jpg",
"03e.jpg",
"03f.jpg"
);

text = new initArray(
"enjoy",
"wear",
"enjoy",
"accessories",
"enjoy",
"wear",
"wear"
);

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+ '\"><img src=\"images/main/'+ranimage+'\" class="mainimg" width="155" height="155" alt=\"'+rantext+'\"></a>');
