var therImages = new Array()

therImages[0] = 'http://dan.chizeng.com/images/randomimages/bushcrybaby.jpg'
therImages[1] = 'http://dan.chizeng.com/images/randomimages/2tonedlobster.jpg'
therImages[2] = 'http://dan.chizeng.com/images/randomimages/dinosaurandvolcano.jpg'
therImages[3] = 'http://dan.chizeng.com/images/randomimages/germanylebanon.jpg'
therImages[4] = 'http://dan.chizeng.com/images/randomimages/giantrabbit.jpg'
therImages[5] = 'http://dan.chizeng.com/images/randomimages/italianairforce.jpg'
therImages[6] = 'http://dan.chizeng.com/images/randomimages/meerkatandbaby.jpg'
therImages[7] = 'http://dan.chizeng.com/images/randomimages/mouseontoad.jpg'
therImages[8] = 'http://dan.chizeng.com/images/randomimages/pinkpoodle.jpg'
therImages[9] = 'http://dan.chizeng.com/images/randomimages/planewithbuttonground.jpg'
therImages[10] = 'http://dan.chizeng.com/images/randomimages/polarbearrelaxed.jpg'
therImages[11] = 'http://dan.chizeng.com/images/randomimages/polarbearwithapplecube.jpg'
therImages[12] = 'http://dan.chizeng.com/images/randomimages/putindrivingbush.jpg'
therImages[13] = 'http://dan.chizeng.com/images/randomimages/siberiantigers.jpg'
therImages[14] = 'http://dan.chizeng.com/images/randomimages/2pigs.jpg'
therImages[15] = 'http://dan.chizeng.com/images/randomimages/catwithsocks.jpg'
therImages[16] = 'http://dan.chizeng.com/images/randomimages/elephantanddog.jpg'
therImages[17] = 'http://dan.chizeng.com/images/randomimages/facefountain.jpg'
therImages[18] = 'http://dan.chizeng.com/images/randomimages/longsnake.jpg'
therImages[19] = 'http://dan.chizeng.com/images/randomimages/polarbeartongue.jpg'
therImages[20] = 'http://dan.chizeng.com/images/randomimages/pythonsurgery.jpg'
therImages[21] = 'http://dan.chizeng.com/images/randomimages/skatingsideways.jpg'
therImages[22] = 'http://dan.chizeng.com/images/randomimages/womanwithweapon.jpg'
therImages[23] = 'http://dan.chizeng.com/images/randomimages/2babygrizzlybears.jpg'
therImages[24] = 'http://dan.chizeng.com/images/randomimages/ancientpsalmsbook.jpg'
therImages[25] = 'http://dan.chizeng.com/images/randomimages/babypanda.jpg'
therImages[26] = 'http://dan.chizeng.com/images/randomimages/bakinifisherman.jpg'
therImages[27] = 'http://dan.chizeng.com/images/randomimages/beeonsunflower.jpg'
therImages[28] = 'http://dan.chizeng.com/images/randomimages/blow-upmanincar.jpg'
therImages[29] = 'http://dan.chizeng.com/images/randomimages/condydisseslebanon.jpg'
therImages[30] = 'http://dan.chizeng.com/images/randomimages/condyhandonhead.jpg'
therImages[31] = 'http://dan.chizeng.com/images/randomimages/crsynchronizedswimming.jpg'
therImages[32] = 'http://dan.chizeng.com/images/randomimages/dariverwaves.jpg'
therImages[33] = 'http://dan.chizeng.com/images/randomimages/germanmodels.jpg'
therImages[34] = 'http://dan.chizeng.com/images/randomimages/headlessiceskater.jpg'
therImages[35] = 'http://dan.chizeng.com/images/randomimages/hippotoothbrush.jpg'
therImages[36] = 'http://dan.chizeng.com/images/randomimages/holdingbabypanda.jpg'
therImages[37] = 'http://dan.chizeng.com/images/randomimages/hummingbirdtastingpollen.jpg'
therImages[38] = 'http://dan.chizeng.com/images/randomimages/lasvegaslightning.jpg'
therImages[39] = 'http://dan.chizeng.com/images/randomimages/lightningonthermometer.jpg'
therImages[40] = 'http://dan.chizeng.com/images/randomimages/maikohellokitty.jpg'
therImages[41] = 'http://dan.chizeng.com/images/randomimages/measuringbabypanda.jpg'
therImages[42] = 'http://dan.chizeng.com/images/randomimages/monkeydrinkingfromhose.jpg'
therImages[43] = 'http://dan.chizeng.com/images/randomimages/pandaeatbamboo.jpg'
therImages[44] = 'http://dan.chizeng.com/images/randomimages/pigface.jpg'
therImages[45] = 'http://dan.chizeng.com/images/randomimages/sanfransiscofog.jpg'
therImages[46] = 'http://dan.chizeng.com/images/randomimages/santiagofireworks.jpg'
therImages[47] = 'http://dan.chizeng.com/images/randomimages/tiltedship.jpg'
therImages[48] = 'http://dan.chizeng.com/images/randomimages/tiltedshipsideways.jpg'
therImages[49] = 'http://dan.chizeng.com/images/randomimages/fashionboys.jpg'
therImages[49] = 'http://dan.chizeng.com/images/randomimages/ray.jpg'
therImages[50] = 'http://dan.chizeng.com/images/randomimages/sealion.jpg'
therImages[51] = 'http://dan.chizeng.com/images/randomimages/chairs.jpg'
therImages[52] = 'http://dan.chizeng.com/images/randomimages/waxyfrog.jpg'
therImages[53] = 'http://dan.chizeng.com/images/randomimages/tomato.jpg'
therImages[54] = 'http://dan.chizeng.com/images/randomimages/toxicfish.jpg'
therImages[55] = 'http://dan.chizeng.com/images/randomimages/horse.jpg'
therImages[56] = 'http://dan.chizeng.com/images/randomimages/panda.jpg'
therImages[57] = 'http://dan.chizeng.com/images/randomimages/flower.jpg'
therImages[58] = 'http://dan.chizeng.com/images/randomimages/diver.jpg'
therImages[59] = 'http://dan.chizeng.com/images/randomimages/krishna.jpg'
therImages[60] = 'http://dan.chizeng.com/images/randomimages/boy.jpg'
therImages[61] = 'http://dan.chizeng.com/images/randomimages/motorcycle.jpg'
therImages[62] = 'http://dan.chizeng.com/images/randomimages/lizard.jpg'
therImages[63] = 'http://dan.chizeng.com/images/randomimages/beluga.jpg'
therImages[64] = 'http://dan.chizeng.com/images/randomimages/ahd.jpg'
therImages[65] = 'http://dan.chizeng.com/images/randomimages/bird.jpg'
therImages[66] = 'http://dan.chizeng.com/images/randomimages/cupcakes.jpg'
therImages[67] = 'http://dan.chizeng.com/images/randomimages/delta.jpg'
therImages[68] = 'http://dan.chizeng.com/images/randomimages/dogalien.jpg'
therImages[69] = 'http://dan.chizeng.com/images/randomimages/dogwave.jpg'
therImages[70] = 'http://dan.chizeng.com/images/randomimages/dolls.jpg'
therImages[71] = 'http://dan.chizeng.com/images/randomimages/elephanteat.jpg'
therImages[72] = 'http://dan.chizeng.com/images/randomimages/fight.jpg'
therImages[73] = 'http://dan.chizeng.com/images/randomimages/fireworks.jpg'
therImages[74] = 'http://dan.chizeng.com/images/randomimages/gorilla.jpg'
therImages[75] = 'http://dan.chizeng.com/images/randomimages/iran.jpg'
therImages[76] = 'http://dan.chizeng.com/images/randomimages/japanbeer.jpg'
therImages[77] = 'http://dan.chizeng.com/images/randomimages/kneeling.jpg'
therImages[78] = 'http://dan.chizeng.com/images/randomimages/ledge.jpg'
therImages[79] = 'http://dan.chizeng.com/images/randomimages/merkelobama.jpg'
therImages[80] = 'http://dan.chizeng.com/images/randomimages/mortar.jpg'
therImages[81] = 'http://dan.chizeng.com/images/randomimages/mousavi.jpg'
therImages[82] = 'http://dan.chizeng.com/images/randomimages/obamas.jpg'
therImages[83] = 'http://dan.chizeng.com/images/randomimages/soccer.jpg'
therImages[84] = 'http://dan.chizeng.com/images/randomimages/tigerwoods.jpg'
therImages[85] = 'http://dan.chizeng.com/images/randomimages/uglydog.jpg'
therImages[86] = 'http://dan.chizeng.com/images/randomimages/zeppelin.jpg'

var j = 0
var p = therImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = therImages[i]
}

var whichrImage = Math.round(Math.random()*(p-1));
function showrandomImage(){
document.write('<img src="'+therImages[whichrImage]+'" alt="Refresh for a random image." />');
}
