function changeImage(e, fileType, strPath){
	var targ;
	if(e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType == 3) targ = targ.parentNode; // defeat Safari bug
	
	var source = strPath+targ.id
	if (e.type == "mouseover") source += "_r";
	else source += "";
	source += "." + fileType;

	targ.src=source;
}

function divRollover(element, rolloverElementId) {
	element.style.visibility='hidden'; 
	element.style.position='absolute'; 
	document.getElementById(rolloverElementId).style.position='relative'; 
	document.getElementById(rolloverElementId).style.visibility='visible';
}

function displayImage(strImgName, intWidth, intHeight, strAlt, strURL, strPath) {
	if(strURL != ''){
		if (isIE) {
			document.getElementById(strImgName+"Cell").innerHTML = '<div onmouseover="divRollover(this, \''+strImgName+'RolloverDiv\')" id="'+strImgName+'Div" style="height:'+intHeight+'px;width:'+intWidth+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'/images/home/noFlash/'+strImgName+'.png\', sizingMethod=\'scale\')" title="'+strAlt+'"></div>'
				+ '<div onmouseout="divRollover(this, \''+strImgName+'Div\')" id="'+strImgName+'RolloverDiv" style="height:'+intHeight+'px;width:'+intWidth+'px; cursor:pointer; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'/images/home/'+strPath+'/'+strImgName+'_r.png\', sizingMethod=\'scale\'); visibility: hidden; position: absolute;" title="'+strAlt+'" onclick="document.body.style.cursor=\'wait\';location.href=\''+strURL+'\'"></div>'	
		} else {
			document.getElementById(strImgName+"Cell").innerHTML = '<a href="'+strURL+'"><img onmouseover="changeImage(event, \'png\', \'/images/home/'+strPath+'/\')" onmouseout="changeImage(event, \'png\', \'/images/home/'+strPath+'/\')" id="'+strImgName+'" src="/images/home/'+strPath+'/'+strImgName+'.png" title="'+strAlt+'"/></a>'
		}
	}
	else{
		if (isIE) {
			document.getElementById(strImgName+"Cell").innerHTML = '<div id="'+strImgName+'Div" style="height:'+intHeight+'px;width:'+intWidth+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'/images/home/noFlash/'+strImgName+'.png\', sizingMethod=\'scale\')" title="'+strAlt+'"></div>'	
		} else {
			document.getElementById(strImgName+"Cell").innerHTML = '<img id="'+strImgName+'" src="/images/home/'+strPath+'/'+strImgName+'.png" title="'+strAlt+'"/>'
		}	
	}
}