// JavaScript Document
var theImages = new Array() 

theImages[0] = 'http://envs.uoregon.edu/images/header/beachclass900.jpg'
theImages[1] = 'http://envs.uoregon.edu/images/header/log900.jpg'
theImages[2] = 'http://envs.uoregon.edu/images/header/ropes2900.jpg'
theImages[3] = 'http://envs.uoregon.edu/images/header/ropecourse900.jpg'
theImages[4] = 'http://envs.uoregon.edu/images/header/ropes3.jpg'
theImages[5] = 'http://envs.uoregon.edu/images/header/tidepool.jpg'
theImages[6] = 'http://envs.uoregon.edu/images/header/classroom2.jpg'
theImages[7] = 'http://envs.uoregon.edu/images/header/classroom.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.floor(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


