/**
 * set the page content container height to navHeight if navigation is
 * higher then the content container
 */
function fixHeight() {

	var navHeight =  jQuery("#lis-nav").height();
	var headerHeight =  jQuery("#pgHeaderWrapper").height();
	var contentHeight =  jQuery("#pgContentWrapper").height();
	if ((headerHeight + navHeight) > contentHeight) {
		 jQuery("#mainNaviContainer").height( jQuery("#pgWrapper").height() -20);
	}
	else {
		 jQuery("#mainNaviContainer").height( contentHeight + headerHeight );
	}
}

 jQuery(document).ready(function() {
	fixHeight();
	 jQuery(window).resize(function(){
		fixHeight();
	});
});
