// *************    
// FIX : for the background images of th TD tag    
// ***************    
function fixBackgroundPng()
{
          //Get all the TD's        
          var tgTags = document.getElementsByTagName("td"); 


          if(tgTags == null) return;
          //Loop thru the Td's and find whether        
          //Any PNG file is set as background        
         for(var c=0;c<tgTags.length;c++) {
             var src = tgTags[c].background;

            if(typeof(src)!="undefined")
            {
             if(src.match(/\.png$/i)!=null) {
             //If any PNG file is set as background                
             //Apply the filter in the same way                
             //How sleight.js does.
             var h,w;
             if(tgTags[c].height){ h= tgTags[c].height; tgTags[c].style.height = h + "px"; }
             if(tgTags[c].width){ w= tgTags[c].width; tgTags[c].style.width = w + "px"; }
             tgTags[c].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
             tgTags[c].background = "x.gif";
            }
            }
          }
}
//Attach funtion with OnLoad event, so that all the PNGs     
//will be processed while the page loads.    
if (navigator.platform == "Win32" && 
navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
     window.attachEvent("onload",fixBackgroundPng);
}