var locapath = document.location.href;
var splitString = locapath.split("/");
var slash_count = splitString.length -1;
var dotpath = "";
if (slash_count > 0 ) {
	if (locapath.toString().search('/preview/')!= -1){
		slash_count = slash_count -4
	}else{
		slash_count = slash_count -3
	}
}
//alert(slash_count);

for(i=0;i<slash_count;i++)
	dotpath = dotpath + "../";

//alert(dotpath);

document.writeln("                  <table width=\"143\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr00','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt00.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt00.style.color='#FFFFFF';\" id=\"td00\">");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr00\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "cindex.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt00\">主頁</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("					  </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr01','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt01.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt01.style.color='#FFFFFF';\" id=\"td01\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr01\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/whatsnew/whatsnew.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt01\">最新消息</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layerabt','','show');MM_swapImage('sidearr02','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt02.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layerabt','','hide');MM_swapImgRestore();bgColor='#1E725B';txt02.style.color='#FFFFFF';\" id=\"td02\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr02\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/aboutus.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt02\">關於我們</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layerpress','','show');MM_swapImage('sidearr03','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt03.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layerpress','','hide');MM_swapImgRestore();bgColor='#1E725B';txt03.style.color='#FFFFFF';\" id=\"td03\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr03\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/presspeech/presspeech.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt03\">新聞公報、演辭及刊物</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr04','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt04.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt04.style.color='#FFFFFF';\" id=\"td04\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr04\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/deptprofile/code.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt04\">公開資料</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layerie','','show');MM_swapImage('sidearr05','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt05.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layerie','','hide');MM_swapImgRestore();bgColor='#1E725B';txt05.style.color='#FFFFFF';\" id=\"td05\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr05\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/import_export/ie_maincontent.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt05\">進出口事宜</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr08','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt08.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt08.style.color='#FFFFFF';\" id=\"td08\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr08\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/cepa/index.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt08\">內地與香港關於建立更緊密經貿關係的安排</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layersmes','','show');MM_swapImage('sidearr06','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt06.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layersmes','','hide');MM_swapImgRestore();bgColor='#1E725B';txt06.style.color='#FFFFFF';\" id=\"td06\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr06\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/smes_industry/smes_industry.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt06\">中小企業及工業支援</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layertraderel','','show');MM_swapImage('sidearr07','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt07.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layertraderel','','hide');MM_swapImgRestore();bgColor='#1E725B';txt07.style.color='#FFFFFF';\" id=\"td07\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr07\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/trade_relations/traderelations_maincontent.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt07\">對外貿易關係</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layertradecir','','show');MM_swapImage('sidearr09','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt09.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layertradecir','','hide');MM_swapImgRestore();bgColor='#1E725B';txt09.style.color='#FFFFFF';\" id=\"td09\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr09\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/tradecircular/tradecircular_maincontent.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt09\">貿易通告</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layerpubform','','show');MM_swapImage('sidearr10','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt10.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layerpubform','','hide');MM_swapImgRestore();bgColor='#1E725B';txt10.style.color='#FFFFFF';\" id=\"td10\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr10\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/form/index.html\" class=\"sidelink\"> ");
document.writeln("                              <div id=\"txt10\">公用表格</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr11','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt11.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt11.style.color='#FFFFFF';\" id=\"td11\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr11\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"http://www.tid.gov.hk/service/ie/jsp/IE_Gen_eService_c.jsp\" class=\"sidelink\" target=\"_blank\"> ");
document.writeln("                              <div id=\"txt11\">電子服務</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr12','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt12.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt12.style.color='#FFFFFF';\" id=\"td12\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr12\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"http://www.tid.gov.hk/portal/ie/html/IE_E_Login_Pub_Index_c.htm\" class=\"sidelink\" target=\"_blank\" > ");
document.writeln("                              <div id=\"txt12\">電郵通知服務</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr13','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt13.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt13.style.color='#FFFFFF';\" id=\"td13\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr13\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/noticeboard/tender.html\" class=\"sidelink\" > ");
document.writeln("                              <div id=\"txt13\">招標公告</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_showHideLayers('layercontactus','','show');MM_swapImage('sidearr14','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt14.style.color='#1E725B'\" onMouseOut=\"MM_showHideLayers('layercontactus','','hide');MM_swapImgRestore();bgColor='#1E725B';txt14.style.color='#FFFFFF';\" id=\"td14\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr14\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/contact/contact_maincontent.html\" class=\"sidelink\" > ");
document.writeln("                              <div id=\"txt14\">聯絡我們</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td><img src=\"" + dotpath + "tc_chi/images/general/spacer.gif\" width=\"55\" height=\"5\" alt=\"圖\"></td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td onMouseOver=\"MM_swapImage('sidearr15','','" + dotpath + "tc_chi/images/general/sidearrow_over.gif',1);bgColor='#D2E3DE';txt15.style.color='#1E725B'\" onMouseOut=\"MM_swapImgRestore();bgColor='#1E725B';txt15.style.color='#FFFFFF';\" id=\"td15\"> ");
document.writeln("                        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                          <tr valign=\"top\"> ");
document.writeln("                            <td><img src=\"" + dotpath + "tc_chi/images/general/sidearrow.gif\" name=\"sidearr15\" alt=\"*\"></td>");
document.writeln("                            <td width=\"100%\" class=\"side\"><a href=\"" + dotpath + "tc_chi/aboutus/links/links.html\" class=\"sidelink\" > ");
document.writeln("                              <div id=\"txt15\">相關網址</div>");
document.writeln("                              </a></td>");
document.writeln("                          </tr>");
document.writeln("                        </table>");
document.writeln("                      </td>");
document.writeln("                    </tr>");
document.writeln("                    <tr> ");
document.writeln("                      <td id=\"td16\">&nbsp;</td>");
document.writeln("                    </tr>");
document.writeln("                  </table>");
