function CorrectPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   if (/MSIE (5\.5|6\.)/.test(navigator.userAgent) && (document.body.filters)) 
   {
   		var list = document.getElementsByTagName('img');
      for(var i=0; i<list.length; i++)
      {
         var img = list[i];
         var imgName = img.src.toUpperCase();
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG" || imgName.indexOf("CREATEMENUITEM.JSP") > -1 || imgName.indexOf("CREATEMAINTITLE.JSP") > -1)
         {
         	var imgW = (img.currentStyle.width=="auto") ? img.offsetWidth+"px" : img.currentStyle.width;
         	var imgH = (img.currentStyle.height=="auto") ? img.offsetHeight+"px" : img.currentStyle.height;
            var imgID = (img.id) ? "id='" + img.id + "' " : "";
            var imgClass = (img.className) ? "class='" + img.className + "' " : "";
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
            var imgStyle = "display:inline-block;" + ((img.style) ? img.style.cssText : img.currentStyle.cssText);
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + imgW + "; height:" + imgH + ";" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\');\"></span>" 
            img.outerHTML = strNewHTML;
            i = i-1;
            var foo = document.getElementsByTagName('img');
         }
      }
   }    
}