<!--
// 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(37)   // Qui il numero di immagini che creeranno la sequenza //
image[0] = 'random/img_divleft2.jpg'            // Qui il richiamo alla prima immagine //
image[1] = 'random/img1.jpg'            // Qui il richiamo alla seconda immagine //
image[2] = 'random/img2.jpg'            // .......... eccetera............//
image[3] = 'random/img3.jpg'
image[4] = 'random/img4.jpg'
image[5] = 'random/img5.jpg'
image[6] = 'random/img6.jpg'
image[7] = 'random/img7.jpg'
image[8] = 'random/img8.jpg'
image[9] = 'random/img9.jpg'
image[10] = 'random/img10.jpg'
image[11] = 'random/img11.jpg'
image[12] = 'random/img12.jpg'
image[13] = 'random/img13.jpg'
image[14] = 'random/img14.jpg'
image[15] = 'random/img15.jpg'
image[16] = 'random/img16.jpg'
image[17] = 'random/img17.jpg'
image[18] = 'random/img18.jpg'
image[19] = 'random/img19.jpg'
image[20] = 'random/img20.jpg'
image[21] = 'random/img21.jpg'
image[22] = 'random/img22.jpg'
image[23] = 'random/img23.jpg'
image[24] = 'random/img24.jpg'
image[25] = 'random/img25.jpg'
image[26] = 'random/img26.jpg'
image[27] = 'random/img27.jpg'
image[28] = 'random/img28.jpg'
image[29] = 'random/img29.jpg'
image[30] = 'random/img30.jpg'
image[31] = 'random/img31.jpg'
image[32] = 'random/img32.jpg'
image[33] = 'random/img33.jpg'
image[34] = 'random/img34.jpg'
image[35] = 'random/img35.jpg'
image[36] = 'random/img36.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()+ "'>")

//-->