document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="192" valign="top"><a name="top" href="/index.php" id="top"><img src="/images/customer/chi/co_logo.jpg" width="192" height="56" border="0" /></a></td>');
document.write('    <td width="768" valign="top">');
document.write('      <table width="768" border="0" cellspacing="0" cellpadding="0">');
document.write('        <tr>');
document.write('          <td width="220" valign="top">');

// journey planner
document.write('            <table border="0" cellspacing="0" cellpadding="2">');
document.write('              <tr>');
document.write('                <td><a href="http://forum.mtr.com.hk"><img src="/images/customer/chi/home_forum_c.gif" border="0" /></a></td>');
document.write('                <td><a href="/jplanner/chi/planner_index.php"><img src="/images/customer/chi/home_jp_c.gif" border="0" /></a></td>');
document.write('              </tr>');
document.write('            </table>');
// end of journey planner

document.write('          </td>');
document.write('          <td align="right" valign="middle" bgcolor="#FFFFFF"><table width="100%" cellspacing="0" cellpadding="0"><tr> <td width="373" valign="top"><table width="360" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE">');
document.write('            <tr>');
document.write('              <td width="95" valign="middle"><img src="/images/customer/chi/top_club_logo09.gif" width="95" height="45" /></td>');
document.write('              <td valign="middle">');
document.write('                <table width="100%" border="0" cellspacing="0" cellpadding="2" align=middle valign="middle">');
document.write('                <tr><td><span class="clubtxt">入港鐵友禮會<br>樂趣無盡遊歷無窮  <a href="http://www.mtr.com.hk/mtrclub/index.php?lang=chi" >立即登入!</a></span></td>');
document.write('              </tr></table></td>');
document.write('              </tr>');
document.write('            </table>');
document.write('          </td><td valign="top"><table width="185" cellspacing="0" cellpadding="0"> <tr> <td width="10" align="left"><img src="/images/customer/chi/top_search_l.gif" width="10" height="41" /></td> <td width="163" valign="top" background="/images/customer/chi/top_search_bg.jpg"><table width="100%" cellspacing="0" cellpadding="0"> <tr><td>');

document.write('            <form name="gs" method="GET" action="http://mwsgsa01.mtr.com.hk/search" style="display: inline;">');
document.write('            <table width="100%" cellspacing="0" cellpadding="0"><tr><td><img src="/images/customer/chi/top_search_title.gif" width="40" height="25" /></td><td>');
document.write('            <input type="hidden" name="site" value="default_collection">');
document.write('            <input type="hidden" name="output" value="xml_no_dtd">');
document.write('            <input type="hidden" name="client" value="mtr_chi">');
document.write('            <input type="hidden" name="proxystylesheet" value="mtr_chi">');
document.write('            <input type="hidden" name="proxyreload" value="1">');
document.write('            <input type="hidden" name="ie" value="big5">');
document.write('            <input type="hidden" name="oe" value="UTF-8">');
document.write('            <input type="text" name="q" size="32" maxlength="256" value="" class="Input_100">');
document.write('            </td><td><input type="image" id="gsSubmitBtn" onClick="this.form.submit(); return false;" src="/images/customer/chi/btn_arrow_yellow.gif"></td></tr></table>');
document.write('            </form>');

document.write('          </td></tr><tr><td align="right"><a class="footcontent" href="http://mwsgsa01.mtr.com.hk/search?site=default_collection&output=xml_no_dtd&client=mtr_chi&proxystylesheet=mtr_chi&proxyreload=1&oe=UTF-8&proxycustom=%3CADVANCED/%3E">進階搜尋</a></td></tr></table></td><td width="10" align="right"><img src="/images/customer/chi/top_search_r.gif" width="10" height="41" /></td></tr> <tr><td><img src="/images/customer/chi/top_search_l_bot.gif" width="10" height="4" /></td> <td><img src="/images/customer/chi/top_search_bot.gif" /></td> <td><img src="/images/customer/chi/top_search_r_bot.gif" width="10" height="4" /></td> </tr></table></td> </tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0">');

document.write('          <tr>');
document.write('            <td align="left"><img src="/images/customer/chi/top_line_left.gif" width="5" height="29" /></td>');
document.write('            <td align="right"><table border="0" cellspacing="0" cellpadding="0">');
document.write('              <tr>');
document.write('                <td align="right" nowrap="nowrap"><img src="/images/customer/chi/top_nav_txtsize.gif" width="59" height="28" border="0" /><a href="javascript:changeFontTitle(\'default\');" title="Text Size: Default Size"><img src="/images/customer/chi/btn_txt_s.gif" width="22" border="0" height="28" ID="defaultimg" name="defaultimg"/></a><img src="/images/corporate/chi/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'middle\');" title="Text Size: Larger"><image src="/images/customer/chi/btn_txt_m.gif" width="22" border="0" height="28"  ID="middleimg" name="middleimg"/></a><img src="/images/corporate/chi/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'large\');" title="Text Size: Largest"><image src="/images/customer/chi/btn_txt_l.gif" width="22" border="0" height="28" ID="largeimg" name="largeimg"/></a></td>');
document.write('                <td align="right"><img src="/images/customer/chi/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="/chi/hotline/cust_contact_us.html" class="topcontent2">聯絡我們</a></td>');
document.write('                <td align="right"><img src="/images/customer/chi/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="/chi/sitemap/cust_index.html" class="topcontent2">網站指南</a></td>');
document.write('                <td align="right"><img src="/images/customer/chi/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="javascript:switchsite()" class="topcontent2">純文字版本</a></td>');
document.write('                <td align="right"><img src="/images/customer/chi/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="javascript:switchlang()" class="topcontent2">ENG</a></td>');
document.write('                <td align="right"><img src="/images/customer/chi/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right"><a href="/chi/homepage/corp_index.html"><img src="/images/customer/chi/top_but_gocorp.gif" name="topImage101" width="83" height="29" border="0" id="topImage101" /></a></td>');
document.write('              </tr>');
document.write('            </table></td>');
document.write('          </tr>');
document.write('        </table></td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td width="10" valign="top">&nbsp;</td>');
document.write('  </tr>');
document.write('</table>');
document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="192" valign="top">');

         
if (pagetype == "home") {
  document.write('    <img src="/images/customer/chi/space.gif" width="192" height="130" /><br />');
}
else {
  document.write('    <img src="/images/customer/chi/left_customersite.jpg" width="192" height="31" /><br />');
  document.write('    <img src="/images/customer/eng/leftnav_top.gif" width="192" height="12" /><br />');
}        

