	window.onload = function() {
		setHeight();
	}

	window.onresize = function() {
		setHeight();
	}
	
	function setHeight() {
		var box										= document.getElementById('container');
		var htmlheight 								= document.body.parentNode.clientHeight;
		var windowheight 							= window.innerHeight;
		var scrollheight							= document.body.parentNode.scrollHeight;
		if(windowheight != undefined) {
			if(scrollheight > windowheight) {
				windowheight 						= scrollheight;
			}
			document.body.style.height 				= windowheight + "px";
			box.style.height						= windowheight + "px";
		} else {
			if(scrollheight > htmlheight) {
				htmlheight 							= scrollheight;
			}
			document.body.style.height				= htmlheight + "px";
			box.style.height						= htmlheight + "px";
		}
	}