stickyFooter = {

	//http://www.alistapart.com/articles/footers
	getWindowHeight : function() {
		var windowHeight=0;
		if (typeof(window.innerHeight)=='number') {
			windowHeight=window.innerHeight;
		}
		else {
			if (document.documentElement &&	document.documentElement.clientHeight) {
					windowHeight=document.documentElement.clientHeight;
			}
			else {
				if (document.body&&document.body.clientHeight) {
					windowHeight=document.body.clientHeight;
				}
			}
		}
		return windowHeight;
	},

	
	//http://www.quirksmode.org/index.html?/js/introdh.html
	findPosY : function(obj) {
		var curtop = 0;
		if (obj.offsetParent) {
			while (obj.offsetParent) {
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y) {
			curtop += obj.y;
		}
		return curtop;
	},

	
	pad : function(el) {
		var elBottom = this.findPosY(el) + el.offsetHeight
		var winHeight = this.getWindowHeight()
		var bodyBottom = document.documentElement.offsetHeight
		var padding = bodyBottom - elBottom
		
		if (elBottom <  winHeight) {
			var padder = document.createElement("div")
			padder.style.height = (winHeight - elBottom - padding) + "px"
			el.insertBefore(padder, el.firstChild)
		}
		
	}
	
}