function initImageRollovers()
{
	//
	//	Test for support of getElementById - this is the key to determining if a given browser
	//	supports the W3C DOM.  If getElementById is not supported, the rollover code just bails out.
	//
	if (!document.getElementById) return
	
	var aryImgPreLoad = new Array();
	var sSrc;
	var aryImages = document.getElementsByTagName('img');

	for (var i = 0; i < aryImages.length; i++)
	{
		//
		//	Look for images whose CSS class indicates that they should support a rollover behavior
		//	The class name that indicates this behavior is "RolloverEnabled"
		//
		if (aryImages[i].className == 'RolloverEnabled')
		{
			//
			//	Get the path of the default graphic in the img tag
			//
			var src = aryImages[i].getAttribute('src');
			
			//
			//	Get the file type
			//
			var sImgFileType = src.substring(src.lastIndexOf('.'), src.length);
			
			//
			//	Our rollover images are called the same thing as the default image
			//	with "_hover" appended to the name, prior to the file extension.  Build
			//	the new image name here...
			//
			var sHoverSrc = src.replace(sImgFileType, '_hover'+sImgFileType);

			//
			//	Create an attribute on the image, storing the hover image path
			//
			aryImages[i].setAttribute('hsrc', sHoverSrc);
			
			//
			//	Pre-load the hover image
			//
			aryImgPreLoad[i] = new Image();
			aryImgPreLoad[i].src = sHoverSrc;
			
			//
			//	Create a new function for the onmouseover event of the image to
			//	change it's graphic to the _hover image
			//
			aryImages[i].onmouseover = function()
			{
				sSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			//
			//	Create a new function for the onmouseout event of the image to
			//	return the image to the original
			//
			aryImages[i].onmouseout = function()
			{
				if (!sSrc)
				{
					sSrc = this.getAttribute('src').replace('_hover'+sImgFileType, sImgFileType);
				}
				this.setAttribute('src', sSrc);
			}
		}
	}
}

//
//	This line causes the rollover code to be initialized when the window is loaded
//
window.onload = initImageRollovers;