var theImages = new Array()theImages[0] = '/main/jackPortrait.jpg'theImages[1] = '/main/jackPortrait2.jpg'theImages[2] = '/main/jackPortrait3.jpg'theImages[3] = '/main/jackPortrait4.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]}function showImage(){	var whichImage = Math.round(Math.random()*(p-1));	document.write('<img src="'+theImages[whichImage]+'" width="170" height="212" />');}