
var $ = function(id) { return document.getElementById(id) };
if ($("left_content") && $("center_content") && $("right_content")){
	var maxH = Math.max($("left_content").scrollHeight,$("center_content").scrollHeight, $("right_content").scrollHeight);
	$("left_content").style.height = maxH + "px";
	$("center_content").style.height = maxH + "px";
	$("right_content").style.height = maxH + "px";
}
function showJCMenu(){}

if ($("left") && $("right"))
{
	var maxH = Math.max($("left").scrollHeight,$("right").scrollHeight);
	$("left").style.height = maxH + "px";
	$("right").style.height = maxH + "px";
	if ($("articleMenu"))
	{
		$("articleMenu").style.height = maxH + "px";
	}

//	if ($("table2"))
//	{
//		$("table2").style.heigth = maxH + "px";
//	}
}

// set current selected menu
if($("menu")){
	var as = $("menu").getElementsByTagName("a");
	if(as.length >0){
		var isSet = false;
		for (var i=0,j=as.length; i<j; i++)
		{
			if(as[i].href==location.href){
				as[i].setAttribute("id","currentSelMenu");
				isSet = true;
				break;
			}
		}
		if(!isSet)
			as[0].setAttribute("id","currentSelMenu");
	}
}
