
var blank = new Image();
blank.src = 'themes/pointguard/images/spacer.gif';
 
jQuery(document).ready(function() {
    var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
    if (badBrowser) {
        // get all pngs on page
        jQuery('img[src$=.png]').each(function() {
           if (!this.complete) {
              this.onload = function() { fixPng(this) };
           } else {
              fixPng(this);
           }
        });
    }
});
 
function fixPng(png) {
		//Mark: I had to put a try catch here because for some reason this was being called from IE8 and the png.style.width was causing an error
    var src = png.src;
		try {
			// set width and height
			if (!png.style.width) { png.style.width = $(png).width(); }
			if (!png.style.height) { png.style.height = $(png).height(); }
			// replace by blank image
			png.onload = function() { };
			png.src = blank.src;
			// set filter (display original image)
			png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
		
		}catch(ex){}
}



