var theImages = new Array()

theImages[0] = 'Images/Pests/Wasp.png'
theImages[1] = 'Images/Pests/Rat.png'
theImages[2] = 'Images/Pests/Ant.png'
theImages[3] = 'Images/Pests/Bed Bug.png'
theImages[4] = 'Images/Pests/Cockroach.png'
theImages[5] = 'Images/Pests/Deer.png'
theImages[6] = 'Images/Pests/Dust Mite.png'
theImages[7] = 'Images/Pests/Flea.png'
theImages[8] = 'Images/Pests/Fly.png'
theImages[9] = 'Images/Pests/Goldern Hampster.png'
theImages[10] = 'Images/Pests/Mole.png'
theImages[11] = 'Images/Pests/Mosquito.png'
theImages[12] = 'Images/Pests/Moth.png'
theImages[13] = 'Images/Pests/Pigeon.png'
theImages[14] = 'Images/Pests/Rabbit.png'
theImages[15] = 'Images/Pests/Anphid.png'
theImages[16] = 'Images/Pests/Silver Fish.png'
theImages[17] = 'Images/Pests/Slugs Snails.png'
theImages[18] = 'Images/Pests/Wood Worm.png'

// do not edit anything below this line

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="Images/Pests/'+theImages[whichImage]+'">');
}
