
	function fixPNG( thisImage, iWidth, iHeight )
	{ // correctly handle PNG transparency in Win IE 5.5 or higher.

		// don't bother to do anything if this isn't a .png or .gfx
		if( thisImage.src.indexOf('.gfx') == -1 && thisImage.src.indexOf('.png') == -1 )
			return;

		if( iWidth == 0 )
			iWidth = thisImage.width;
		if( iHeight == 0 )
			iHeight = thisImage.height;

		var ua = navigator.userAgent.toLowerCase();
		if( ua.indexOf('msie') != -1 && ua.indexOf('opera') == -1 )
		{
			var imgID		= ( thisImage.id ) ? "id='" + thisImage.id + "' " : "";
			var imgClass	= ( thisImage.className ) ? "class='" + thisImage.className + "' " : "";
			var imgTitle	= ( thisImage.title ) ? "title='" + thisImage.title + "' " : "title='" + thisImage.alt + "' ";
			var imgAlign	= ( thisImage.align ) ? "float: " + thisImage.align + ";" : "";
			var imgStyle	= imgAlign + "display: inline-block;" + thisImage.style.cssText;
			var strNewHTML	= "<span " + imgID + imgClass + imgTitle;
				strNewHTML += " style=\"" + "width:" + iWidth + "px; height:" + iHeight + "px;" + imgStyle + ";";
				strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader";
				strNewHTML += "(src=\'" + thisImage.src + "\', sizingMethod='scale');\">";
				strNewHTML += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"";
				strNewHTML += "width=\"" + iWidth + "\" height=\"" + iHeight + "\">";
				strNewHTML += "<tr><td>&nbsp;</td></table></span>";
			thisImage.outerHTML = strNewHTML;
		}
	}