﻿enthi = new Image(); enthi.src = "core/enter-a.gif";
entlo = new Image(); entlo.src = "core/enter.gif";

function doButtonHi(imgName) {
	if (document.images) {
            document[imgName].src = eval(imgName + "hi.src");  }
	}
	
function doButtonLo(imgName) {
	if (document.images) {
            document[imgName].src = eval(imgName + "lo.src");  }
	}

var theImages = new Array()
theImages[0] = 'core/pan1.jpg'
theImages[1] = 'core/pan2.jpg'
theImages[2] = 'core/pan3.jpg'
theImages[3] = 'core/pan4.jpg'
theImages[4] = 'core/pan5.jpg'
theImages[5] = 'core/pan6.jpg'
theImages[6] = 'core/pan7.jpg'
theImages[7] = 'core/pan8.jpg'
theImages[8] = 'core/pan9.jpg'

var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));

function showImage() {
	document.write('<img src="'+theImages[whichImage]+'">');
}