// JavaScript Document
var currentdate = 0;
var core = 0;

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

// number of images -1;
image = new StringArray(8)
image[0] = 'splash1.jpg'
image[1] = 'splash2.jpg'
image[2] = 'splash3.jpg'
image[3] = 'splash4.jpg'
image[4] = 'splash5.jpg'
image[5] = 'splash6.jpg'
image[6] = 'splash7.jpg'
image[7] = 'splash8.jpg'
image[8] = 'splash.jpg'

var ran = 80/image.length;

function ranimage() {
  val = Math.floor(Math.random()*ran);
  if (val == null)
  	val = 0;
  if (val > 8) 
  	val = 8;
  if (val < 0)
  	val = 4;
  //alert (val);
  return (image[val]);
  /*currentdate = new Date();
  core = currentdate.getSeconds();
  core = Math.floor(core/ran);
	return(image[core]);*/
}

<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com				
document.write("<img src='/images/" +ranimage()+ "'>");		
//-->
