


var theImages = new Array()

//Random-loading images
theImages[0] = 'images/backgrounds/1.jpg' // replace with names of images
theImages[1] = 'images/backgrounds/2.jpg' // replace with names of images
theImages[2] = 'images/backgrounds/3.jpg' // replace with names of images
theImages[3] = 'images/backgrounds/4.jpg' // replace with names of images
theImages[4] = 'images/backgrounds/5.jpg' // replace with names of images
theImages[5] = 'images/backgrounds/6.jpg' // replace with names of images
theImages[6] = 'images/backgrounds/7.jpg' // replace with names of images
theImages[7] = 'images/backgrounds/8.jpg' // replace with names of images
theImages[8] = 'images/backgrounds/9.jpg' // replace with names of images
theImages[9] = 'images/backgrounds/10.jpg' // replace with names of images
theImages[10] = 'images/backgrounds/11.jpg' // replace with names of images
theImages[11] = 'images/backgrounds/12.jpg' // replace with names of images
theImages[12] = 'images/backgrounds/13.jpg' // replace with names of images
theImages[13] = 'images/backgrounds/14.jpg' // replace with names of images
theImages[14] = 'images/backgrounds/15.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(){

document.write('<img src="'+theImages[whichImage]+'" border=0 width=100% height=100%></a>');


}