function chechContentHeight(){
	var newHeight = $(window).height() - 256;
	var childrenHeight = 0;
	$('div#content').children().each(function(index){
		childrenHeight += $(this).height();
	});
	if(newHeight > childrenHeight + 10)
		$('div#content').css('height', newHeight);
}

$(document).ready(function() {
	chechContentHeight();
	$(window).bind('resize', function() {
		chechContentHeight();
	});
});

