if (navigator.appVersion.indexOf("MSIE") != -1) {
  document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fixAllPNG);
}

function fixAllPNG() {
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

  for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
    if (itsAllGood && img.src.match(/\.png$/i) != null) {
      fixPNG(img, null, null);
    }
    else {
      img.style.visibility = "visible";
    }
  }
}

function fixPNG(myImage, height, width) {
  if (navigator.appVersion.indexOf("MSIE") != -1) {
    var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";
    var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";
    var imgTitle = (myImage.title) ? 
                   "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' ";
    var imgStyle = "display:inline-block;" + myImage.style.cssText;
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
      + " style=\"width:" + (height != null ? height : myImage.width)
      + "px; height:" + (width != null ? width : myImage.height)
      + "px;" + imgStyle + ";"
      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
      + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";
    myImage.outerHTML = strNewHTML;
  }
}
