// JavaScript Document


function initArray() 
{
 
	this.length = initArray.arguments.length;
  	
	for (var i = 0; i < this.length; i++)
	{
  		this[i] = initArray.arguments[i];
  	}
}


function LoadSplashImage()
{
	
		
	var currentdate = new Date();
		
	images = new initArray( 
			"splashimages/1.jpg",
			"splashimages/2.jpg",
			"splashimages/3.jpg",
			"splashimages/4.jpg",
			"splashimages/5.jpg",
			"splashimages/6.jpg",
			"splashimages/7.jpg",
			"splashimages/8.jpg",
			"splashimages/9.jpg",
			"splashimages/10.jpg",
			"splashimages/11.jpg",
			"splashimages/12.jpg",
			"splashimages/13.jpg",
			"splashimages/14.jpg",
			"splashimages/15.jpg",
			"splashimages/16.jpg",
			"splashimages/17.jpg",
			"splashimages/18.jpg",
			"splashimages/19.jpg",
			"splashimages/20.jpg",
			"splashimages/21.jpg");
	
	
	var index = currentdate.getSeconds() % images.length;

	var splashimage = images[index];

	
	document.write( '<img src=\"'+splashimage+'\" alt=\"Welcome!\">');
	
	
}



