
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array()

theImages[0] = 'images/01bug.gif'
theImages[1] = 'images/02bug.gif'
theImages[2] = 'images/02lizard.gif'
theImages[3] = 'images/03bug.gif'
theImages[4] = 'images/04bug.gif'
theImages[5] = 'images/04pot.gif'
theImages[6] = 'images/04star.gif'
theImages[7] = 'images/05bug.gif'
theImages[8] = 'images/06bug.gif'
theImages[9] = 'images/07lizard.gif'
theImages[10] = 'images/08bug.gif'
theImages[11] = 'images/08turtle.gif'
theImages[12] = 'images/09bug.gif'
theImages[13] = 'images/10bug.gif'
theImages[14] = 'images/11bug.gif'
theImages[15] = 'images/12bug.gif'
theImages[16] = 'images/13bug.gif'
theImages[17] = 'images/15bug.gif'
theImages[18] = 'images/16bug.gif'
theImages[19] = 'images/17bug.gif'
theImages[20] = 'images/18bug.gif'
theImages[21] = 'images/19bug.gif'
theImages[22] = 'images/19motif.gif'
theImages[23] = 'images/24bug.gif'
theImages[24] = 'images/25bug.gif'
theImages[25] = 'images/28bug.gif'
theImages[26] = 'images/31round.gif'
theImages[27] = 'images/33bird.gif'
theImages[28] = 'images/85bird.gif'
theImages[29] = 'images/86bird.gif'

 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]+'">');
}

showImage();