function matchHeight() {
	var col = document.getElementById('column_content');
	var colh = col.offsetHeight;
	var conh = document.getElementById('content').offsetHeight;
	
	if (colh < conh) {
		if (conh < 300) col.style.height = '300px';
		else col.style.height = (conh-20) + 'px';
	}
}

function showTab(tab_sel) {
	tab = tab_sel;
	clearTimeout(timer);
	timer = setTimeout("doSwitch(tab)",100);
}

function hideTab() {
	clearTimeout(timer);
	timer = setTimeout("doSwitch(tab_req)",200);
}

function doSwitch(tab_x) {
	if (tab_x != showing_tab) {
		document.getElementById('sub_' + tab_x).style.display = 'block';
		document.getElementById('tab_' + tab_x).className = 'activeLink';
		document.getElementById('sub_' + showing_tab).style.display = 'none';
		document.getElementById('tab_' + showing_tab).className = '';
		showing_tab = tab_x;
	}
}

function showDiv(ID) {
	divID = ID;
	timer = setTimeout("document.getElementById(divID).style.display = 'block'",100);
}

function hideDiv(ID) {
	clearTimeout(timer);
	document.getElementById(ID).style.display = 'none';
}

window.onload = matchHeight;

