



var theImages = new Array()

//Random-loading images
theImages[0] = 'images/img_1.jpg' // replace with names of images
theImages[1] = 'images/img_2.jpg' // replace with names of images
	
theImages[2] = 'images/img_3.jpg' // replace with names of images
theImages[3] = 'images/img_4.jpg' // replace with names of images
theImages[4] = 'images/img_5.jpg' // replace with names of images

theImages[5] = 'images/img_6.jpg' // replace with names of images
theImages[6] = 'images/img_7.jpg' // replace with names of images
	
theImages[7] = 'images/img_8.jpg' // replace with names of images
theImages[8] = 'images/img_9.jpg' // replace with names of images
theImages[9] = 'images/img_10.jpg' // replace with names of images
	
var j = 0
var p = theImages.length;
var preBuffer = new Array()
		
for (i = 0; i < p; i++)
{
	preBuffer[i] = new Image()
	preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
		
function showImage()
{
	var obj;
	obj = document.getElementById("imgcontent");
	obj.style.background='url('+theImages[whichImage]+')';// JavaScript Document	
}


