//-----------------START control the font size------------//
	var per = 97;
	var arrNode = new Array();

	function setFontSize(value){
		var oBody = document.body;
		per += value;
		if(per >= 110){
			per = 110; return;
		}
		if(per < 90){
			per = 90; return;
		}
			
		getTextNode(oBody);
		for(var i=0;i<arrNode.length; i++){
			var t = arrNode[i];
			if(t.nodeType == 1){
				t.style.fontSize = per + '%';
			}
		}
	}

	function getTextNode(node){
		arrNode.push(node);
		if(node.hasChildNodes()){
			var t = node.childNodes;
			for(var i = 0 ;i<t.length; i++){
				getTextNode(t[i]);
			}		
		}
	}	
//-----------------------END control the font size-------------------//


	
/*
 * get the local time
 * display : Local time: Aguest 8,18:28:35
 */
function setLocalTime(){
	//alert();
	var month;
	var date = new Date();
	var oDiv = document.getElementById('local_time');
	
	switch(date.getMonth()){
		case 0:
			month = '1月'; break;
		case 1:
			month = '2月'; break;
		case 2:
			month = '3月'; break;
		case 3:
			month = '4月'; break;
		case 4:
			month = '5月'; break;
		case 5:
			month = '6月'; break;
		case 6:
			month = '7月'; break;
		case 7:
			month = '8月'; break;
		case 8:
			month = '9月'; break;
		case 9:
			month = '10月'; break;
		case 10:
			month = '11月'; break;
		case 11:
			month = '12月'; break;
	}
	
	//var str = 'Local Time: ' + month + ' ' + newDate.getDate() + ', ' + newDate.toLocaleTimeString();
	var str = '本地时间: ' + month + ' ' + date.getDate() +'日'+ ', ' + date.getHours()+"."+date.getMinutes()+"."+date.getSeconds();
	oDiv.firstChild.innerHTML = str;	
	window.setTimeout(setLocalTime,1000);
}

/*function openLink(obj,i)
{
  referLanguage=false;
  
  document.getElementById("languageshow").innerText=obj;
  if(i=="0")
  {
     
  }else if(i=="1")
  {
    //window.open("http://hongkong.langhamhotels.com/simpchina/index.html","_self");
  }else if(i=="2")
  {
    window.open("http://hongkong.langhamhotels.com/china/index.html","_self");
  }else if(i=="3")
  {
    window.open("http://hongkong.langhamhotels.com/japan/index.html","_self");
  }else if(i=="4")
  {
    window.open("http://hongkong.langhamhotels.com/korean/index.html","_self");
  }
  
  comboLanguage();
}
*/
function RedirectPage(path)
{
   window.open(path,"_self");
}

function RedirectPage2(path)
{
   window.open(path,"_blank");
}

function changeUnderline(name)
{
   document.getElementById(name).style.textDecoration="underline";
}

function restoreUnderline(name)
{
    document.getElementById(name).style.textDecoration="none";
}                                       