function fixPngImage(e)
{
	if (typeof e != 'object')
	{
		e = this;
	}
	if (e.tagName != 'IMG')
	{
		var src = (typeof e.currentStyle != 'undefined' ? e.currentStyle.backgroundImage : e.style.backgroundImage);
		if (!src) return;
		src = src.substring(5, src.length - 2);
		e.style.background = 'transparent';
		var sSize = 'image';
		if (e.className.indexOf('crop') != -1) sSize = 'crop';
		if (e.className.indexOf('scale') != -1) sSize = 'scale';
		e.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sSize + "')";
	}
	else
	{
		var style = "display:inline-block;"
			+ "width:" + e.width + "px;"
			+ "height:" + e.height + "px;"
			+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + e.src + "')";
		var html = '<span style="' + style + '"></span>';
		$(e).replaceWith(html);
	}
}

