// JavaScript Document

var theImages = new Array() // do not change this

theImages[0] = '../_img/img_featSm-bikes.jpg'
theImages[1] = '../_img/img_featSm-greatWall.jpg'
// theImages[2] = '../_img/img_featSm-panda.jpg'
theImages[2] = '../_img/img_featSm-terracotta.jpg'
theImages[3] = '../_img/img_featSm-fall.jpg'
theImages[4] = '../_img/img_featSm-birdsnest.jpg'

// 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]+'">');
}