var theImages = new Array() 

theImages[0] = 'images/prospective/agtbeach.jpg'
theImages[1] = 'images/prospective/bigtrees.jpg'
theImages[2] = 'images/prospective/bird.jpg'
theImages[3] = 'images/prospective/jellyfish.jpg'
theImages[4] = 'images/prospective/kids.jpg'
theImages[5] = 'images/prospective/plotter.jpg'
theImages[6] = 'images/prospective/sixrivers.jpg'
theImages[7] = 'images/prospective/smokey.jpg'
theImages[8] = 'images/prospective/loonlake.jpg'
theImages[9] = 'images/prospective/snowball.jpg'
theImages[9] = 'images/prospective/walking.jpg'

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]+'" alt="Environmental & Natural Resource Sciences Image">');
}