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

image = new StringArray(8)
image[0] = 'images/t22_people2.jpg'
image[1] = 'images/t22_keyboard.jpg'
image[2] = 'images/t22_boardroom.jpg'
image[3] = 'images/t22_darkoffice.jpg'
image[4] = 'images/t22_serverroom.jpg'
image[5] = 'images/t22_people.jpg'
image[6] = 'images/t22_people2.jpg'
image[7] = 'images/t22_coverart.jpg'

var ran = 60/image.length

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

document.write('<img src="'+ranimage()+'">')