
var theImages = new Array() // do not change this
var theVideoImages = new Array() // do not change this

theImages = ["green-pills-1.jpg", "green-pills-2.jpg", "green-pills-3.jpg"];
theVideoImages = ["blue-pills1.jpg", "blue-pills2.jpg", "blue-pills3.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 = "chrome/07-2010/images/" + theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showRandomImage(whichPage){

	if(whichPage=="video") {
		document.write('<img src="/chrome/07-2010/images/'+theVideoImages[whichImage]+'">');
	} else {	
		document.write('<img src="/chrome/07-2010/images/'+theImages[whichImage]+'">');
	}

}