// navigation images
document.write('      <a href='+url0+'><img src="/images/customer/chi/nav_01.gif" width="192" height="23" name=menu0 id=menu0 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url1+'><img src="/images/customer/chi/nav_02.gif" width="192" height="23" name=menu1 id=menu1 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url2+'><img src="/images/customer/chi/nav_03.gif" width="192" height="23" name=menu2 id=menu2 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url3+'><img src="/images/customer/chi/nav_04.gif" width="192" height="23" name=menu3 id=menu3 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url4+'><img src="/images/customer/chi/nav_05.gif" width="192" height="23" name=menu4 id=menu4 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url5+'><img src="/images/customer/chi/nav_06.gif" width="192" height="23" name=menu5 id=menu5 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url6+'><img src="/images/customer/chi/nav_07.gif" width="192" height="23" name=menu6 id=menu6 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url7+'><img src="/images/customer/chi/nav_08.gif" width="192" height="23" name=menu7 id=menu7 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url8+'><img src="/images/customer/chi/nav_09.gif" width="192" height="23" name=menu8 id=menu8 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url9+'><img src="/images/customer/chi/nav_10.gif" width="192" height="23" name=menu9 id=menu9 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
document.write('      <a href='+url10+'><img src="/images/customer/chi/nav_11.gif" width="192" height="23" name=menu10 id=menu10 onMouseOver="if(typeof loaded != \'undefined\'&&loaded==true)showMenu(event)" onMouseOut="if(typeof loaded != \'undefined\'&&loaded==true)hideMenu(event)" border=0></a><br>');
// end of navigation images

document.write('      <img src="/images/customer/chi/leftnav_bot_chi.jpg" width="192" height="90" /></td>');
document.write('    <td width="768" valign="top">');

if (pagetype == "home") {

}
else {
  document.write('<table cellspacing="0" cellpadding="0" border="0">');
  document.write('  <tr>');
  document.write('    <td width="768" valign="top"><table width="768" height="27" border="0" cellpadding="0" cellspacing="0">');
  document.write('      <tr>');
  document.write('        <td width="7">&nbsp;</td>');
  document.write('        <td width="754" valign="top"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">');
  document.write('          <tr>');
  document.write('            <td><img src="/images/customer/chi/txtav_bullet.jpg" width="18" height="7" />');
  document.write('              <script>tree(pageid);</script></td>');
  document.write('          </tr>');
  document.write('        </table></td>');
  document.write('        <td width="7">&nbsp;</td>');
  document.write('      </tr>');
  document.write('    </table></td>');
  document.write('    <td width="10" valign="top">&nbsp;</td>');
  document.write('  </tr>');
  document.write('</table>');
}

document.write('<script language="JavaScript" src="/script/customer/chi/langfunctions.js" type="text/javascript"></script>');




function genfooter() {
  document.write('    </td>');
  document.write('  </tr>');
  document.write('</table>');
  document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
  document.write('  <tr>');
  document.write('    <td>&nbsp;</td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td height="1" bgcolor="#AEAEAE"><img src="/images/customer/chi/space.gif" width="10" height="1" /></td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">');
  document.write('      <tr>');
  document.write('        <td align="left" nowrap="nowrap"><a href="javascript:MM_openBrWindow(\'/chi/legal/cust_notice.html\',\'\',\'scrollbars=yes,width=425,height=600\');" class="footcontent">重要告示</a><img src="/images/customer/chi/space.gif" width="10" height="15" /><a href="javascript:MM_openBrWindow(\'/chi/legal/cust_terms_of_use.html\',\'\',\'scrollbars=yes,width=425,height=600\');" class="footcontent">使用條款</a><img src="/images/customer/chi/space.gif" width="10" height="10" /><a href="javascript:MM_openBrWindow(\'/chi/legal/cust_privacy.html\',\'\',\'scrollbars=yes,width=425,height=600\');"class="footcontent">私隱政策</a><img src="/images/customer/chi/space.gif" width="10" height="10" /><a href="javascript:MM_openBrWindow(\'/chi/legal/images/mtr_by_law.pdf\',\'\',\'scrollbars=yes,resizable=yes,width=425,height=600\');"class="footcontent">香港鐵路附例</a>  </td>');
  document.write('        <td align="right"><span class="footcontent">&copy; 版權所有，不得轉載。香港鐵路有限公司2009。</span></td>');
  document.write('      </tr>');
  document.write('    </table></td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td align="center">&nbsp;</td>');
  document.write('  </tr>');
  document.write('</table>');
  document.write('<script language="JavaScript" src="/script/customer/chi/mtr.js" type="text/javascript"></script>');
}
