// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(17)
image[0] = 'titl/titl01.jpg'
image[1] = 'titl/titl02.jpg'
image[2] = 'titl/titl03.jpg'
image[3] = 'titl/titl28.jpg'
image[4] = 'titl/titl29.jpg'
image[5] = 'titl/titl08.jpg'
image[6] = 'titl/titl10.jpg'
image[7] = 'titl/titl11.jpg'
image[8] = 'titl/titl12.jpg'
image[9] = 'titl/titl32.jpg'
image[10] = 'titl/titl15.jpg'
image[11] = 'titl/titl20.jpg'
image[12] = 'titl/titl30.jpg'
image[13] = 'titl/titl26.jpg'
image[14] = 'titl/titl27.jpg'
image[15] = 'titl/titl07.jpg'
image[16] = 'titl/titl14.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()+ "'>")
