﻿
<!--
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!


theImages[0] = 'gallery/Baseball Action Photo 2.jpg'
theImages[1] = 'gallery/Hockey Action Photo 1.jpg'
theImages[2] = 'gallery/Indoor Soccer Photo 2.jpg'
theImages[3] = 'gallery/Wedding Party Photo 2.jpg'
theImages[4] = 'gallery/Wedding Party Photo 9.jpg'
theImages[5] = 'gallery/Bride and Groom Photo 5.jpg'
theImages[6] = 'gallery/Bride and Groom Photo 6.jpg'
theImages[7] = 'gallery/Landscape Photo 1.jpg'
theImages[8] = 'gallery/Landscape Photo 7.jpg'
theImages[9] = 'gallery/Underwater Photo 1.jpg'
theImages[10] = 'gallery/Underwater Photo 6.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]+'" height="300">');
}
//-->
showImage();