(function( $ ) {
  
  $.fn.stretchViewPort = function() {
    var windowHeight = $(document).height();
    var bodyHeight = $('#container').height();
    var elementHeight = this.height();
    var stretch = (windowHeight - bodyHeight);
   //$('#debug').append('Bodyheight : ' +bodyHeight + ' windowHeight: ' + windowHeight+ ' BottomHeight: ' + stretch + '<br>');
   
    // Set element height
    return this.each(function() { 
      $this = $(this);
      $this.height(stretch);
      $this.html("<div id='plugin_elm' class='plugin_style'>&nbsp;</div>");
      $('#plug_elm').height(stretch);
      $('#plugin_elm').addClass('plugin_style');
    });
  };
})(jQuery);
