/***********************************************************

This code is copyright (c) 1997-2000 by Exit1, Incorporated.
All rights reserved. Unauthorized reproduction, modification,
or distribution of this code is expressly prohibited.

Authorization is granted if:
a) it is used for personal or non-commercial use, and
b) this copyright notice is included.

Please direct any questions about the use or licensing of
Exit1's scripts or other publishing technologies to:
techsupport@exit1.com.

***********************************************************/

var rollover = new Array();

function preloadImages() {
	if (document.images) {
		var imgFiles = preloadImages.arguments;
		if (document.preloadArray == null) {
			document.preloadArray = new Array();
		}
		var i = document.preloadArray.length;

		var names = new Array();
		with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#") {
			up = imgFiles[j] + "_up";
			over = imgFiles[j] + "_over";

			rollover[up] = new Image();
			rollover[up].src = "images/" + up + ".gif";
			rollover[over] = new Image();
			rollover[over].src = "images/" + over + ".gif";
		}
	}
}

function select(imgName) {
	if (document.images) {
		imgSelect = imgName + "_over";
		document[imgName].src = rollover[imgSelect].src;
	}
}

function deselect(imgName) {
	if (document.images) {
		imgDeselect = imgName + "_up";
		document[imgName].src = rollover[imgDeselect].src;
	}
}
