// 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] = '../images/randomphotos/1.jpg'
theImages[1] = '../images/randomphotos/2.jpg'
theImages[2] = '../images/randomphotos/3.jpg'
theImages[3] = '../images/randomphotos/4.jpg'
theImages[4] = '../images/randomphotos/5.jpg'
theImages[5] = '../images/randomphotos/6.jpg'
theImages[6] = '../images/randomphotos/7.jpg'
theImages[7] = '../images/randomphotos/8.jpg'
theImages[8] = '../images/randomphotos/9.jpg'
theImages[9] = '../images/randomphotos/10.jpg'
theImages[10] = '../images/randomphotos/11.jpg'
theImages[11] = '../images/randomphotos/12.jpg'
theImages[12] = '../images/randomphotos/13.jpg'
theImages[13] = '../images/randomphotos/14.jpg'
theImages[14] = '../images/randomphotos/15.jpg'
theImages[15] = '../images/randomphotos/16.jpg'
theImages[16] = '../images/randomphotos/17.jpg'
theImages[17] = '../images/randomphotos/18.jpg'
theImages[18] = '../images/randomphotos/19.jpg'
theImages[19] = '../images/randomphotos/20.jpg'
theImages[20] = '../images/randomphotos/21.jpg'
theImages[21] = '../images/randomphotos/22.jpg'
theImages[22] = '../images/randomphotos/23.jpg'
theImages[23] = '../images/randomphotos/24.jpg'
theImages[24] = '../images/randomphotos/25.jpg'
theImages[25] = '../images/randomphotos/26.jpg'
theImages[26] = '../images/randomphotos/27.jpg'
theImages[27] = '../images/randomphotos/28.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]+'">');
}


