// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'random/1.gif'
theImages[1] = 'random/2.gif'
theImages[2] = 'random/3.gif'
theImages[3] = 'random/4.gif'
theImages[4] = 'random/5.gif'
theImages[5] = 'random/6.gif'
theImages[6] = 'random/7.gif'
theImages[7] = 'random/8.gif'
theImages[8] = 'random/9.gif'

theImages[9] = 'random/10.gif'
theImages[10] = 'random/11.gif'
theImages[11] = 'random/12.gif'
theImages[12] = 'random/13.gif'
theImages[13] = 'random/14.gif'
theImages[14] = 'random/15.gif'
theImages[15] = 'random/16.gif'
theImages[16] = 'random/17.gif'

theImages[17] = 'random/18.gif'
theImages[18] = 'random/19.gif'
theImages[19] = 'random/20.gif'

theImages[20] = 'random/21.gif'
theImages[21] = 'random/22.gif'
theImages[22] = 'random/23.gif'
theImages[23] = 'random/24.gif'
theImages[24] = 'random/25.gif'
theImages[25] = 'random/26.gif'
theImages[26] = 'random/27.gif'
theImages[27] = 'random/28.gif'

theImages[28] = 'random/29.gif'
theImages[29] = 'random/30.gif'
theImages[30] = 'random/31.gif'
theImages[31] = 'random/32.gif'


// do not edit anything below this line

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 whichImage1 = Math.round(Math.random()*(p-1));
function showImage1(){
document.write('<img src="'+theImages[whichImage1]+'">');
}

var whichImage2 = Math.round(Math.random()*(p-1));
function showImage2(){
document.write('<img src="'+theImages[whichImage2]+'">');
}

var whichImage3 = Math.round(Math.random()*(p-1));
function showImage3(){
document.write('<img src="'+theImages[whichImage3]+'">');
}

var whichImage4 = Math.round(Math.random()*(p-1));
function showImage4(){
document.write('<img src="'+theImages[whichImage4]+'">');
}

var whichImage5 = Math.round(Math.random()*(p-1));
function showImage5(){
document.write('<img src="'+theImages[whichImage5]+'">');
}

var whichImage6 = Math.round(Math.random()*(p-1));
function showImage6(){
document.write('<img src="'+theImages[whichImage6]+'">');
}
