function setPngAsGif() {
    //if browser version is IE 6 or earlier
    if ($.browser.msie && parseInt($.browser.version, 10) <= 6) {
        //for each png image to replace
        $("img.set-ie-gif[src$=.png]").each(function(i) {
            //replace the image with a gif version because IE 6 and earlier can't handle the truth
            var srcVal = $(this).attr('src');
            srcVal = srcVal.replace('.png', '.gif');
            //alert(srcVal);
            $(this).attr('src', srcVal);
        });
    }
}
