var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(23)
image[0] = 'gif/02.gif'
image[1] = 'gif/01.gif'
image[2] = 'gif/04.gif'
image[3] = 'gif/03.gif'
image[4] = 'gif/06.gif'
image[5] = 'gif/05.gif'
image[6] = 'gif/08.gif'
image[7] = 'gif/07.gif'
image[8] = 'gif/10.gif'
image[9] = 'gif/09.gif'
image[10] = 'gif/12.gif'
image[11] = 'gif/11.gif'
image[12] = 'gif/14.gif'
image[13] = 'gif/13.gif'
image[14] = 'gif/16.gif'
image[15] = 'gif/15.gif'
image[16] = 'gif/18.gif'
image[17] = 'gif/17.gif'
image[18] = 'gif/20.gif'
image[19] = 'gif/19.gif'
image[20] = 'gif/22.gif'
image[21] = 'gif/21.gif'
image[22] = 'gif/24.gif'
image[23] = 'gif/23.gif'

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()+ "'>")