//***********************
// Header
//***********************

function WriteHeaderEn( ja_page, to_top, to_menu ) {
// ja_page   : IN  : Japanese Page URL
// to_top    : IN  : Path to top level lasted with "/"(Ex.:"../")
// to_menu   : IN  : Path to menu level lasted with "/"(Ex.:"../")
menu_page  = to_menu + "indexe.htm"		// English menu page URL
top_page   = to_top  + "indexe.htm";	// English top page URL
bbs_page   = "http://www2k.biglobe.ne.jp/~t_muto/private/bbs/jump_en.htm";	// English BBS page URL
gif_folder = to_top  + "gif/";			// TOP gif folder
gif_local  = to_menu + "gif/";			// LOCAL gif folder
document.write(
'<div class="PageHeader">',
'<table width="100%" border="0" cellpadding="0" cellspacing="0">',
'<tr>',
'	<td colspan="5"><img src="' + gif_folder + 'transparent.gif" width="1" height="5" border="0" alt=""></td>',
'</tr>',
'<tr>',
'	<td><img src="' + gif_folder + 'transparent.gif" width="5" height="1" border="0" alt=""></td>',
'	<td>',
'	<a href="' + menu_page + '">',
'	<img src="' + gif_local + 'aptitle.gif" width="160" height="79" border="0" alt="APOLLO MANIACS" align="left"></a>',
'	</td>',
'	<td>',
'	<img src="' + gif_local + 'aplogo.gif" width="400" height="55" alt="APOLLO MANIACS">',
'	</td>',
'	<td align="right">',
'	<img src="qrcode.gif" width="82" height="82" alt="ApolloManiacs" align="right">'
);
if( ja_page != "NO" ) {
document.write(
'	<span class="Clickable">',
'	<a href="' + ja_page + '">',
'	<img  name="bt_japanese"',
'		onMouseOut="MM_swapImgRestore()"',
'		onMouseOver="MM_swapImage(\'document.bt_japanese\',\'document.bt_japanese\',\'' + gif_folder + 'bt_japanese2.gif\');',
'		MM_displayStatusMsg(\'to Japanese Page\');return document.MM_returnValue"',
'		src="' + gif_folder + 'bt_japanese.gif" width="120" height="21" border="0" alt="to Japanese Page"></a>',
'	</span>',
'	<br/>'
);
}
document.write(
'	<span class="Clickable">',
'	<a href="' + menu_page + '">',
'	<img  name="bt_toMenu"',
'		onMouseOut="MM_swapImgRestore()"',
'		onMouseOver="MM_swapImage(\'document.bt_toMenu\',\'document.bt_toMenu\',\'' + gif_folder + 'bt_toMenu2.gif\');MM_displayStatusMsg(\'to Menu Page\');return document.MM_returnValue"',
'		src="' + gif_folder + 'bt_toMenu.gif" width="120" height="21" border="0" alt="to Menu Page"></a>',
'	</span>',
'	<br/>',
'	<span class="Clickable">',
'	<a href="' + top_page + '">',
'	<img  name="bt_toTOP"',
'		onMouseOut="MM_swapImgRestore()"',
'		onMouseOver="MM_swapImage(\'document.bt_toTOP\',\'document.bt_toTOP\',\'' + gif_folder + 'bt_toTOP2.gif\');MM_displayStatusMsg(\'to Top Page\');return document.MM_returnValue"',
'		src="' + gif_folder + 'bt_toTOP.gif" width="120" height="21" border="0" alt="to Top Page"></a>',
'	</span>',
'	<br/>',
'	</td>',
'	<td><img src="' + gif_folder + 'transparent.gif" width="10" height="1" border="0" alt=""></td>',
'</tr>',
'</table>',
'<!--==========================================================================-->',
'<table class="blackLine" cellpadding="0" cellspacing="0" border="0" width="100%">',
'<tr><td>',

'<table cellpadding="0" cellspacing="0" border="0" width="239">',
'<tr>',
'<td><img src="' + gif_folder + 'transparent.gif" width="100" height="1" border="0" alt=""></td>',
'<td>',
'	<a href="' + menu_page + '" onclick="return true;" onmouseout="FW_startTimeout();" onmouseover="window.FW_showMenu(window.fw_menu_0,116,102);">',
'	<img src="' + gif_folder + 'nav_menu_e.gif" width="42" height="18" alt="MAIN MENU" border="0">',
'	</a>',
'</td>',
'<td>',
'	<a href="' + bbs_page + '" onclick="return true;" onmouseout="FW_startTimeout();" onmouseover="window.FW_showMenu(window.fw_menu_1,160,102);">',
'	<img src="' + gif_folder + 'nav_bbs_e.gif" width="29" height="18" alt="BBS" border="0">',
'	</a>',
'</td>',
'<td>',
'	<a href="' + top_page + '">',
'	<img src="' + gif_folder + 'nav_top_e.gif" width="32" height="18" alt="TOP page" border="0">',
'	</a>',
'</td>',
'</tr>',
'</table>',

'</td>',
'<td>',
'	<!-- right mergine area -->',
'</td>',
'</tr>',
'</table>',
'</div>'
);
}

