// fixPNG(); http://www.tigir.com/js/fixpng.js (author Tigirlas Igor) function fixPNG(element) { if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent)) { var src; if (element.tagName=='IMG') { if (/\.png$/.test(element.src)) { src = element.src; element.src = "../images/blank.gif"; } } else { src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i) if (src) { src = src[1]; element.runtimeStyle.backgroundImage="none"; } } if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')"; } }