function correctPNG(){for(var t=0;t<document.images.length;t++){var e=document.images[t],a=e.src.toUpperCase();if("PNG"==a.substring(a.length-3,a.length)){var i=e.id?"id='"+e.id+"' ":"",l=e.className?"class='"+e.className+"' ":"",r=e.title?"title='"+e.title+"' ":"title='"+e.alt+"' ",s="display:inline-block;"+e.style.cssText;"left"==e.align&&(s="float:left;"+s),"right"==e.align&&(s="float:right;"+s),e.parentElement.href&&(s="cursor:hand;"+s);var n="<span "+i+l+r+' style="width:'+e.width+"px; height:"+e.height+"px;"+s+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e.src+"', sizingMethod='scale');\"></span>";e.outerHTML=n,t-=1}}}window.attachEvent("onload",correctPNG);