var Png = new Class({
	initialize: function(){
		//var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
		//if((rslt != null && Number(rslt[1])>=5.5 && Number(rslt[1])<7))
		if( window.ie6 )
			$$('.png').each(function(el){
				// var pos = $(el).getPosition();
				var pos = $(el).getCoordinates();
				/*$(el).clone().setStyles({
					'background': '',
					'width': pos.width+"px",
					'height': pos.height+"px",
					'left': pos.left+"px",
					'top': pos.top+"px",
					'position': 'absolute'
				}).injectInside('body');*/
				$(el).setStyles({
					'width': pos.width+"px",
					'height': pos.height+"px",
					'background': '',
					'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.currentStyle.backgroundImage.substring(5, el.currentStyle.backgroundImage.length-2)+"', sizingMethod='crop')"
				}).setHTML('');
				el.addEvent("propertychange", function(){
					if(window.event.propertyName=="style.backgroundImage"){
						var el = window.event.srcElement;
						if($(el).hasClass('png'))
							el.filters.item(0).src = el.currentStyle.backgroundImage.substring(5,el.currentStyle.backgroundImage.length-2);
					}
				});
			});
	}
});
