/**
    * Sets alpha-blending for transparent png's
    *
    * Internet Explorer being what is and Microsoft's pace at supporting modern file
    * formats (PNG file format; standardized circa. October 1996), this function is
    * designed to convert png's using the document.images array to support
    * transparency using alpha-blending. Unfortunately there is a side effect for
    * this 'fix'; the src attribute value will be lost.
    *
    * @author Jordon Mears, Insivia <jmears@insivia.com>
    * @return  nothing
    * @version $Revision 2.0$
    */
   function correct_png() {
   	
      for(var i=0;i<document.images.length;i++) {
         var img = document.images[i];
         var img_name = img.src.toLowerCase();
         var img_ext = img_name.substring(img_name.toUpperCase().length-3,img.src.length);

         if(img_ext == 'png') {
            img.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=\'true\',src=\'' + img.src + '\',sizingMethod=\'image\')';
            if(img.parentElement.href) {
               img.border = 0;
            }
            img.src = '/wp-content/themes/gcshof/images/none.gif';
         }
      }
   }
   
