imgs = new Array; 
imgRoot = "";
imgThumbRoot = "";
 
function setImageRoot( imageRoot ) {
	imgRoot = imageRoot;
	imgThumbRoot = imgRoot + "thumb/";
}
	
function showImage( imgName, imgNum ) { 
	img = new Image;
	img = imgRoot + imgs[imgNum];
	document[0].src = img; 
} 
	
function preLoad() {
	var temp = preLoad.arguments; 

	for(x = 0; x < temp.length; x++) {
		img = new Image;
		imgs[x] = temp[x];
		img = imgThumbRoot + imgs[x];
		imgsrc = "document.image" + x + ".src=img";
		eval(imgsrc);
	}
}
