/*
	This file contains the code to preoload images used as rollovers.
	It also contains the code to handle the mouse events associated
	with the images it preloads.
*/

		var up = new Array();
		var over = new Array();

		// preload images
		function setup(a)
		{
			var i;		
			for (i=0; i<arguments.length; i++)
			{
				// Allocate memory for Image objects
				up[arguments[i]] = new Image();
				over[arguments[i]] = new Image();
		
				// Load the images
				up[arguments[i]].src = jsImagePath+"nav_"+arguments[i]+"_up.gif";
				over[arguments[i]].src = jsImagePath+"nav_"+arguments[i]+"_over.gif";
			}
		}
		
		// Handle mouseOver events
		function doOver(imgName)
		{
			document[imgName].src = over[imgName].src;
		}

		// Handle mouseOut events
		function doOut(imgName)
		{
			document[imgName].src = up[imgName].src;
		}

