Function.prototype.bind = function( bind, args ) {
  var fn = this;
  
  return function() {
    fn.apply( bind ? bind : fn, args ? args : [] );
  };
};

Function.prototype.delay = function( delay, bind, args ) {
  var fn = this;
  
  return setTimeout(
    fn.bind( bind, args ),
    delay
  );
};

function getIEVersion()
{
  var m;
  
  if( m = navigator.userAgent.toLowerCase().match( /msie (.{3})/ ) )
    return parseFloat( m[1] );
  else
    return null;
}

$( function() {
  if( $.browser.msie && getIEVersion() < 7 ) 
  {
    $( ".pngfix img" ).each( function() {
      if( this.src.match( /\.png$/ ) )
      {
        $( this ).load( function( event ) {
          if( ! event.target.src.match( /blank\.gif$/ ) )
            $( this )
              .css( "width", $( this ).width() )
              .css( "height", $( this ).height() )
              .css( "filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='scale');" )
              .attr( "src", "images/blank.gif" );
        } );
      }
    } );
  }
} );