// JavaScript Document
var theImages = new Array()

//Random-loading images
theImages[0] = '../images/comm-quote1.jpg' // replace with names of images
theImages[1] = '../images/comm-quote2.jpg' // replace with names of images
theImages[2] = '../images/comm-quote3.jpg' // replace with names of images
//theImages[3] = 'images/headerpic4.jpg' // replace with names of images
//theImages[4] = 'images/headerpic5.jpg' // replace with names of images
//theImages[5] = 'images/headerpic6.jpg' // replace with names of images
//theImages[6] = 'images/headerpic7.jpg' // replace with names of images
//theImages[7] = 'images/headerpic8.jpg' // replace with names of images
//theImages[8] = 'images/headerpic9.jpg' // replace with names of images
//theImages[9] = 'images/headerpic10.jpg' // replace with names of images
//theImages[10] = 'images/headerpic11.jpg' // replace with names of images
//theImages[11] = 'images/headerpic12.jpg' // replace with names of images
//theImages[12] = 'images/headerpic13.jpg' // replace with names of images
//theImages[13] = 'images/headerpic14.jpg' // replace with names of images
//theImages[14] = 'images/headerpic15.jpg' // replace with names of images


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(){
if(whichImage==0){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=150 height=175>');
}
else if(whichImage==1){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=150 height=175>');
}
else if(whichImage==2){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=150 height=175>');
}
//else if(whichImage==3){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==4){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==5){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==6){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==7){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==8){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==9){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==10){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==11){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==12){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==13){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}
//else if(whichImage==14){
//document.write('<img src="'+theImages[whichImage]+'" border=0 width=600 height=113>');
//}


}