﻿var clear = "images / clear.gif" //path to clear.gif

pngfix=function () {var els=document.getElementsByTagName (' *'); var ip= / \.png / i;var i=els.length;while (i-->0) {var el=els [i]; var es=el.style;if (the one.src&&el.src.match (ip) &&!it is.filter) {it is.height=el.height;es.width=el.width;es.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader (src ='" + the one.src+" ', sizingMethod='crop') "; the one.src=clear;} else {var elb=el.currentStyle.backgroundImage;if (elb.match (ip)) {var path=elb.split-up ('" '); var rep = (the one.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale'; it is.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader (src ='" + path [1] +" ', sizingMethod ='" + rep+" ') "; it is.height=el.clientHeight+'px'; it is.backgroundImage='none'; var elkids=el.getElementsByTagName (' *'); if (elkids) {var j=elkids.length;if (the one.currentStyle.position!="absolute") it is.position='static'; while (j-->0) if (!elkids [j].style.position) elkids [j].style.position = "relative";}}}}}
window.attachEvent ('onload', pngfix); 