var theImagesOne = new Array() // do not change this

theImagesOne[0] = '/pyimgs/pyhome01.jpg'
theImagesOne[1] = '/pyimgs/pyhome02.jpg'
theImagesOne[2] = '/pyimgs/pyhome03.jpg'
theImagesOne[3] = '/pyimgs/pyhome04.jpg'

var theImagesTwo = new Array() // do not change this

theImagesTwo[0] = '/pyimgs/pyhome05.jpg'
theImagesTwo[1] = '/pyimgs/pyhome06.jpg'
theImagesTwo[2] = '/pyimgs/pyhome07.jpg'
theImagesTwo[3] = '/pyimgs/pyhome08.jpg'

var j = 0
var pOne = theImagesOne.length;
var preBufferOne = new Array()
for (i = 0; i < pOne; i++){
   preBufferOne[i] = new Image()
   preBufferOne[i].src = theImagesOne[i]
}
var whichImageOne = Math.round(Math.random()*(pOne-1));

var pTwo = theImagesTwo.length;
var preBufferTwo = new Array()
for (i = 0; i < pTwo; i++){
   preBufferTwo[i] = new Image()
   preBufferTwo[i].src = theImagesTwo[i]
}
var whichImageTwo = Math.round(Math.random()*(pTwo-1));

function showImageOne(){
document.write('<img src="'+theImagesOne[whichImageOne]+'" width="157" height="84" alt="Peter Young" />');
}

function showImageTwo(){
document.write('<img src="'+theImagesTwo[whichImageTwo]+'" width="157" height="84" alt="Peter Young" />');
}

