Ext.onReady(function(){
	if(Ext.isIE6){
		Ext.select('img[src$=.png]').each(function(e){
			var iSrc = e.getAttribute('src');
			var iWidth = e.getAttribute('width');
			var iHeight = e.getAttribute('height');
			var iStyle = e.getAttribute('style');
			var iTitle = e.getAttribute('title');
			var iCls = e.getAttribute('class');
			var iMarginTop = e.getStyle('margin-top');
			var iMarginLeft = e.getStyle('margin-left');
			
			var filter = 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + iSrc + '\', sizingMethod=\'scale\')';
			
			e.setVisibilityMode(Ext.Element.DISPLAY);
			e.hide();
			
			var sh = '<span style="' + filter + '" title="' + iTitle + '" class="' + iCls + '"></span>';
			var s = e.parent().insertHtml('afterBegin', sh, true);
			
			s.setStyle({
				width: iWidth + 'px',
				height: iHeight + 'px',
				display: 'inline-block',
				position: 'relative',
				whitespace: 'pre-inline',
				background: 'transparent',
				fontSize: '1px',
				marginTop: iMarginTop,
				marginLeft: iMarginLeft
			});
			
			if(e.parent().is('a')){
				s.setStyle({cursor: 'hand'});
			}
			
		});
	}
});