// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://bag.8k.com/images/calamity/image1.gif'
theImages[1] = 'http://bag.8k.com/images/calamity/image2.gif'
theImages[2] = 'http://bag.8k.com/images/calamity/image3.gif'
theImages[3] = 'http://bag.8k.com/images/calamity/image3.gif'
theImages[4] = 'http://bag.8k.com/images/calamity/image4.gif'
theImages[5] = 'http://bag.8k.com/images/calamity/image5.gif'
theImages[6] = 'http://bag.8k.com/images/calamity/image6.gif'
theImages[7] = 'http://bag.8k.com/images/calamity/image7.gif'
theImages[8] = 'http://bag.8k.com/images/calamity/image8.gif'
theImages[9] = 'http://bag.8k.com/images/calamity/image9.gif'
theImages[10] = 'http://bag.8k.com/images/calamity/image10.gif'
theImages[11] = 'http://bag.8k.com/images/calamity/image11.gif'
theImages[12] = 'http://bag.8k.com/images/calamity/image12.gif'
theImages[13] = 'http://bag.8k.com/images/calamity/image13.gif'
theImages[14] = 'http://bag.8k.com/images/calamity/image14.gif'
theImages[15] = 'http://bag.8k.com/images/calamity/image15.gif'
theImages[16] = 'http://bag.8k.com/images/calamity/image16.gif'
theImages[17] = 'http://bag.8k.com/images/calamity/image17.gif'
theImages[18] = 'images/calamity/image18.gif'

// 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="'+theImages[whichImage]+'">');
}


