function setPanoHeight(passedHeight) {
	var fixedSpace = 197, // header + footer fixed heights... (140px + 65px) - 8px top margin
		remainingSpace = (passedHeight - fixedSpace) + 'px';
		
	$('#panoramic').css({'height' : remainingSpace});
}

$(function () {	
	setPanoHeight($(window).height());
	
	$(window).resize(function (e) {		
		setPanoHeight($(window).height());
	});

});


