$(document).ready( function() {
		
		adjustHeights();
		
		$(window).resize( function() {
			adjustHeights();					   
			});

	});

function adjustHeights(currentHeight) {
			$("#content").height('auto');
			var y = $(document).height();
			var z = $(window).height();
			if ( y <= z ) {
				$("#content").height(z-170);
				}
			else {
				$("#content").height(y-170);
				}
		}
        
