// JavaScript Document to control column heights for the jobpro homepage


function adjustHeight(){
	if(document.getElementById('centerNav')){
		columnA = document.getElementById('contentArea').offsetHeight;
		columnB = document.getElementById('centerNav').offsetHeight;
		
		//columnC is the right most column with the jobs in it
		columnC = document.getElementById('jobListCont').offsetHeight;
		
		rColumn = columnC - 103;
		
		if(columnA > columnB){
			lColumn = columnA;
		}else{
			lColumn = columnB;
		}
		
		if(lColumn > rColumn){
			columnH = lColumn;
		}else{
			columnH = rColumn;
		}
		
		document.getElementById('contentArea').style.height=columnH+"px";
		document.getElementById('centerNav').style.height=columnH+"px";
		document.getElementById('jobListCont').style.height=(columnH+103)+"px";
	}else{
		columnA = document.getElementById('leftContent_inner').offsetHeight;
		
		//columnC is the right most column with the jobs in it
		columnC = document.getElementById('jobListCont2').offsetHeight;
		
		rColumn = columnC - 131;
		
		if(columnC > columnA){
			columnH = columnC;
		}else{
			columnH = columnA;
		}
		
		document.getElementById('leftContent_inner').style.height=columnH+"px";
		document.getElementById('jobListCont2').style.height=(columnH+131)+"px";
	}
}
window.onload = function(){
	adjustHeight();
}