
var imageArray = new Array();	
var menuArray = new Array();

function loadImage(theImage, width, height) {
var imgName = theImage.substring((theImage.lastIndexOf('\/') + 1), theImage.lastIndexOf('.'));
var dimensions = "";
if (width && height) { dimensions = width + ', ' + height; }
eval('imageArray["' + imgName + '"] = new Image(' + dimensions + ');');
eval('imageArray["' + imgName + '"].src = "' + theImage + '";');
}

function message(msg) {
	window.status = msg;
	return true;
}

function swap(imgName, imgSuffix, theMsg) {
if (document.layers || document.all) { eval('document.images["' + imgName + '"].src = imageArray["' + imgName + imgSuffix + '"].src'); }
if (theMsg == null) { theMsg = window.defaultStatus; }
return message(theMsg);
}

