//class name where PNG's should be fixed
var where = 'PNGfix';
//path to the transparent 1x1 gif
var imgpath = '/img/iefix.gif';
//the script
if(navigator.platform=="Win32"&&navigator.appName=="Microsoft Internet Explorer"&&window.attachEvent){window.attachEvent("onload",alphaBackgrounds);
}function alphaBackgrounds(){var _1=navigator.appVersion.match(/MSIE (\d+\.\d+)/,"");var _2=(_1!=null&&Number(_1[1])>=5.5);for(i=0;i<document.all.length;i++){var bg=document.all[i].currentStyle.backgroundImage;var fix=document.all[i].className;if(_2&&bg&&fix){if(bg.match(/\.png/i)!=null && fix.match(where,i)!=null){var _4=bg.substring(5,bg.length-2);document.all[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4+"', sizingMethod='scale')";document.all[i].style.backgroundImage="url(imgpath)";}}}}
