 
function fixPNG(myImage) {
	var imgID = (myImage.id) ? "id='" + img.id + "' " : ""
	var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
	var imgStyle = "display:inline-block;" + myImage.style.cssText
	var strNewHTML = "<span " + imgID + imgClass + imgTitle
	strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
	strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	strNewHTML += "(src='" + myImage.src + "', sizingMethod='scale');\"></span>"
	myImage.outerHTML = strNewHTML
}



function clearimages() {
	if (window.ie55up) {
		for (j = 0; j < 2; j++) {
			for (i = 0; i < document.images.length; i++) {    			
		    		if (document.images[i].src.substring(parseInt(document.images[i].src.length)-3) == 'png') {
					fixPNG(document.images[i]);
				}
			}
		}

	}
}

