$(function () {
   $('#printbutton').click(function () {
      window.print();
   });
});
$(document).ready(fixIE6);

/* proc fixIE6
   does: performs various adustments for layout bugs in IE6, such as position-confirming and png loading.
*/
function fixIE6() {
   //exit if version not <= IE6
   if ( !/MSIE\s(5\.5|6\.)/.test(navigator.userAgent) ) return;

   /// PNG Fix. For image elements only, because doing backgrounds as well is so unstable that it's better to provide lo-fi images with an IE6-stylesheet.
   $('img').each(function () {
      if (/\.png$/.test(this.src)) {
         this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ this.src +"',sizingMethod='scale')";
         this.style.width = this.width + 'px';
         this.style.height = this.height + 'px';
         this.src = '/master/gfx/pngfix_pixel.gif';
      }
   });
}