


var theImages = new Array()

//Random-loading images
theImages[0] = 'images/banners/1.gif' // replace with names of images
theImages[1] = 'images/banners/2.gif' // replace with names of images
theImages[2] = 'images/banners/3.gif' // replace with names of images
theImages[3] = 'images/banners/4.gif' // replace with names of images
theImages[4] = 'images/banners/5.gif' // replace with names of images
theImages[5] = 'images/banners/6.gif' // replace with names of images
theImages[6] = 'images/banners/7.gif' // replace with names of images
theImages[7] = 'images/banners/8.gif' // replace with names of images
theImages[8] = 'images/banners/9.gif' // replace with names of images
theImages[9] = 'images/banners/10.gif' // replace with names of images
theImages[10] = 'images/banners/11.gif' // replace with names of images
theImages[11] = 'images/banners/12.gif' // replace with names of images
theImages[12] = 'images/banners/13.gif' // replace with names of images
theImages[13] = 'images/banners/14.gif' // replace with names of images
theImages[14] = 'images/banners/15.gif' // replace with names of images
theImages[15] = 'images/banners/16.gif' // replace with names of images
theImages[16] = 'images/banners/17.gif' // replace with names of images
theImages[17] = 'images/banners/18.gif' // replace with names of images
theImages[18] = 'images/banners/19.gif' // replace with names of images
theImages[19] = 'images/banners/20.gif' // 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=887 height=165>');
}
else if(whichImage==1){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==2){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==3){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==4){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==5){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==6){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==7){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==8){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==9){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==10){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==11){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==12){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==13){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==14){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==15){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==16){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==17){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==18){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==19){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
else if(whichImage==20){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=887 height=165>');
}
}


