/*
Image Rollover
Version 1.1
Last Updated: January 25, 2000
Code maintained at: http://www.moock.org/webdesign/javascript/
Copy permission granted for non-commercial uses. Written by Colin Moock.
Modified as necessary by Adam Shlian, NPP member since '97.-->
*/

//Init Global Variables
rollonImages  = new Array();
rolloffImages = new Array();
var num_images = 8;	                //number of images with rollover states
var imagePrefix = "pics/"; //path to rollover images and shared name portion

//Preload Images
if (javascript_version > 1.0)
	{
	for(count = 1; count <= num_images; count++)
		{
		rollonImages[count]         = new Image();      
		rollonImages[count].src     = imagePrefix + count + "_on.gif";
		rolloffImages[count]         = new Image();      
		rolloffImages[count].src     = imagePrefix + count + "_off.gif";
		
		}
	}
	 

		 

function rollon(imgName)
	{
	// this function changes images to the rollover state (assigned above)
	// it's called by the ONMOUSEOVER attribute of the HREF element
		
	var imgNum = imgName.substring(5);

	if (document.images && document.images[imgName].complete)
		{
		document.images[imgName].src = rollonImages[imgNum].src;
		}
	}


function rolloff(imgName)
	{
	// this function changes images to the off state (assigned above)
	// it's called by the ONMOUSEOUT attribute of the HREF element

	var imgNum = imgName.substring(5);

	if (document.images && document.images[imgName].complete)
		{
		document.images[imgName].src = rolloffImages[imgNum].src;
		}
	}