//***********************
// Footer
//***********************

function WriteFooterEn( to_top, to_menu ) {
// to_top    : IN  : Path to top level lasted with "/"(Ex.:"../")
// to_menu   : IN  : Path to menu level lasted with "/"(Ex.:"../")
document.write(
'<div align="center" class="footer">',
'<table cellpadding="4" cellspacing="2" border="0" width="85%">',
'<tr><td align="center" class="footer">',
'	 | <a href="' + to_menu + 'indexe.htm">MENU</a>',
'	 | <a href="' + to_menu + 'spacecrafte.htm">Apollo Spacecraft</a>',
'	 | <a href="' + to_menu + 'saturne.htm">Saturn V Booster</a>',
'	 | <a href="' + to_menu + 'saturn1be.htm">Saturn IB Booster</a>',
'	 | <a href="' + to_menu + 'lrve.htm">Lunar Roving Vehicle</a>',
'	 | <a href="' + to_menu + 'spacesuite.htm">Apollo Space Suit</a>',
'	 | <a href="' + to_menu + 'flight11e.htm">Flight of APOLLO11</a>',
'	 | <a href="' + to_menu + 'locationse.htm">Apollo Produntions & Locations</a>',
'	 | <a href="' + to_menu + 'chronoe.htm">Apollo Chronological</a>',
'	 | <a href="' + to_menu + 'astronautse.htm">Apollo astronauts</a>',
'	 | <a href="' + to_menu + 'cge.htm">Apollo CG</a>',
'	 | <a href="' + to_menu + 'booke.htm">Apollo Books & Videos</a>',
'	 | <a href="' + to_menu + 'modele.htm">Apollo scale models</a>',
'	 | <a href="' + to_menu + 'museumse.htm">Apollo in Museum</a>',
'	 | <a href="' + to_menu + 'aplinke.htm">Apollo Web sites</a>',
'	 | <a href="' + to_menu + 'apshope.htm">Gift shop</a>',
'	 | <a href="http://www2k.biglobe.ne.jp/~t_muto/private/bbs/jump_en.htm">Guest book & BBS</a>',
'	 | <a href="http://www2k.biglobe.ne.jp/~t_muto/private/bbs/jump_en.htm">contact us</a>',
'	 | <a href="' + to_top + 'indexe.htm">TOP</a>',
'	 |',
'	<br/>',
'	&copy; Apollo Maniacs 1996 - 2009 <a href="http://www2k.biglobe.ne.jp/~t_muto/private/bbs/jump_en.htm">All rights reserved</a>',
'	</td>',
'</tr>',
'</table>',
'</div>'
);
}

