var BackgroundAdjuster = {
	defer: null,
	adjust: function() {
		var filler = $("content_fill");
		var bodyHeight = $(document.body).getHeight();
		var pos = filler.cumulativeOffset();
		if (pos.top + filler.getHeight() < bodyHeight) filler.setStyle({height: (bodyHeight - pos.top) + "px"});
		else filler.setStyle({height: "", bottom: 0});
	},
	init: function() {
		var me = this;
		window.onresize = document.onload = function() {
			if (me.defer) me.defer.stop();
			me.defer = new PeriodicalExecuter(function(pe) {
				pe.stop();
				me.defer = null;
				me.adjust();
			}, 0.5);
		};
		this.adjust();
	}
};

