﻿function gen_main_menu(lang, lev) {
	var web_path;
	
	if (lev == 1) web_path = "";
	else if (lev == 2) web_path = "../";

	if (lang == 'tc') {
	/*
		document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
		document.write('<tr>');
		document.write('<td height="159" align="right" valign="top" background="'+web_path+'images/top_banner_bg01.jpg">');
		document.write('<form name="login_frm" action="'+web_path+'login.php" method="post" target="_self" onSubmit="return checkLoginFrm(this);">');
		document.write('<table width="200" border="0" cellspacing="1" cellpadding="1">');
		document.write('<tr>');
		document.write('<td width="61" align="right" valign="top" class="content" style="height: 5px">&nbsp;</td>');
		document.write('<td align="center" valign="top" class="content" style="height: 5px">&nbsp;</td>');
		document.write('<td valign="top" class="content" style="height: 5px">&nbsp;</td>');
		document.write('<td width="8" style="height: 5px">&nbsp;</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td align="right" valign="top" class="content">登入帳號</td>');
		document.write('<td width="6" align="center" valign="top" class="content">:</td>');
		document.write('<td width="72" valign="top" class="content">');
		document.write('<input name="login_email" type="text" class="genInput" size="17" />');
		document.write('</td>');
		document.write('<td width="8">&nbsp;</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td align="right" valign="top" class="content">密碼</td>');
		document.write('<td width="6" align="center" valign="top" class="content">:</td>');
		document.write('<td valign="top" class="content">');
		document.write('<input name="login_passwd" type="password" class="genInput" size="17" />');
		document.write('</td>');
		document.write('<td width="8">&nbsp;</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td colspan="3" align="right" valign="top" class="content">');
		document.write('<input name="login_type" type="radio" value="member" checked />一般 ');
		document.write('<input name="login_type" type="radio" value="shop" />店舖');
		document.write('</td>');
		document.write('<td width="8">&nbsp;</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td colspan="3" align="right" valign="top" class="content">');
		document.write('<a href="'+web_path+'forgetPassword.php" target="_self">忘記密碼</a> <input type="submit" class="button" value="登入" />');
		document.write('</td>');
		document.write('<td width="8">&nbsp;</td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('</form>');
		document.write('</td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="953" height="30">');
		document.write('<param name="movie" value="'+web_path+'include/top_banner0'+lev+'.swf" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed src="'+web_path+'include/top_banner0'+lev+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="953" height="30"></embed>');
		document.write('</object></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td class="topMenuBg01">&nbsp;</td>');
		document.write('</tr>');
		document.write('</table>');
		*/
		document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
		  document.write('<tr>');
		    document.write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainTable">');
		      document.write('<tr>');
		        document.write('<td width="309" rowspan="2" align="left" valign="top"><img src="'+web_path+'images/main_menu_logo01.jpg" width="309" height="157" /></td>');
		        document.write('<td width="438" rowspan="2" align="left" valign="top"><img src="'+web_path+'images/main_menu_pic01.jpg" width="438" height="157" /></td>');
		        document.write('<td width="204" align="right" valign="top"><form name="login_frm" action="login.php" method="post" target="_self">');
				  document.write('<table width="200" border="0" cellspacing="1" cellpadding="1">');
			      document.write('<tr>');
			        document.write('<td width="61" align="right" valign="top" class="content" style="height: 5px">&nbsp;</td>');
			        document.write('<td align="center" valign="top" class="content" style="height: 5px">&nbsp;</td>');
			        document.write('<td valign="top" class="content" style="height: 5px">&nbsp;</td>');
			        document.write('<td width="8" style="height: 5px">&nbsp;</td>');
			      document.write('</tr>');
			      document.write('<tr>');
			        document.write('<td align="right" valign="top" class="content">登入帳號</td>');
			        document.write('<td width="6" align="center" valign="top" class="content">:</td>');
			        document.write('<td width="72" valign="top" class="content">');
			          document.write('<input name="login_email" type="text" class="genInput" size="17" />');
			        document.write('</td>');
			        document.write('<td width="8">&nbsp;</td>');
			      document.write('</tr>');
			      document.write('<tr>');
			        document.write('<td align="right" valign="top" class="content">密碼</td>');
			        document.write('<td width="6" align="center" valign="top" class="content">:</td>');
			        document.write('<td valign="top" class="content">');
			          document.write('<input name="login_passwd" type="password" class="genInput" size="17" />');
			        document.write('</td>');
			        document.write('<td width="8">&nbsp;</td>');
			      document.write('</tr>');
			      document.write('<tr>');
			        document.write('<td colspan="3" align="right" valign="top" class="content">');
			          document.write('<input name="login_type" type="radio" value="member" checked="CHECKED" />一般 ');
			          document.write('<input name="login_type" type="radio" value="shop" />店舖');
			        document.write('</td>');
			        document.write('<td width="8">&nbsp;</td>');
			      document.write('</tr>');
			      document.write('<tr>');
			        document.write('<td colspan="3" align="right" valign="top" class="content">');
			          document.write('<a href="'+web_path+'forgetPassword.php" target="_self">忘記密碼</a> <input type="submit" class="button" value="登入" />');
			        document.write('</td>');
			        document.write('<td width="8">&nbsp;</td>');
			      document.write('</tr>');
			    document.write('</table>');
				document.write('</form></td>');
		      document.write('</tr>');
		      document.write('<tr>');
		        document.write('<td width="204" align="left" valign="top">&nbsp;</td>');
		      document.write('</tr>');
		    document.write('</table></td>');
		  document.write('</tr>');
		  document.write('<tr>');
		    document.write('<td bgcolor="#7B7B7B"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="953" height="30">');
		          document.write('<param name="movie" value="'+web_path+'include/top_banner0'+lev+'.swf" />');
		          document.write('<param name="quality" value="high" />');
		          document.write('<embed src="'+web_path+'include/top_banner0'+lev+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="953" height="30"></embed>');
		        document.write('</object></td>');
		  document.write('</tr>');
		  document.write('<tr>');
		        document.write('<td class="topMenuBg01">&nbsp;</td>');
		  document.write('</tr>');
		document.write('</table>');
	} else {
	
	}
}