(function(){
	var transparentImage = "/images/transparent.gif";
	//
	var needPngFix = function() {
		var iev = parseFloat((navigator.userAgent.match(/MSIE ([^;]*)/) || [])[1]);
		return (iev && iev<7);
	}
	//
	if (!needPngFix()) 
		pngFix = function() {
			this.style.behavior = "expression(false)";
		}
	else
		pngFix = function() {
			this.onpropertychange = null;
			this.style.behavior = "expression(false)";
			if (this.src.slice(-3) != "png") {
				this.runtimeStyle.filter = "";
			} else {
				this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "',sizingMethod='scale')";
				this.src = transparentImage;
			}
			this.onpropertychange = propChange;
		}
	//
	var propChange = function() {
		if (event.propertyName == "src") {
			pngFix.call(this);
		}
	}
})();
