code: function calc_screen_size(scount) {
      if (!scount) { scount = $("#screens .screen").length; }
      var ssize = (($(window).height() - bottom_height - 20) / scount)
        - (bar_height + 53);
      return ssize;
    }
docs: Calculate individual screen size