(function() {
	var pngImages = Ojay('img').filter(function(img) {
		return /\.png$/.test(img.node.getAttribute('src'));
	}).forEach(function(img) {
		if (!YAHOO.env.ua.ie) return;
		var img = img.node||img, source = img.src, width = img.width, height = img.height;
		var old = img.nextSibling;
		if (old && old.tagName == 'SPAN' && old.className == 'pngFix') old.parentNode.removeChild(old);
		var span = Ojay.HTML.span({className: 'pngFix'});
		span.style.width = width + 'px';
		span.style.height = height + 'px';
		span.style.display = 'block';
		span.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + source + "\', sizingMethod='crop')";
		img.parentNode.insertBefore(span, img.nextSibling);
		img.style.display = 'none';
	});
})();
