//pngFix - fix IE<=6.0 png alpha
//by oechai
//last modified : 2009.04.03.1627
function pngFix () {
	$('img').each(function(i){
		var src = this.src;
		var isPngFormat = (src.indexOf(".png")>-1)?true:false;
		var pathAndFileName = src;
		if (isPngFormat) {
			dimension = "width:"+$(this).attr('width') + "px; height:"+$(this).attr('height')+"px;";
			sizingmethod = "scale";
			pngImgBlockHTML = "<span class=\"image\" style=\"display:block; "+ dimension +
				" filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+pathAndFileName+"\',sizingMethod='"+ sizingmethod +"');\"></span>"
			$(this).replaceWith(pngImgBlockHTML);
		}
	});
}
