var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(21)
image[0] = 'logo.gif'
image[1] = 'image1.gif'
image[2] = 'image2.gif'
image[3] = 'image3.gif'
image[4] = 'image4.gif'
image[5] = 'image5.gif'
image[6] = 'image6.gif'
image[7] = 'image7.gif'
image[8] = 'image8.gif'
image[9] = 'image9.gif'
image[10] = 'image10.gif'
image[11] = 'image11.gif'
image[12] = 'image12.gif'
image[13] = 'image13.gif'
image[14] = 'image14.gif'
image[15] = 'image15.gif'
image[16] = 'image16.gif'
image[17] = 'image17.gif'
image[18] = 'image18.gif'
image[19] = 'image19.gif'
image[20] = 'image20.gif'

var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}

document.write("<A href=\"../\"><img src=/sites/ecube.info/files/images\/" +ranimage() +"   alt=\"ecube\" border=\"0\" width=\"160\" height=\"160\"></a>")

