// 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] = 'graphics/pic.jpg'
theImages[1] = 'graphics/pic1.jpg'
theImages[2] = 'graphics/pic2.jpg'
theImages[3] = 'graphics/pic3.jpg'
theImages[4] = 'graphics/pic4.jpg'
theImages[5] = 'graphics/pic5.jpg'
theImages[6] = 'graphics/pic6.jpg'
theImages[7] = 'graphics/pic7.jpg'
theImages[8] = 'graphics/pic8.jpg'
theImages[9] = 'graphics/pic9.jpg'
theImages[10] = 'graphics/pic10.jpg'
theImages[11] = 'graphics/pic11.jpg'
theImages[12] = 'graphics/pic12.jpg'
theImages[13] = 'graphics/pic13.jpg'
theImages[14] = 'graphics/pic14.jpg'
theImages[15] = 'graphics/pic15.jpg'
theImages[16] = 'graphics/pic16.jpg'
theImages[17] = 'graphics/pic17.jpg'
theImages[18] = 'graphics/pic18.jpg'
theImages[19] = 'graphics/pic19.jpg'
theImages[20] = 'graphics/pic20.jpg'
theImages[21] = 'graphics/pic21.jpg'
theImages[22] = 'graphics/pic22.jpg'
theImages[23] = 'graphics/pic23.jpg'
theImages[24] = 'graphics/pic24.jpg'
theImages[25] = 'graphics/pic25.jpg'
theImages[26] = 'graphics/pic26.jpg'
theImages[27] = 'graphics/pic27.jpg'
theImages[28] = 'graphics/pic28.jpg'
theImages[29] = 'graphics/pic29.jpg'
theImages[30] = 'graphics/pic30.jpg'
theImages[31] = 'graphics/pic31.jpg'
theImages[32] = 'graphics/pic32.jpg'
theImages[33] = 'graphics/pic33.jpg'
theImages[34] = 'graphics/pic34.jpg'
theImages[35] = 'graphics/pic35.jpg'
theImages[36] = 'graphics/pic36.jpg'
theImages[37] = 'graphics/pic37.jpg'

// 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 whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


