/***********************************************************************************************************
* Language Selector                                                                                           *
* Last Update: 2005 June 15                                                                                 *
* Updated By: Benedict Hung                                                                                *
***********************************************************************************************************/

/************************************************************
* Switch from English to Chinese
************************************************************/
function switchEnglishChinese()
{	var url = String(window.location.href);
	for (i=0; i<url.length; i++)
	{		url = url.replace("/01","/03");
			url = url.replace("_english/","_chinese/");
	}
	document.location=url;
}

/************************************************************
* Switch from Chinese to English
************************************************************/
function switchChineseEnglish()
{	var url = String(window.location.href);
	for (i=0; i<url.length; i++)
	{		url = url.replace("/03","/01");
			url = url.replace("_chinese/","_english/");
	}
	document.location=url;
}

/************************************************************
* No Switch from English to English or Chinese to Chinese
************************************************************/
function noSwitchSelection()
{	var url = String(window.location.href);
	for (i=0; i<url.length; i++)
	{		url = url.replace("#","");
	}
	document.location=url;
}
