// PNG support for IE6:
// This is a modified version of sleight.js, (c) 2001, Aaron Boodman, http://www.youngpup.net
// "This code is public domain. Please use it for good, not evil."

function fixPNGs() {
       if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
               for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) {
                       if (obj.currentStyle.backgroundImage.match(/\.png/i) != null) {
                               var bg  = obj.currentStyle.backgroundImage;
                               var src = bg.substring(5,bg.length-2);
                               obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='crop')";
                               obj.style.backgroundImage = "url(images/x.gif)";
                       }
               }
               for (var j = document.images.length - 1, img = null; (img = document.images[j]); j--) {
                       if (img.src.match(/\.png$/i) != null) {
                               var src = img.src;
                               var div = document.createElement("DIV");
                               div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='crop')"
                               div.style.width = img.width + "px";
                               div.style.height = img.height + "px";
                               img.replaceNode(div);
                       }
               }
               
       }
}