// JavaScript Document


var theImages = new Array() 
theImages[0] = 'images/bongo.jpg'
theImages[1] = 'images/bridgend.jpg'
theImages[2] = 'images/castle.jpg'
theImages[3] = 'images/chick.jpg'
theImages[4] = 'images/chillin.jpg'
theImages[5] = 'images/concord.jpg'
theImages[6] = 'images/cow.jpg'
theImages[7] = 'images/deer.jpg'
theImages[8] = 'images/doodles.jpg'
theImages[9] = 'images/escape1.jpg'
theImages[10] = 'images/fantasy-garage1.jpg'
theImages[11] = 'images/gav.jpg'
theImages[12] = 'images/kaim-park.jpg'
theImages[13] = 'images/lemming.jpg'
theImages[14] = 'images/vicky4.jpg'
theImages[15] = 'images/millview.jpg'
theImages[16] = 'images/pattern_02.jpg'
theImages[17] = 'images/photo_01.jpg'
theImages[18] = 'images/photo_02.jpg'
theImages[19] = 'images/photo_03.jpg'
theImages[20] = 'images/photo_04.jpg'
theImages[21] = 'images/photo_05.jpg'
theImages[22] = 'images/photo_06.jpg'
theImages[23] = 'images/photo_09.jpg'
theImages[24] = 'images/photo_10.jpg'
theImages[25] = 'images/photo_11.jpg'
theImages[26] = 'images/photo_12.jpg'
theImages[27] = 'images/plane.jpg'
theImages[28] = 'images/skate.jpg'
theImages[29] = 'images/three-d.jpg'
theImages[30] = 'images/viba.jpg'
theImages[31] = 'images/vicky1.jpg'
theImages[32] = 'images/vicky3.jpg'
theImages[33] = 'images/vicky5.jpg'
theImages[34] = 'images/vicky6.jpg'
theImages[35] = 'images/vintage.jpg'
theImages[36] = 'images/wingfield-logo-shot.jpg'
theImages[37] = 'images/splat.jpg'
theImages[38] = 'images/swirley.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]+'">');
}