<public:component>
<public:attach event="onpropertychange" onevent="fixImage()" />
<script>

var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";

if (supported) fixImage();

function fixImage() {
	if (!supported) return;
	// test for png
	if (element.currentStyle.backgroundImage)
		if ( /\.png/.test(element.currentStyle.backgroundImage.toLowerCase()) ) {
			bg = element.currentStyle.backgroundImage.replace(/(url)|([\'\)\(])/g,"");
			element.style.background = "";
			element.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + bg + ",sizingMethod='crop')";
		}
}

</script>
</public:component>
