function loadDoc(documentid){
	//alert("Call Page ID "+documentid);
	//document.mainStage.SetVariable("docCode", documentid);
}

function swapsize(){
	var browserHeight = document.body.clientHeight;
	var browserWidth = document.body.clientWidth;
	
	document.hub2008.height = browserHeight;
	
	if (browserWidth >= 726){
		document.TNaru_HubTemplateSlider.width = browserWidth;
	}else{
		document.TNaru_HubTemplateSlider.width = 726;
	}
}

function updateStageHeight(objHeight){
	var browserHeight = document.body.clientHeight;
//	alert(objHeight);
	if (browserHeight >= objHeight)	{
		
		document.TNaru_HubTemplateSlider.height = browserHeight;
	}else{
		document.TNaru_HubTemplateSlider.height = objHeight;
	}
}

function getStageHeight() {
	var browserHeight = document.body.clientHeight;
	return browserHeight;
}

function updateStageNewHubHeight(objHeight){
	var browserHeight = document.body.clientHeight;

	if (browserHeight >= objHeight)	{
		document.hub2008.height                 = browserHeight;
		document.TNaru_HubTemplateSlider.height = browserHeight;
	}else{
		document.hub2008.height                 = objHeight;
		document.TNaru_HubTemplateSlider.height = objHeight;
	}
}