function langSwitch(lang) {
	if (lang=='english') {
		if (location.href.toString().search('tc') != -1) {
			goPath=location.href.replace("tc", "english");
		}else{
			goPath=location.href.replace("sc", "english");
		}
	}

	if (lang=='tc') {
		if (location.href.toString().search('english') != -1) {
			goPath=location.href.replace("english", "tc");
		}else{
			goPath=location.href.replace("sc", "tc");
		}
	}

	if (lang=='sc') {
		if (location.href.toString().search('english') != -1) {
			goPath=location.href.replace("english", "sc");
		}else{
			goPath=location.href.replace("tc", "sc");
		}
	}
	if (lang=='txtsc') {
			goPath=location.href.replace("sc", "txtsc");
	}
	document.location=goPath;
}
function submit_search_form() {
	window.document.search.submit();
}


document.write("<table width=\"569\" border=\"0\" height=\"87\" cellpadding=\"0\" cellspacing=\"0\" background=\"scimages/bkgdtexture.gif\">");
document.write("  <form name=search action='http://search.gov.hk/search.html?tpl_id=stdsearch' method=get target=blank>");
document.write("    <input type=hidden name=ui_lang value=zh-cn>");
document.write("    <input type=hidden name=ui_charset value=gb>");
document.write("    <input type=hidden name=gp0 value=grs_home>");
document.write("    <input type=hidden name=gp1 value=grs_home>");
document.write("    <input type=hidden name=web value=this>");
document.write("    <tr align=\"left\" valign=\"top\"> ");
document.write("      <td height=\"65\" colspan=\"6\" class=\"sidebar\" background=\"scimages/bkgdtexture.gif\"><a href=../index.htm><img src=\"scimages/branding.gif\" alt=\"香港特别行政区政府 - 政府档案处\" width=\"500\" height=\"60\" border=\"0\"></a>&nbsp; ");
document.write("        &nbsp; </td>");
document.write("      <td height=\"65\" background=\"scimages/bkgdtexture.gif\" colspan=\"4\" valign=\"bottom\"> ");
document.write("        <div align=\"right\"><a href=\"http://sc.info.gov.hk/gb/www.brandhk.gov.hk/brandhk/index.htm\" target=\"_blank\"><img src=\"scimages/brandhk.gif\" alt=\"香港品牌形象 - 亚洲国际都会\" name=\"brandhk\" width=\"190\" height=\"60\" border=\"0\"></a></div>");
document.write("      </td>");
document.write("    </tr>");
document.write("    <tr align=\"left\" valign=\"top\"> ");
document.write("      <td height=\"20\" width=\"170\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"http://www.gov.hk/sc/residents/\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar1','','scimages/mainbar1_f2.gif',1)\" ><img name=\"mainbar1\" src=\"scimages/mainbar1.gif\" width=\"170\" height=\"20\" border=\"0\" alt=\"GovHK香港政府一站通\"></a></td>");
document.write("      <td align=\"left\" valign=\"bottom\" height=\"20\" width=\"77\" background=\"scimages/bkgdtexture.gif\"><a href=javascript:langSwitch(\"txtsc\") onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar2','','scimages/mainbar2_f2.gif',1)\" ><img name=\"mainbar2\" src=\"scimages/mainbar2.gif\" width=\"77\" height=\"20\" border=\"0\" alt=\"繁体纯文字\"></a></td>");
document.write("      <td align=\"left\" valign=\"bottom\" height=\"20\" width=\"49\" background=\"scimages/bkgdtexture.gif\"><a href=javascript:langSwitch(\"tc\") onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar3','','scimages/mainbar3_f2.gif',1)\" ><img name=\"mainbar3\" src=\"scimages/mainbar3.gif\" width=\"49\" height=\"20\" border=\"0\" alt=\"繁体版\"></a></td>");
document.write("      <td align=\"left\" valign=\"bottom\" height=\"20\" width=\"56\" background=\"scimages/bkgdtexture.gif\"><a href=javascript:langSwitch(\"english\") onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar4','','scimages/mainbar4_f2.gif',1)\" ><img name=\"mainbar4\" src=\"scimages/mainbar4.gif\" width=\"56\" height=\"20\" border=\"0\" alt=\"English\"></a></td>");
document.write("      <td height=\"20\" width=\"175\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"#\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar5','','scimages/mainbar5_f2.gif',1)\" ><img name=\"mainbar5\" src=\"scimages/mainbar5.gif\" width=\"175\" height=\"20\" border=\"0\"></a></td>");
document.write("      <td height=\"20\" width=\"36\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"javascript:submit_search_form()\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar6','','scimages/mainbar6_f2.gif',1)\" ><img name=\"mainbar6\" src=\"scimages/mainbar6.gif\" width=\"36\" height=\"20\" border=\"0\" alt=\"搜寻\"></a></td>");
document.write("      <td height=\"20\" valign=\"bottom\" background=\"scimages/bkgdtexture.gif\" width=\"70\"> ");
document.write("        <div align=\"center\"> ");
document.write("          <input class=\"search\" type=\"text\" name=\"query\" size=\"10\">");
document.write("        </div>");
document.write("      </td>");
document.write("      <td height=\"20\" width=\"22\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"javascript:submit_search_form()\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar8','','scimages/mainbar8_f2.gif',1)\" ><img name=\"mainbar8\" src=\"scimages/mainbar8.gif\" width=\"22\" height=\"20\" border=\"0\" alt=\"搜寻\"></a></td>");
document.write("      <td height=\"20\" width=\"79\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"sitemap.htm\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar9','','scimages/mainbar9_f2.gif',1)\" ><img name=\"mainbar9\" src=\"scimages/mainbar9.gif\" width=\"67\" height=\"20\" border=\"0\" alt=\"网页指南\"></a></td>");
document.write("      <td height=\"20\" width=\"29\" background=\"scimages/bkgdtexture.gif\" valign=\"bottom\"><a href=\"contactus.htm\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar10','','scimages/mainbar10_f2.gif',1)\" ><img name=\"mainbar10\" src=\"scimages/mainbar10.gif\" width=\"29\" height=\"20\" border=\"0\" alt=\"联络我们\"></a></td>");
document.write("    </tr>");
document.write("    <tr align=\"left\" valign=\"top\" bgcolor=\"#BB3333\"> ");
document.write("      <td height=\"2\" colspan=\"10\"><img src=\"scimages/reddot.gif\" width=\"760\" height=\"2\"></td>");
document.write("    </tr>");
document.write("  </form>");
document.write("</table> ");

