function preloadHighlightImages() {
	if (document.images != undefined) {
		if (document.highlightImages == undefined) {
			document.highlightImages = new Object();
		}

		if (document.originalImages == undefined) {
			document.originalImages = new Object();
		}

		for (i=0; i<arguments.length; i++) {
			if (arguments[i].indexOf('#') != 0) {
				document.highlightImages[arguments[i]] = new Image;
				document.highlightImages[arguments[i]].src = arguments[i];
			}
		}
	}
}

function highlightImage(imageName, highlightToUse) {
	if (imageName == null) {
		imageName = '';
	}

	if (highlightToUse == null) {
		highlightToUse = '';
	}

	if ((imageName != '') && (highlightToUse != '')) {
		if ((document[imageName] != undefined) && (document.highlightImages[highlightToUse] != undefined)) {
			if (document.originalImages[imageName] == undefined) {
				document.originalImages[imageName] = document[imageName].src;
			}

			document[imageName].src = document.highlightImages[highlightToUse].src;
		}
	}
}

function originalImage(imageName) {
	if ((document[imageName] != undefined) && (document.originalImages[imageName] != undefined)) {
		document[imageName].src = document.originalImages[imageName]
	}
}

