//Image Rotate by RC

var theImages = new Array() // do not change this

//Add the images to this list following the pattern
theImages[0] = 'headerphotos/homebanner.jpg'
theImages[1] = 'headerphotos/homebanner_f05.jpg'
theImages[2] = 'headerphotos/homebanner_f03.jpg'
theImages[3] = 'headerphotos/homebanner_f04.jpg'
theImages[4] = 'headerphotos/homebanner2_f01.jpg'
theImages[5] = 'headerphotos/homebanner2_f02.jpg'
theImages[6] = 'headerphotos/homebanner2_f03.jpg'
theImages[7] = 'headerphotos/homebanner2_f04.jpg'
theImages[8] = 'headerphotos/homebanner2_f05.jpg'
theImages[9] = 'headerphotos/homebanner2_f06.jpg'
theImages[10] = 'headerphotos/homebanner2_f07.jpg'
theImages[11] = 'headerphotos/homebanner2_f08.jpg'
theImages[12] = 'headerphotos/homebanner2_f09.jpg'
theImages[13] = 'headerphotos/homebanner2_f10.jpg'
theImages[14] = 'headerphotos/homebanner2_f11.jpg'
theImages[15] = 'headerphotos/homebanner2_f12.jpg'
theImages[16] = 'headerphotos/homebanner2_f13.jpg'
theImages[17] = 'headerphotos/homebanner2_f14.jpg'
theImages[18] = 'headerphotos/homebanner2_f15.jpg'
theImages[19] = 'headerphotos/homebanner2_f16.jpg'
theImages[20] = 'headerphotos/homebanner2_f17.jpg'



//Do not change 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]+'">');
}
