//$(document).ready(function() {
	function drawScene() {
		var windowHeight = $(window).height();
		var contentHeight = $("#container").height();
			if (contentHeight > windowHeight) {
				var scrollHeight = (contentHeight - windowHeight);
				var treeHeight = (windowHeight + scrollHeight);
				$("#leftTree").height(treeHeight);
				$("#rightTree").height(treeHeight);
			}	
			else {
				$("#leftTree").height(windowHeight);
				$("#rightTree").height(windowHeight);
				$("#container").height(windowHeight);
			}
	}	
		/*$(window).bind('resize',function(){
		     window.location.href = window.location.href;
		     return:false;
		});*/
	$(drawScene);	
	$(window).resize(function(){
		$("#container").css("height","auto");
		drawScene();
	});


