var badBrowser;
var pixel = new Image();

pixel.src = "../images/pixel.gif";

$(document).ready(function() {
   $( "#content_right_container_pda" ).hover( function() { $( "#resources_navigation_pda", this ).css( "display", "block" ); },
															 function() { $( "#resources_navigation_pda", this ).css( "display", "none" ); } )

   badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");

   if( badBrowser ) {
      // get all pngs
      $( "img[src$=.png]" ).each( function() {
         if( !this.complete ) {
            this.onload = function() { fixPng( this ) };
         } else {
            fixPng( this );
         }
      } );
   }
} );

function fixPng( png ) {
   var src = png.src;
   if( !png.style.width ) { png.style.width = $( png ).width(); }
   if( !png.style.height ) { png.style.height = $( png ).height(); }
   
   // replace by pixel image
   png.onload = function() { };
   png.src = pixel.src;

   // set filter ( display original image )
   png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}

