var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function _pngfix_int() {
	this.onload = null;
	oldwidth = this.style.width ? parseInt(this.style.width) : this.width;
	oldheight = this.style.height ? parseInt(this.style.height) : this.height;
	oldsrc = this.src;
	this.src = "/images/b.gif";
	this.width = oldwidth;
	this.height = oldheight;
	this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+oldsrc+"', sizingMethod='scale')";
}
if ((version >= 5.5 && version < 7) && (document.body.filters))
{
	 for(var i = 0, len = document.images.length; i < len; i++)
	 {
			var img = document.images[i]
			var imgName = img.src.toUpperCase()
			if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
			{
				if (img.complete) {
					oldwidth = img.style.width ? parseInt(img.style.width) : img.width;
					oldheight = img.style.height ? parseInt(img.style.height) : img.height;
					oldsrc = img.src;
					img.src = "/images/b.gif";
					img.width = oldwidth;
					img.height = oldheight;
					img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+oldsrc+"', sizingMethod='scale')";
				}
				else
					img.onload = _pngfix_int;
			}
	 }
}
