// JavaScript Document to ensure that the content area height is set correctly

function setHeight(){
	var div_1 = document.getElementById('maincolumn').offsetHeight;
	var div_2 = document.getElementById('bottom-1000').offsetHeight;
	var div_3 = document.getElementById('sidebar').offsetHeight;
	if(div_1 != div_2){
		document.getElementById('maincolumn').style.height = div_2 + "px";
	}
}
function setHeightDown(thisHeight){
	var div_1 = document.getElementById('maincolumn').offsetHeight;
	var div_2 = document.getElementById('bottom-1000').offsetHeight;
	if(thisHeight > 0){
		document.getElementById('maincolumn').style.height = (div_1 - thisHeight) + "px";
		document.getElementById('bottom-1000').style.height = (div_2 - thisHeight) + "px";
	}
}
function setHeightCalendar(){
	var div_1 = document.getElementById('maincolumn').offsetHeight;
	var div_2 = document.getElementById('bottom-1000').offsetHeight;
	var div_3 = document.getElementById('LargeCalendarContainer').offsetHeight;	
	if(div_1 < (div_3 + 120)){
		document.getElementById('maincolumn').style.height = (div_3 + 120) + "px";
		document.getElementById('bottom-1000').style.height = (div_3 + 120) + "px";
	}
}
window.onload = function(){
	setHeight();
}
function confirmLink(){	
	var Msg = 'You are now leaving the National Health Council website. The National Health Council makes no endorsement, express or implied, of any links to or from our site, nor are we responsible for the content or activities of any linked sites.';
	alert(Msg);
}


