// IE PNG hack fix

function correctPNG(){
	di=document.images
	for (i=0;i<di.length;i++){
		img=di[i]
		if (img.src.match(/png$/i)){
			imgID=(img.id)?"id='" + img.id + "' ":""
			imgClass=(img.className)?"class='" + img.className + "' ":""
			imgTitle=(img.title)?"title='" + img.title + "' ":"title='" + img.alt + "' "
			imgStyle="display:inline-block;" + img.style.cssText
			if (img.align=='left') imgStyle="float:left;" + imgStyle
			if (img.align=='right') imgStyle="float:right;" + imgStyle
			if (img.parentElement.href) imgStyle="cursor:hand;" + imgStyle
			img.outerHTML="<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
				+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\');\"></span>"
			i--		//i=i-1		//why is this here?
		}
	}
}

if (window.attachEvent)
	window.attachEvent("onload", correctPNG)
