/**
 * @author christopher
 */
var fs = function() {
	var topFrame = 0;
	var bottomFrame = 0;
	var expandedHeight = 0;
	var normalHeight = 0;
	
	var bfHeight = 0;
	
	var wHeight = 0;
	
	var pad = 0;
	
	return {
		
		init: function(tf,bf) {
			topFrame = tf;
			bottomFrame = bf;
			wHeight = document.body.offsetHeight;
			Debug.debug("fs.init");
			Debug.debug("container height: " + wHeight);
			bfHeight = wHeight - tf.offsetHeight - pad;
			bf.style.height = bfHeight + "px";
			Debug.debug("bottom height:" + bfHeight);
		},
		
		set_SmallHeight: function(v) {
			normalHeight = v;
		},
		
		set_BigHeight: function(v) {
			expandedHeight = v;
		},
		
		grow: function() {
			topFrame.style.height = expandedHeight + "px";
			var diff = wHeight - expandedHeight - pad;
			bottomFrame.style.height = diff + "px";
		},
		
		shrink: function() {
			topFrame.style.height = normalHeight + "px";
			bottomFrame.style.height = bfHeight + "px";
		}
		
		
		
	}
	
}();
