// JavaScript Document
// Set up the image files to be used.
var theImages = new Array() 

theImages[0] = 'images/randomimages/one1.jpg'
theImages[1] = 'images/randomimages/two2.jpg'
theImages[2] = 'images/randomimages/four4.jpg'
theImages[3] = 'images/randomimages/five5.jpg'
theImages[4] = 'images/randomimages/six6.jpg'
theImages[5] = 'images/randomimages/ten10.jpg'
theImages[6] = 'images/randomimages/eleven11.jpg'
theImages[7] = 'images/randomimages/twelve12.jpg'
theImages[8] = 'images/randomimages/gorgeousblossom.jpg'
theImages[9] = 'images/randomimages/gorgeouscampusspring.jpg'
theImages[10] = 'images/randomimages/pantherpause.jpg'

var j = 0
var p = theImages.length - 1;
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));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

