var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'img-x/01.jpg'
theImages[1] = 'img-x/02.jpg'
theImages[2] = 'img-x/03.jpg'
theImages[3] = 'img-x/04.jpg'
theImages[4] = 'img-x/05.jpg'
theImages[5] = 'img-x/06.jpg'
theImages[6] = 'img-x/07.jpg'
theImages[7] = 'img-x/08.jpg'
theImages[8] = 'img-x/09.jpg'
theImages[9] = 'img-x/10.jpg'
theImages[10] = 'img-x/11.jpg'
theImages[11] = 'img-x/12.jpg'
theImages[12] = 'img-x/13.jpg'
theImages[13] = 'img-x/14.jpg'
theImages[14] = 'img-x/15.jpg'
theImages[15] = 'img-x/16.jpg'
theImages[16] = 'img-x/17.jpg'
theImages[17] = 'img-x/18.jpg'
theImages[18] = 'img-x/19.jpg'
theImages[19] = 'img-x/20.jpg'
theImages[20] = 'img-x/21.jpg'
theImages[21] = 'img-x/22.jpg'
theImages[22] = 'img-x/23.jpg'
theImages[23] = 'img-x/24.jpg'
theImages[24] = 'img-x/25.jpg'
theImages[25] = 'img-x/26.jpg'
theImages[26] = 'img-x/27.jpg'
theImages[27] = 'img-x/28.jpg'
theImages[28] = 'img-x/29.jpg'
theImages[29] = 'img-x/30.jpg'
theImages[30] = 'img-x/31.jpg'
theImages[31] = 'img-x/32.jpg'
theImages[32] = 'img-x/33.jpg'
theImages[33] = 'img-x/34.jpg'
theImages[34] = 'img-x/35.jpg'
theImages[35] = 'img-x/36.jpg'
theImages[36] = 'img-x/37.jpg'
theImages[37] = 'img-x/38.jpg'
theImages[38] = 'img-x/39.jpg'
theImages[39] = 'img-x/40.jpg'
theImages[40] = 'img-x/41.jpg'
theImages[40] = 'img-x/42.jpg'
theImages[40] = 'img-x/43.jpg'
theImages[40] = 'img-x/44.jpg'
theImages[40] = 'img-x/45.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]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
