$(function(){ beathaven.init(); $(window).resize(beathaven.adjustSizes) }) var beathaven = { init: function () { this.drawInterface(); this.adjustSizes(); }, drawInterface: function() { }, adjustSizes: function() { $('#data-container').height($(window).height() - $('#header-container').height()); $('#player-container').height($(window).height()); $('#playlist').height($(window).height() - $('#player').height()); } }