function fixImagePNG(elemID)
{
 
   var img = document.getElementById(elemID);
 
   if( ! img.complete ) 
   {
      img.onload = fix_png;
   } 
   else 
   {
      fix_png.apply( img );
   }
   
}


function fix_png( )
{
    var img = this;
    var span = document.createElement( "span" );
    if( img.id)           span.id = img.id;
    if( img.className	) span.className	= img.className;
    if( img.onclick   	) span.onclick		= img.onclick;
    if( img.onmouseover	) span.onmouseover	= img.onmouseover;
    if( img.onmouseout	) span.onmouseout	= img.onmouseout;
    if( img.onmouseup	) span.onmouseup	= img.onmouseup;
    if( img.onmousedown	) span.onmousedown	= img.onmousedown;
    span.title 			= img.title ? img.title : img.alt;
    span.style.width	= img.width + "px";
    span.style.height	= img.height + "px";
    span.style.filter	= "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + img.src + "\', sizingMethod='scale'";
    img.id				= null;
    img.parentNode.insertBefore( span , img );
    img.parentNode.removeChild( img );
}