var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(6)
image[0] = '/random_image/1.jpg'
image[1] = '/random_image/2.jpg'
image[2] = '/random_image/3.jpg'
image[3] = '/random_image/4.jpg'
image[4] = '/random_image/5.jpg'
image[5] = '/random_image/6.jpg'
var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}
