/*#### メニューの表示 / 中文繁體 ####*/

/*
 * @param string pathA, not in use, forgotten why it is here
 * @param string pathB, path for image and link
 *
 */
function menu_show(categ,num,num2,pathA,pathB) {
	pathA = (typeof pathA == 'undefined') ? '../' : pathA;
	pathB = (typeof pathB == 'undefined') ? '../../' : pathB;
//####Display Menu

	//document.write('	<a href="http://www.konami-asia.com/">' + '<img src="'+ pathA + 'img/konami_logo100_bg4.gif" alt="KONAMI ASIA" style="float:left;border:none;"></a><br>	');
	document.write('	<a href="http://www.konami-asia.com/">' + '<img src="'+ pathB + 'cmn/img/konami_logo100_bg4.gif" alt="KONAMI ASIA" style="float:left;border:none;"></a><br>	');
	//document.write('	<a href="'+ pathB + 'cn-t/index.html"><img src="' + pathB + 'cn-t/img/logo.gif" alt="遊戯王Official Card Game Duel Monsters" border=0></a>	');
	document.write('	<a href="'+ pathB + 'cn-t/index.html"><img src="' + pathB + 'cmn/img/logo.gif" alt="遊戯王Official Card Game Duel Monsters" border=0></a>	');
	//alert('	<a href="'+ pathB + 'cn-t/index.html"><img src="../../../cmn/img/logo.gif" alt="遊戯王Official Card Game Duel Monsters" border=0></a>	');
	
	/* promotion menu */
	document.write('	<div id="menu_promo">	');
	document.write('		<a href="' + pathB + 'promotion/?lang=cn-t" class="main_menu"><span>Promotion News</span></a>	');
	document.write('		<div id="promo_sub" class="sub" style="display:none;">	');
	document.write('			<a href="' + pathB + 'promotion/duelist_point/?lang=cn-t" class="sb1" id="promo_s_1"><span>遊戲王DP積分計劃</span></a>');
	document.write('			<a href="' + pathB + 'promotion/duelist_point/redeem_process.php?lang=cn-t" class="sb2" id="promo_s_2"><span>遊戲王DP積分換領流程</span></a>');
	document.write('			<a href="' + pathB + 'promotion/duelist_point/redeem.php" class="sb3" id="promo_s_3"><span>換領DP積分</span></a>');	
	document.write('		</div>	');
	document.write('	</div>	');//end of menu_promo
	
	document.write('	<div id="menu_lineup">	');
	document.write('		<a href="' + pathB + 'cn-t/lineup/index.html" class="main_menu"><span>產品目錄</span></a>	');
	document.write('		<div id="lineup_sub" class="sub" style="display:none;">	');
	document.write('			<a href="' + pathB + 'cn-t/lineup/index.html" class="sb1" id="lineup_s_1"><span>最新產品</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/lineup/list.html" class="sb2" id="lineup_s_2"><span>產品種類</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/lineup/item.html" class="sb3" id="lineup_s_3"><span>對戰用品</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/lineup/item.html#prtc" class="sb4" id="lineup_s_4"><span>卡套</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/lineup/item.html#file" class="sb5" id="lineup_s_5"><span>卡簿、卡盒</span></a>	');
	document.write('		</div>	');
	document.write('	</div>	');
	document.write('	<div id="menu_howto">	');
	document.write('		<a href="' + pathB + 'cn-t/howto/index.html" class="main_menu"><span>遊戲規則</span></a>');
	document.write('		<div id="howto_sub" class="sub" style="display:none;">	');
	document.write('			<a href="' + pathB + 'cn-t/howto/movie.html" class="sb8" id="howto_s_8"><span>基本規則介紹短片</span></a>	');	
	document.write('			<a href="' + pathB + 'cn-t/howto/index.html" class="sb1" id="howto_s_1"><span>閱覽基本規則手冊</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_00.html" class="sb2" id="howto_s_2"><span>甚麼是遊戲王5D\'s OCG</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_01.html" class="sb3" id="howto_s_3"><span>第１章：對戰的準備</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_02.html" class="sb4" id="howto_s_4"><span>第２章：卡牌種類</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_03.html" class="sb5" id="howto_s_5"><span>第３章：遊戲的進行</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_04.html" class="sb6" id="howto_s_6"><span>第４章：戰鬥與連鎖</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/howto/rule_book_05.html" class="sb7" id="howto_s_7"><span>第５章：其它規則</span></a>	');
	document.write('		</div>	');
	document.write('	</div>	');
	
	document.write('	<div id="menu_event">	');
	document.write('		<a href="' + pathB + 'cn-t/event/index.html" class="main_menu"><span>比賽・大會</span></a>	');
	document.write('		<div id="event_sub" class="sub" style="display:none;">	');
	//document.write('			<a href="' + pathB + 'cn-t/event/world_championship.html" class="sb1" id="event_s_1"><span>World Cammpionship</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/event/index.html" class="sb2" id="event_s_2"><span>公認店排名賽</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/index.html" class="sb3" id="event_s_3"><span>公認店比賽時間表</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/index.html" class="sb4" id="event_s_4"><span>公認店比賽排名</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/dk_rule.html" class="sb5" id="event_s_5"><span>公認大会規定</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/dk_penal.html" class="sb6" id="event_s_6"><span>大会罰則規定</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/dk_english.html" class="sb7" id="event_s_7"><span>英語版使用規定</span></a>');
	//未整好　document.write('			<a href="' + pathB + 'cn-t/event/dk_english.html#jp_us" class="sb8" id="event_s_8"><span>日本語版・英語版カード対応表</span></a>	');
	document.write('			<a href="' + pathB + 'cn-t/event/dk_forbidden.html" class="sb9" id="event_s_9"><span>禁止及限制卡牌目錄</span></a>');
	document.write('			<a href="' + pathB + 'cn-t/event/dk_duelist_id.html" class="sb10" id="event_s_10"><span>關於Duelist ID</span></a>');
	document.write('			<a href="' + pathB + 'event/dk_punishment.php?lang=cn-t" class="sb11" id="event_s_11"><span>懲罰告示</span></a>');
	//document.write('			<a href="../../cn-t/event/rule_class.html" class="sb11" id="event_s_11"><span>ルール教室・トレーニング</span></a>	');
	//document.write('			<a href="../../cn-t/event/shop_tournament.html" class="sb12" id="event_s_12"><span>遊戯王ＯＣＧショップトーナメント</span></a>	');
	//document.write('			<a href="' + pathB + 'cn-t/event/zenkoku2008.html" class="sb13" id="event_s_13"><span>全国大会地区代表決定戦</span></a>	');
	document.write('		</div>	');
	document.write('	</div>	');
	
	document.write('	<div id="menu_list"><a href="' + pathB + 'cn-t/list/index.html" class="main_menu"><span>卡牌目錄</span></a></div>	');
	document.write('	<div id="menu_faq"><a href="' + pathB + 'cn-t/faq/index.html" class="main_menu"><span>ＦＡＱ及其它</span></a></div>	');
	document.write('	<div id="menu_forum"><a href="' + pathB + 'forum/" class="main_menu"><span>遊戲王討論區</span></a></div>	');
	document.write('	<div id="menu_anime"><a href="' + pathB + 'anime/?lang=cn-t" class="main_menu"><span>遊戲王動畫介紹</span></a></div>	');	
	document.write('	<div id="menu_zine"><a href="' + pathB + 'cn-t/magazine/index.html" class="main_menu"><span>遊戲王網上雜誌</span></a></div>	');	
	/*document.write('	<div id="menu_movie"><a href="../../cn-t/movie/index.html" class="main_menu"><span>ムービー</span></a></div>	');
	document.write('	<div id="menu_link" style="padding-bottom:3px;"><a href="../../cn-t/link/index.html" class="main_menu"><span>リンク</span></a></div>	');*/
		
	
	document.write('	<img src="' + pathB + 'cmn/styles/img/menu_end.gif">	');

//####必要に応じてサブメニューを表示する
	if(categ=="howto"||categ=="event"||categ=="lineup"||categ=="promo"){
		document.getElementById(categ + "_sub").style.display = "block";
		/*document.getElementById(categ + "_s_" + num).innerHTML = '<b class="sb' +num +'"><span>　</span></b>';
		seems not in use*/
		if(num2==undefined){}//alert("いいい");}
			else{
			//document.getElementById(categ + "_s_" + num2).innerHTML = '<b class="sb' +num2 +'"><span>　</span></b>';
			}
		}
	}
	
/*
 * @param string pathB, path for image and link
 *
 */
function footer(pathB) {
	//alert("footer");
	pathB = (typeof pathB == 'undefined') ? '../../' : pathB;	
	document.write('	<div id="page_up">	');
	document.write('	<img src="'+ pathB + 'cmn/styles/img/foot_line.gif" alt="">	');
	document.write('	<a href="#" onClick="backToTop(); return false"><span>PAGE UP</span></a>	');
	document.write('	</div>	');
	document.write('	<div id="copy"><div>© 1996 KAZUKI TAKAHASHI     © 2011 NAS ・ TV TOKYO</div>	');
	document.write('	© ' + current_year + ' Konami Digital Entertainment   KONAMI is a registrerd trademark of KONAMI CORPRATION.<br>	');
	document.write('	本網站中所介紹的所有資料包括但不局限於所有畫像、圖片和文字資料以及其它資料等未經授權，不得轉載及使用。<br><br>	');
	document.write('	</div>	');
}	
