// JavaScript Document
var theImages = new Array()


theImages[0] = 'factoids/kid1.png'
theImages[1] = 'factoids/kid2.png'
theImages[2] = 'factoids/kid3.png'
theImages[3] = 'factoids/kid4.png'
theImages[4] = 'factoids/kid5.png'
theImages[5] = 'factoids/kid6.png'
theImages[6] = 'factoids/kid7.png'
theImages[7] = 'factoids/kid8.png'




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]+'">');
}

