
<!-- Update on 19/04/2010 by Ida Cheung-->
<!--
/*
   function changelang()
   {
		curFilename = top.location.pathname.substring(top.location.pathname.lastIndexOf("/")+1, top.location.pathname.length)
		alert(top.location.pathname);
		if (top.location.pathname.indexOf("/eng/") != -1) {
					targetLang = top.location.pathname.replace(/\/eng\//,"/b5/");
			if (top.location.search.indexOf("?") != -1) {
				nopara = "";
			}
			alert(targetLang);
				top.location
			top.location.replace(top.location.pathname.replace(/\/eng\//,"/b5/"));
		} else if (top.location.pathname.indexOf("/b5/") != -1) {
			top.location.replace(top.location.pathname.replace(/\/b5\//,"/eng/"));
		} else if (top.location.pathname.indexOf("\\eng\\") != -1){
			top.location.replace(top.location.pathname.replace(/\\eng\\/,"\\b5\\"));
	     } else if (top.location.pathname.indexOf("\\b5\\") != -1) {
			top.location.replace(top.location.pathname.replace(/\\b5\\/,"\\eng\\"));
		}
   }
*/

   function changelang_a()
   {
	   var targetURL = top.location.pathname;
	   var para = top.location.search;

		if (targetURL.indexOf("/eng/") != -1)
		{
				targetURL = targetURL.replace(/\/eng\//,"/b5/");
		}
		else if (targetURL.indexOf("\\eng\\") != -1)
		{
			targetURL = targetURL.replace(/\\eng\\/,"\\b5\\");
		}

		else if (targetURL.indexOf("/b5/") != -1)
		{
			targetURL = targetURL.replace(/\/b5\//,"/eng/");
		}
		else if (targetURL.indexOf("\\b5\\") != -1)
		{
			targetURL = targetURL.replace(/\\b5\\/,"\\eng\\");
		}

   top.location = targetURL + para;

}


   function changelang()
   {
	   var targetURL = top.location.pathname;
	   var para = top.location.search;

		if (targetURL.indexOf("/eng/") != -1 || targetURL.indexOf("/sim/") != -1)
		{
				targetURL = targetURL.replace(/\/eng\//,"/b5/");
				targetURL = targetURL.replace(/\/sim\//,"/b5/");
		}
		else if (targetURL.indexOf("\\eng\\") != -1 || targetURL.indexOf("\\sim\\") != -1)
		{
			targetURL = targetURL.replace(/\\eng\\/,"\\b5\\");
			targetURL = targetURL.replace(/\\sim\\/,"\\b5\\");
		}

		else if (targetURL.indexOf("/b5/") != -1 || targetURL.indexOf("/sim/") != -1)
		{
			targetURL = targetURL.replace(/\/b5\//,"/eng/");
			targetURL = targetURL.replace(/\/sim\//,"/eng/");
		}
		else if (targetURL.indexOf("\\b5\\") != -1 || targetURL.indexOf("\\sim\\") != -1)
		{
			targetURL = targetURL.replace(/\\b5\\/,"\\eng\\");
			targetURL = targetURL.replace(/\\sim\\/,"\\eng\\");
		}
		else if (targetURL.indexOf("/b5/") != -1 || targetURL.indexOf("/eng/") != -1)
		{
			targetURL = targetURL.replace(/\/b5\//,"/sim/");
			targetURL = targetURL.replace(/\/eng\//,"/sim/");
		}
		else if (targetURL.indexOf("\\b5\\") != -1 || targetURL.indexOf("\\eng\\") != -1)
		{
			targetURL = targetURL.replace(/\\b5\\/,"\\sim\\");
			targetURL = targetURL.replace(/\\eng\\/,"\\sim\\");
		}

   top.location = targetURL + para;

}

 function changelang_sim()
   {
	   var targetURL = top.location.pathname;
	   var para = top.location.search;

		
				targetURL = targetURL.replace(/\/eng\//,"/sim/");
				targetURL = targetURL.replace(/\/b5\//,"/sim/");
		
			targetURL = targetURL.replace(/\\eng\\/,"\\sim\\");
			targetURL = targetURL.replace(/\\b5\\/,"\\sim\\");
		
   top.location = targetURL + para;

}

 function changelang_eng()
   {
	   var targetURL = top.location.pathname;
	   var para = top.location.search;

		
				targetURL = targetURL.replace(/\/sim\//,"/eng/");
				targetURL = targetURL.replace(/\/b5\//,"/eng/");
		
			targetURL = targetURL.replace(/\\sim\\/,"\\eng\\");
			targetURL = targetURL.replace(/\\b5\\/,"\\eng\\");
		
   top.location = targetURL + para;

}

 function changelang_tc()
   {
	   var targetURL = top.location.pathname;
	   var para = top.location.search;

				targetURL = targetURL.replace(/\/eng\//,"/b5/");
				targetURL = targetURL.replace(/\/sim\//,"/b5/");
		
			targetURL = targetURL.replace(/\\eng\\/,"\\b5\\");
			targetURL = targetURL.replace(/\\sim\\/,"\\b5\\");
		
   top.location = targetURL + para;

}

//-->


