﻿function chLangEng() {
	var link = parent.location.href;
	var endLink = link.length;
	var i;
	var n;
	var found = 0;
	var chLinkchi="";
	
	for(i = 0; i <= endLink; i++) {
		n = i + 3;
		if (link.substring(i, n) == "chi") {			
			chLinkeng = link.substring(0, i) + "eng" + link.substring(n, endLink);
			break;
		}
	}
	
	var v_URL = chLinkeng.split("#");
	window.location = v_URL[0];
}

function chLangGbx() {
	var link = parent.location.href;
	var endLink = link.length;
	var i;
	var n;
	var found = 0;
	var chLinkgbx="";
	
	for(i = 0; i <= endLink; i++) {
		n = i + 3;
		if (link.substring(i, n) == "chi") {			
			chLinkgbx = link.substring(0, i) + "gbx" + link.substring(n, endLink);
			break;
		}
	}
	
	var v_URL = chLinkgbx.split("#");
	window.location = v_URL[0];

}

document.write('<table width="100%"  border="0" cellspacing="0" cellpadding="0">')
document.write('<tr>')
document.write('<td><table width="100%"  border="0" cellspacing="0" cellpadding="0">')
document.write('<tr>')
document.write('<td valign="middle"><a href="../front/index.aspx"><img src="../images/share/logo_left.gif" width="252" height="40" hspace="0" border="0"></a></td>')
document.write('<td>&nbsp;</td>')
document.write('<td align="right"><a href="../front/index.aspx"><img src="../images/share/logo_right.gif" width="106" height="63" border="0"></a></td>')
document.write('</tr>')
document.write('</table></td>')
document.write('</tr>')



document.write('<tr>')
document.write('<td><img src="../images/share/spacer.gif" width="1" height="15"></td>')
document.write('</tr>')
document.write('<tr>')
document.write('<td><table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">')
document.write('<tr>')
document.write('<td><img src="../images/share/img_arrow_orange.gif" width="6" height="10"><img src="../images/share/spacer.gif" width="5" height="1"><a href="javascript:chLangEng();" class="txtlang">English</a><img src="../images/share/spacer.gif" width="16" height="8"><img src="../images/share/img_arrow_orange.gif" width="6" height="10"><img src="../images/share/spacer.gif" width="5" height="1"><a href="javascript:chLangGbx();" class="txtlang">簡体中文</a></td>')
document.write('<td width="495" height="20" bgcolor="564e4c"><table width="100%" border="0" cellpadding="0" cellspacing="0">')
document.write('<tr>')
document.write('<td><img src="../images/share/img_top_arrow.gif" width="43" height="20"></td>')
document.write('<td><table border="0" align="right" cellpadding="0" cellspacing="0">')
document.write('<tr>')
document.write('<td height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><a href="../front/index.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image10\',\'\',\'../images/share/btn_home_on.gif\',1)"><img src="../images/share/btn_home_off.gif" name="Image10" width="24" height="12" border="0"></a></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><a href="#"   onClick="MM_openBrWindow(\'../front/eservice.html\',\'\',\'scrollbars=yes,resizable=yes,width=420,height=600\')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image11\',\'\',\'../images/share/btn_top_01_on.gif\',1)"><img src="../images/share/btn_top_01_off.gif" name="Image11" width="52" height="12" border="0"></a></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td width="10"><a href="../front/login.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image12\',\'\',\'../images/share/btn_top_02_on.gif\',1)"><img src="../images/share/btn_top_02_off.gif" name="Image12" width="51" height="12" border="0"></a></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')

document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><a href="http://www.crc.com.hk" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'../images/share/btn_top_04_on.gif\',1)"><img src="../images/share/btn_top_04_off.gif" name="Image13" width="52" height="12" border="0"></a></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')

document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')
document.write('<td><a href="http://www.cre.com.hk" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image14\',\'\',\'../images/share/btn_top_05_on.gif\',1)"><img src="../images/share/btn_top_05_off.gif" name="Image14" width="52" height="12" border="0"></a></td>')
document.write('<td width="10" height="100%"><img src="../images/share/spacer.gif" width="1" height="20"></td>')

document.write('<td><img src="../images/share/img_dotline.gif" width="1" height="16"></td>')
document.write('<td width="10"><img src="../images/share/spacer.gif" width="10" height="20"></td>')

document.write('</tr>')
document.write('</table></td>')
document.write('</tr>')
document.write('</table></td>')
document.write('</tr>')
document.write('</table></td>')
document.write('</tr>')
document.write('</table>')