
var theImages = new Array()

theImages[0] = 'images/graphic_cable.jpg'
theImages[1] = 'images/graphic_chairs.jpg'
theImages[2] = 'images/graphic_ladder.jpg'
theImages[3] = 'images/graphic_pages.jpg'
theImages[4] = 'images/graphic_pencils.jpg'
theImages[5] = 'images/graphic_ring.jpg'
theImages[6] = 'images/graphic_rope.jpg'
theImages[7] = 'images/graphic_stone.jpg'
theImages[8] = 'images/graphic_string.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]+'">');
}

