<public:component>
<public:attach event="onpropertychange" onevent="doFix()" />

<script type="text/javascript">

// IE5.5+ PNG Alpha Fix based on the version below but modified by Anton Prowse (2007-06-26) such that
// horrible sledgehammer link fix removed, and repeating background-image handling added.

// Original version: IE5.5+ PNG Alpha Fix v1.0RC4, (c) 2004-2005 Angus Turnbull http://www.twinhelix.com

// This is licensed under the CC-GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/


// This must be a path to a blank image if you want to support png IMG elements. That's all the configuration you need.
if (typeof blankImg == 'undefined') var blankImg = '/images/spacer.gif';


var f = 'DXImageTransform.Microsoft.AlphaImageLoader';

function filt(s, m)
{
 if (filters[f])
 {
	filters[f].enabled = s ? true : false;
	if (s) with (filters[f]) { src = s; sizingMethod = m }
 }
 else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
}

function doFix()
{
//	if (this.id == id1)	return;
	
 // Assume IE7 is OK.
 if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
	(event && !/(background|src)/.test(event.propertyName))) return;

 var bgImg = currentStyle.backgroundImage || style.backgroundImage;

 if (tagName == 'IMG')
 {
	if ((/\.png$/i).test(src))
	{
	 if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
		style.width = offsetWidth + 'px';
	 filt(src, 'scale');
	 src = blankImg;
	}
	else if (src.indexOf(blankImg) < 0) filt();
 }
 else if (bgImg && bgImg != 'none')
 {
	if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
	{
	 var s = RegExp.$1;
	 if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
		style.width = offsetWidth + 'px';
	 style.backgroundImage = 'none';
	 if(currentStyle.backgroundRepeat=="repeat"||
			 currentStyle.backgroundRepeat=="repeat-x"||
				 currentStyle.backgroundRepeat=="repeat-y")
		filt(s, 'scale');
	 else
		filt(s, 'crop');
	}
	else filt();
 }
 
 style.display = 'block';
}

doFix();

</script>
</public:component>