// JavaScript Document
window.onload = loadFunctions;
window.onunload = function() {};

function loadFunctions() {
	expandLeftColumn();
	
}

//force height of col_left and col_center to be equal
function expandLeftColumn(){
	if(document.getElementById('col_center')){
	var center = document.getElementById('col_center');
	var cl = document.getElementById('col_left');
	var centerHeight = center.clientHeight;
	var clHeight = cl.clientHeight;
	if(centerHeight >= clHeight){
	cl.style.height = center.clientHeight - 30 + 'px';
	
	}
	else{
	center.style.height = cl.clientHeight -20 + 'px';
	}
	expandRightColumn();
	
	}
	else{
		expandRightColumn();
	}
}

//force height of col_right and content_main to be equal
function expandRightColumn(){
	var main = document.getElementById('content_main');
	var cs = document.getElementById('col_right');
	var mainHeight = main.clientHeight;
	var csHeight = cs.clientHeight;
	if(mainHeight >= csHeight){
	cs.style.height = main.clientHeight -90 + 'px';
	
	}
	else{
	main.style.height = cs.clientHeight -78 + 'px';
	}
}





