﻿<!--
	// 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(5)
	image[0] = 'rotation/photo1.jpg'
	image[1] = 'rotation/photo2.jpg'
	image[2] = 'rotation/photo3.jpg'
	image[3] = 'rotation/photo4.jpg'
	image[4] = 'rotation/photo5.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='images/" +ranimage()+ "'>")
	
	//-->