Remove Console.log statements in client.
UI.once('init', function(){
	var c = $('#chat'),
	hide_userlist_at = 650,
	layout_delay = 200,
	narrow_at = 800,
	resizeTimer;
	
	setTimeout(doLayout, 1000);
	
	$(window).resize(function(){
		clearTimeout(resizeTimer);
		resizeTimer = setTimeout(onResize, layout_delay);
	});
	
	function doLayout(){
		var w = c.width();
		c[(w < hide_userlist_at ? 'add' : 'remove') + 'Class']('hide_userlist');
		$('.container')[(w < narrow_at ? 'add' : 'remove') + 'Class']('narrow');
		var taller = $('body').height() >= $(window).height();
		$('.main')[(taller ? 'add' : 'remove') + "Class"]('taller');
	}
	
	function onResize(){
		doLayout();
		UI.emit('resize');
	}
	
	//stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
	if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod'){
		$("#footer_container").css("position", "static");
	};
});

UI.once('init', function(){
	var c = $('#chat'),
	hide_userlist_at = 650,
	layout_delay = 200,
	narrow_at = 800,
	resizeTimer;
	
	setTimeout(doLayout, 1000);
	
	$(window).resize(function(){
		clearTimeout(resizeTimer);
		resizeTimer = setTimeout(onResize, layout_delay);
	});
	
	function doLayout(){
		var w = c.width();
		c[(w < hide_userlist_at ? 'add' : 'remove') + 'Class']('hide_userlist');
		$('.container')[(w < narrow_at ? 'add' : 'remove') + 'Class']('narrow');
		var taller = $('body').height() >= $(window).height();
		console.log("Taller?: " + taller);
		console.log("Body: " +  $('body').height()  + "   Window:" + $(window).height() + "  HTML:" +  $('html').height());
		$('.main')[(taller ? 'add' : 'remove') + "Class"]('taller');
	}
	
	function onResize(){
		doLayout();
		UI.emit('resize');
	}
	
	//stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
	if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod'){
		$("#footer_container").css("position", "static");
	};
});
