document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="192" valign="top"><a name="top" id="top"  href="/index.php"><img src="/images/corporate/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 align="right" valign="top"><img src="/images/corporate/chi/top_nav_txtsize.gif" width="59" height="28" border="0" /><a href="javascript:changeFontTitle(\'default\');" title="Text Size: Default Size"><img src="/images/corporate/chi/btn_txt_s.gif" width="22" height="28" border="0" id="defaultimg"/></a><img src="/images/corporate/chi/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'middle\');" title="Text Size: Larger"><img src="/images/corporate/chi/btn_txt_m.gif" width="22" height="28" border="0" id="middleimg"/></a><img src="/images/corporate/chi/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'large\');" title="Text Size: Largest"><img src="/images/corporate/chi/btn_txt_l.gif" width="22" height="28" border="0" id="largeimg"/></a><img src="/images/corporate/chi/space.gif" width="6" height="10" /><a href="/chi/hotline/corp_contact_us.html"></a><img src="/images/corporate/chi/top_nav_line.gif" width="9" height="28" /><a href="/chi/hotline/corp_contact_us.html"><img src="/images/corporate/chi/top_nav_contactus.gif" width="59" height="28" border="0" /></a><img src="/images/corporate/chi/top_nav_line.gif" width="9" height="28" /><a href="/chi/sitemap/corp_index.html"><img src="/images/corporate/chi/top_nav_sitemap.gif" width="59" height="28" border="0" /></a><img src="/images/corporate/chi/top_nav_line.gif" width="9" height="28" /><a href="javascript:switchsite()"><img src="/images/corporate/chi/top_nav_text.gif" width="69" height="28" border="0" /></a><img src="/images/corporate/chi/top_nav_line.gif" width="9" height="28" /><a href="javascript:switchlang()"><img src="/images/corporate/chi/top_nav_chi.gif" width="50" height="28" border="0" /></a><img src="/images/corporate/chi/space.gif" width="2" height="10" /><a href="/chi/homepage/cust_index.html"><img src="/images/corporate/chi/top_nav_customer.gif" width="113" height="28" border="0" /></a><img src="/images/corporate/eng/space.gif" width="5" height="10" /></td><td width="185" align="right" valign="top"><table width="185" cellspacing="0" cellpadding="0"><tr><td width="10" align="left"><img src="/images/corporate/chi/top_search_l.gif" width="10" height="41" /></td> <td width="163" valign="top" background="/images/corporate/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 width="24%"><img src="/images/corporate/chi/top_search_title.gif" width="40" height="25"/></td><td width="59%">');
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 width="17%"><input type="image" id="gsSubmitBtn" onClick="this.form.submit(); return false;" src="/images/corporate/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/corporate/chi/top_search_r.gif" width="10" height="41" /></td></tr><tr><td><img src="/images/corporate/chi/top_search_l_bot.gif" width="10" height="4" /></td><td><img src="/images/corporate/chi/top_search_bot.gif" /></td><td><img src="/images/corporate/chi/top_search_r_bot.gif" width="10" height="4" /></td></tr></table></td>');
document.write('        </tr>');
document.write('      </table>');
document.write('    </td>');
document.write('    <td width="10" valign="top">&nbsp;</td>');
document.write('  </tr>');
document.write('</table>');

if (pagetype == "home") {

}
else {
  document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
  document.write('  <tr>');
  document.write('    <td width="192"><img src="/images/corporate/chi/left_customersite.jpg" width="192" height="27" /></td>');
  document.write('    <td><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="middle"><table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">');
  document.write('            <tr>');
  document.write('              <td valign="bottom"><img src="/images/corporate/chi/txtav_bullet.jpg" width="18" height="7" /><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('  </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/corporate/chi/space.gif" width="192" height="130" /><br>');
}
else {
  document.write('    <img src="/images/corporate/chi/left_customersite2.jpg" width="192" height="4" /><br>');
}

// navigation images
document.write('      <a href="'+url0+'"><img src="/images/corporate/chi/nav_c01.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/corporate/chi/nav_c02.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/corporate/chi/nav_c03.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/corporate/chi/nav_c04.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/corporate/chi/nav_c05.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/corporate/chi/nav_c06.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/corporate/chi/nav_c07.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/corporate/chi/nav_c08.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/corporate/chi/nav_c09.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/corporate/chi/nav_c10.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/corporate/chi/nav_c11.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> ');
document.write('      <a href="'+url11+'"><img src="/images/corporate/chi/nav_c12.gif" width="192" height="23" name=menu11 id=menu11 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="'+url12+'"><img src="/images/corporate/chi/nav_c13.gif" width="192" height="23" name=menu12 id=menu12 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/corporate/chi/leftnav_bot_eng.jpg" width="192" height="90" /></td>');
document.write('    <td width="768" valign="top">');
         
document.write('<script language="JavaScript" src="/script/corporate/chi/mtr.js" type="text/javascript"></script>');




function genfooter() {
  document.write('    </td>');
  document.write('    <td width="10" valign="top">');
  if (pagetype == "home") {      
    document.write('    <img src="/images/corporate/chi/title_right_blue_home.jpg" width="10" height="177" />');
  }
  else{
    document.write('    <img src="/images/corporate/chi/title_right_blue.jpg" width="10" height="136" />');
  }

  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/corp_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/corp_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/corp_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>');
}
