      function pdshow(element) {
        $(element).addClass('hover');
      }

      function pdhide(element) {
        $(element).removeClass('hover');
      }

      function buchen() {
        var theContent = $('#leftcontent h1.csc-firstHeader').html();
        //alert(theContent);
        location.href = 'index.php?id=69&tx_powermail_pi1[uid13]=' + theContent;
      }

      var theOffset = 70 + 335; // footer + header

      function resizeCanvas() {
        try {
          var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height();
          var theCanvasHeight = viewportHeight - theOffset;
          if($('#content').height() < theCanvasHeight) {
            $('content').height(theCanvasHeight);
          }
        } catch(err) {
          void(0);
        }
      }

    jQuery(document).ready(function() {
      resizeCanvas();
      $(function() {
        $(this).bind("contextmenu", function(e) {
          e.preventDefault();
        });
      });
    });

    $(window).resize(function() {
      resizeCanvas();
    });
