window.onload = OnPageLoad;

function OnPageLoad(){
   if (document.all)
      fixPngs();
}

// Loops through all img tags
function fixPngs(){
   for (i = 0; i < document.images.length; i++){
      var s = document.images[i].src;
      if (s.indexOf('.png') > 0)  // Checks for the .png extension
         fixPng(s, document.images[i]);
   }
}

// u = url of the image
// o = image object
function fixPng(u, o){
   o.src = 'images/1x1.gif';  // Need to give it an image so we don't get the red x
   o.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + u + "', sizingMethod='scale')";
}


