// <script>
<!--
// load the images after the page load
//window.onload += preImages;
if (window.attachEvent) { window.attachEvent("onload", preImages); }

function preImages()	{
	var d = document;
	var j=0;

	for (var i = 0; i<document.images.length; i++)	{
		var s = document.images[i].src.toLowerCase();
		
		if (s.indexOf('_normal.') != -1)	{
			if (!d.preIMG) d.preIMG = new Array();
			j++;
			d.preIMG[j] = new Image();
			d.preIMG[j].src = s;
			j++;
			d.preIMG[j] = new Image();
			d.preIMG[j].src = s.replace('_normal.', '_hover.');
		}	// if
	}	// for
}	// preImages


function ImageDown(pImg, pStatus){
	if (pStatus != null) window.status = pStatus;
	
	var oImg = getImage(pImg);
	if (oImg == null) return true;

	// "on | off" is for testing tabs
	var s = oImg.src;
	s = (s.indexOf('_normal.') != -1) ? s.replace('_normal.','_hover.') : s.replace('_on.','_off.');
	
	oImg.src = s;
	return true;
} //ImageDown

function ImageUp(pImg){
	window.status = '';
	
	var oImg = getImage(pImg);
	if (oImg == null) return true;

	// "on | off" is for testing tabs
	var s = oImg.src;
	s = (s.indexOf('_hover.') != -1) ? s.replace('_hover.','_normal.') : s.replace('_off.','_on.');

	oImg.src = s;
	return true;
} //ImageUp



function getImage(n, d) {
	var p, i, x;  

	if(!d) d=document; 
	
	if ( (p=n.indexOf("?"))>0 && parent.frames.length )	{
		d = parent.frames[n.substring(p+1)].document; 
		n = n.substring(0,p);
	}
  
	if (!(x=d[n]) && d.all) x = d.all[n]; 
	
	for (i=0; !x && i<d.forms.length; i++) 
		x = d.forms[i][n];
	
	for (i=0; !x && d.layers && i<d.layers.length; i++) 
		x = getImage(n, d.layers[i].document);
  
	if (!x && document.getElementById) x = document.getElementById(n); 
	
	return x;
} //getImage


//-->
//</script>
