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/eng/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/eng/home_forum_e.gif" border="0" /></a></td>');
document.write('                <td><a href="/jplanner/eng/planner_index.php"><img src="/images/customer/eng/home_jp_e.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/eng/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"><tr><td>');
document.write('                  <span class="clubtxt">Become an MTR Club member<br>for more fun and more adventures!<br><a class="clubtxt" href="http://www.mtr.com.hk/mtrclub/index.php?lang=eng">Sign-in Now!</a></span>');
document.write('                </td></tr></table>');
document.write('              </td></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/eng/top_search_l.gif" width="10" height="41" /></td><td width="163" valign="top" background="/images/customer/eng/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/eng/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_eng">');
document.write('            <input type="hidden" name="proxystylesheet" value="mtr_eng">');
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/eng/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_eng&proxystylesheet=mtr_eng&proxyreload=1&oe=UTF-8&proxycustom=%3CADVANCED/%3E">Advanced Search</a></td></tr></table></td><td width="10" align="right"><img src="/images/customer/eng/top_search_r.gif" width="10" height="41" /></td></tr><tr><td><img src="/images/customer/eng/top_search_l_bot.gif" width="10" height="4" /></td><td><img src="/images/customer/eng/top_search_bot.gif" /></td><td><img src="/images/customer/eng/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/eng/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">&nbsp;</td><td align="right" nowrap="nowrap"><img src="/images/customer/eng/top_nav_txtsize.gif" width="59" height="28" border="0" /><a href="javascript:changeFontTitle(\'default\');" title="Text Size: Default Size"><img src="/images/customer/eng/btn_txt_s.gif" width="22" height="28" border="0" id="defaultimg"/></a><img src="/images/corporate/eng/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'middle\');" title="Text Size: Larger"><img src="/images/customer/eng/btn_txt_m.gif" width="22" height="28" border="0" id="middleimg"/></a><img src="/images/corporate/eng/space.gif" width="3" height="10" /><a href="javascript:changeFontTitle(\'large\');" title="Text Size: Largest"><img src="/images/customer/eng/btn_txt_l.gif" width="22" height="28" border="0" id="largeimg"/></a><a href="/eng/hotline/corp_contact_us.html"></a></td>');
document.write('                <td align="right"><img src="/images/customer/eng/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="/eng/hotline/cust_contact_us.html" class="topcontent2">Contact Us</a></td>');
document.write('                <td align="right"><img src="/images/customer/eng/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="/eng/sitemap/cust_index.html" class="topcontent2">Site Map</a></td>');
document.write('                <td align="right"><img src="/images/customer/eng/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="javascript:switchsite()" class="topcontent2">Text-only</a></td>');
document.write('                <td align="right"><img src="/images/customer/eng/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right" nowrap="nowrap"><a href="javascript:switchlang()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topchi\',\'abc\',\'/images/customer/eng/top_chi_on.gif\',1)"><img src="/images/customer/eng/top_chi.gif" name="topchi" width="18" height="13" border="0" id="topchi" /></a></td>');
document.write('                <td align="right"><img src="/images/customer/eng/top_line_mid.gif" width="23" height="29" /></td>');
document.write('                <td align="right"><a href="/eng/homepage/corp_index.html"><img src="/images/customer/eng/top_but_gocorp.gif" name="topImage101" width="100" 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/eng/space.gif" width="192" height="130" /><br />');
}
else {
  document.write('    <img src="/images/customer/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/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/eng/leftnav_bot_eng.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/eng/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/eng/langfunctions.js" type="text/javascript"></script>');
// for eng version only
document.write('<script type="text/javascript"> ');
document.write('<!-- ')
document.write('function MM_swapImgRestore() { //v3.0');
document.write('  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;');
document.write('} ');
document.write('//-->')
document.write('</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/eng/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(\'/eng/legal/cust_notice.html\',\'\',\'scrollbars=yes,width=425,height=600\');" class="footcontent">Important Notice</a><img src="/images/customer/eng/space.gif" width="10" height="15" /><a href="javascript:MM_openBrWindow(\'/eng/legal/cust_terms_of_use.html\',\'\',\'scrollbars=yes,width=425,height=600\');" class="footcontent">Terms of Use</a><img src="/images/customer/eng/space.gif" width="10" height="10" /><a href="javascript:MM_openBrWindow(\'/eng/legal/cust_privacy.html\',\'\',\'scrollbars=yes,width=425,height=600\');"class="footcontent">Privacy Policy</a><img src="/images/customer/eng/space.gif" width="10" height="10" /><a href="javascript:MM_openBrWindow(\'/eng/legal/images/mtr_by_law.pdf\',\'\',\'scrollbars=yes,resizable=yes,width=425,height=600\');"class="footcontent">MTR By-Laws</a>  </td>');
  document.write('        <td align="right"><span class="footcontent">Copyright &copy; 2009 MTR Corporation Limited</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/eng/mtr.js" type="text/javascript"></script>');
}