function resizeContent(){
	var windowHeight = $(window).height();
	var windowWidth = $(window).width();
	
	var contentHeight = $('#content-area').height() + 90;
	if(windowHeight<contentHeight){
		windowHeight=contentHeight;
	}
	
	if(740>windowHeight) windowHeight = 740;
	if(900>windowWidth) windowWidth = 900;
	
	$('body').css('height',windowHeight+'px').css('width',windowWidth+'px');
	$('#content').css('height',windowHeight+'px').css('width',windowWidth+'px');
}
$(document).ready(function(){
	resizeContent();
	
	$(window).resize(function() {
		resizeContent();
	});
});
