var theImages = new Array()
theImages[0] = 'scenery/scene1.jpg'
theImages[1] = 'scenery/scene2.jpg'
theImages[2] = 'scenery/scene3.jpg'
theImages[3] = 'scenery/scene4.jpg'
theImages[4] = 'scenery/scene5.jpg'
theImages[5] = 'scenery/scene6.jpg'
theImages[6] = 'scenery/scene7.jpg'
theImages[7] = 'scenery/scene8.jpg'
theImages[8] = 'scenery/scene9.jpg'
theImages[9] = 'scenery/scene10.jpg'
theImages[10] = 'scenery/scene11.jpg'
theImages[11] = 'scenery/scene12.jpg'
theImages[12] = 'scenery/scene13.jpg'
theImages[13] = 'scenery/scene14.jpg'
theImages[14] = 'scenery/scene15.jpg'
theImages[15] = 'scenery/scene16.jpg'
theImages[16] = 'scenery/scene17.jpg'
theImages[17] = 'scenery/scene18.jpg'
theImages[18] = 'scenery/scene19.jpg'
theImages[19] = 'scenery/scene20.jpg'
theImages[20] = 'scenery/scene21.jpg'
theImages[21] = 'scenery/scene22.jpg'
theImages[22] = 'scenery/scene23.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] //preloads
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="gallery.htm"><img src="'+theImages[whichImage]+'" border=\"0\" align=\"center\" hspace=\"0\""></a>');
}