// hacks pngs to work with alpha blending on IE
function fixPng (img) {
    if (arguments.length == 0) { img = this; }


    if (navigator.platform == "Win32"
        && navigator.appName == "Microsoft Internet Explorer"
        && typeof img.style.filter == 'string'
        && img.src.match(/\.png$/i) != null)
    {
        var src = img.src;
        if (img.width) { img.style.width = img.width + "px"; }
        if (img.height) { img.style.height = img.height + "px"; }
        img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
        img.onload = function () {
            img.className = img.className.replace(/\bfixPng\b/g, '');
        }
        img.src = '/blank.gif';
    } else {
        img.className = img.className.replace(/\bfixPng\b/g, '');
    }
}


if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer") {
    document.write('<style type="text/css"> .fixPng { visibility: hidden; } </style>');
}