
jQuery(function($){

	$(window).resize(function() {
		adjustLeftColumnHeight();
	});
	adjustLeftColumnHeight();
	
	function adjustLeftColumnHeight() {
		windowHeight = $(window).height() - 140;
		offset = $(".contentArea .navigation").offset();
		navigationHeight = offset.top - parseInt($(".contentArea .navigation").css("padding-top")) - parseInt($(".contentArea .navigation").css("margin-top"));	
		contentHeight = $(".contentArea .content").height();

		if(contentHeight > windowHeight) {
			windowHeight = contentHeight;
		}
		
		$(".contentArea .navigation").height(windowHeight - navigationHeight);
	}

});

