var theImages = new Array() theImages[0] = 'images/degrees/craterlake.jpg'theImages[1] = 'images/degrees/fieldnotes.jpg'theImages[2] = 'images/degrees/girlkids.jpg'theImages[3] = 'images/degrees/guidewalk.jpg'theImages[4] = 'images/degrees/litmuskids.jpg'theImages[5] = 'images/degrees/reflection.jpg'theImages[6] = 'images/degrees/rivergirls.jpg'theImages[7] = 'images/degrees/sneak.jpg'theImages[8] = 'images/degrees/survey.jpg'theImages[9] = 'images/degrees/timkids.jpg'theImages[10] = 'images/activities/snowwalk.jpg'theImages[11] = 'images/prospective/snowball.jpg'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]+'" alt="New Image">');}