// JavaScript Document
// Set up the image files to be used.
var theImages = new Array() 

theImages[0] = 'peters-mongoose.jpg'
theImages[1] = 'peters-squirrel.jpg'
theImages[2] = 'peters-cheetah.jpg'
theImages[3] = 'narendra-ant2.jpg'
theImages[4] = 'narendra-ladybird.jpg'
theImages[5] = 'narendra-antaphidspider.jpg'
theImages[6] = 'narendra-fly1.jpg'
theImages[7] = 'narendra-ant1.jpg'
theImages[8] = 'narendra-spider.jpg'
theImages[9] = 'allen-albatross.jpg'
theImages[10] = 'allen-osprey.jpg'
theImages[11] = 'allen-seal.jpg'
theImages[12] = 'allen-seal2.jpg'
theImages[13] = 'allen-roo.jpg'

//theImages[0] = 'banner.jpg'
//theImages[1] = 'banner copy.jpg'
//theImages[2] = 'banner copy 1.jpg'
//theImages[3] = 'banner copy 2.jpg'
//theImages[4] = 'banner copy 3.jpg'
//theImages[5] = 'banner copy 4.jpg'
//theImages[6] = 'banner copy 5.jpg'
//theImages[7] = 'banner copy 6.jpg'
//theImages[8] = 'banner copy 7.jpg'
//theImages[9] = 'banner copy 8.jpg'
//theImages[10] = 'banner copy 9.jpg'
//theImages[11] = 'banner copy 10.jpg'
//theImages[12] = 'banner copy 11.jpg'
//theImages[13] = 'banner copy 12.jpg'

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

//var j = 0
//var preBuffer = new Array()
//for (i = 0; i < p; i++){
//   preBuffer[i] = new Image()
//   preBuffer[i].src = theImages[i]
//}
