/*#### メニューの表示 / English ####*/

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 + 'en/index.html"><img src="' + pathB + 'en/img/logo.gif" alt="遊戯王Official Card Game Duel Monsters" border=0></a>	');
	document.write('	<a href="'+ pathB + 'en/index.html"><img src="' + pathB + 'cmn/img/logo.gif" alt="Yu-Gi-Oh! Official Card Game Duel Monsters" border=0></a>	');
	//alert('	<a href="'+ pathB + 'en/index.html"><img src="../../../cmn/images/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/" 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=en" class="sb1" id="promo_s_1"><span>遊戲王DP積分計劃</span></a>');
	document.write('			<a href="' + pathB + 'promotion/duelist_point/redeem_process.php?lang=en" class="sb2" id="promo_s_2"><span>遊戲王DP積分換領流程</span></a>');
	document.write('			<a href="' + pathB + 'promotion/duelist_point/redeem.php?lang=en" 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 + 'en/lineup/index.html" class="main_menu"><span>Products</span></a>	');
	document.write('		<div id="lineup_sub" class="sub" style="display:none;">	');
	document.write('			<a href="' + pathB + 'en/lineup/index.html" class="sb1" id="lineup_s_1"><span>Latest Lineup</span></a>	');
	document.write('			<a href="' + pathB + 'en/lineup/list.html" class="sb2" id="lineup_s_2"><span>Product Type</span></a>	');
	document.write('			<a href="' + pathB + 'en/lineup/item.html" class="sb3" id="lineup_s_3"><span>Duelist Item</span></a>	');
	document.write('			<a href="' + pathB + 'en/lineup/item.html#prtc" class="sb4" id="lineup_s_4"><span>Card Protector</span></a>	');
	document.write('			<a href="' + pathB + 'en/lineup/item.html#file" class="sb5" id="lineup_s_5"><span>Card Album, Case</span></a>	');
	document.write('		</div>	');
	document.write('	</div>	');
	document.write('	<div id="menu_howto">	');
	document.write('		<a href="' + pathB + 'en/howto/index.html" class="main_menu"><span>Game Rules</span></a>	');
	document.write('		<div id="howto_sub" class="sub" style="display:none;">	');
	document.write('			<a href="' + pathB + 'en/howto/movie.html" class="sb8" id="howto_s_8"><span>Basic Rule Introduction Movie</span></a>	');	
	document.write('			<a href="' + pathB + 'en/howto/index.html" class="sb1" id="howto_s_1"><span>Online Rule Book</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_00.html" class="sb2" id="howto_s_2"><span>What is YGO 5D\'s OCG</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_01.html" class="sb3" id="howto_s_3"><span>Chapter 1: Preparation</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_02.html" class="sb4" id="howto_s_4"><span>chapter 2: About Cards</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_03.html" class="sb5" id="howto_s_5"><span>chapter 3: Proceed to Game</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_04.html" class="sb6" id="howto_s_6"><span>chapter 4: Duel & Chain</span></a>	');
	document.write('			<a href="' + pathB + 'en/howto/rule_book_05.html" class="sb7" id="howto_s_7"><span>chapter 5: Other Rules</span></a>	');
	document.write('		</div>	');
	document.write('	</div>	');
	document.write('	<div id="menu_event">	');
	document.write('		<a href="' + pathB + 'en/event/index.html" class="main_menu"><span>Events</span></a>');
	document.write('		<div id="event_sub" class="sub" style="display:none;">	');
	//document.write('			<a href="' + pathB + 'en/event/world_championship.html" class="sb1" id="event_s_1"><span>World Cammpionship</span></a>');
	document.write('			<a href="' + pathB + 'en/event/index.html" class="sb2" id="event_s_2"><span>Ranking Tournament</span></a>');
	//document.write('			<a href="../../en/event/dk_id.html" class="sb3" id="event_s_3"><span>デュエリストＩＤ</span></a>	');
	document.write('			<a href="' + pathB + 'en/event/index.html" class="sb3" id="event_s_3"><span>Schedule</span></a>');
	document.write('			<a href="' + pathB + 'en/event/index.html" class="sb4" id="event_s_4"><span>Ranking</span></a>');
	document.write('			<a href="' + pathB + 'en/event/dk_rule.html" class="sb5" id="event_s_5"><span>Official Rules & Regulations</span></a>');
	document.write('			<a href="' + pathB + 'en/event/dk_penal.html" class="sb6" id="event_s_6"><span>Penalty Regulations</span></a>');
	document.write('			<a href="' + pathB + 'en/event/dk_english.html" class="sb7" id="event_s_7"><span>About English Version Cards</span></a>');
	//document.write('			<a href="' + pathB + 'en/event/dk_english.html#jp_us" class="sb8" id="event_s_8"><span>日本語版・英語版カード対応表</span></a>	');
	document.write('			<a href="' + pathB + 'en/event/dk_forbidden.html" class="sb9" id="event_s_9"><span></span></a>');
	document.write('			<a href="' + pathB + 'en/event/dk_duelist_id.html" class="sb10" id="event_s_10"><span></span></a>');
	//document.write('			<a href="../../en/event/rule_class.html" class="sb11" id="event_s_11"><span>ルール教室・トレーニング</span></a>	');
	//document.write('			<a href="../../en/event/shop_tournament.html" class="sb12" id="event_s_12"><span>遊戯王ＯＣＧショップトーナメント</span></a>	');
	//document.write('			<a href="' + pathB + 'en/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 + 'en/list/index.html" class="main_menu"><span>Card List</span></a></div>');
	document.write('	<div id="menu_faq"><a href="' + pathB + 'en/faq/index.html" class="main_menu"><span>FAQ&Information</span></a></div>');
	document.write('	<div id="menu_forum"><a href="' + pathB + 'forum/" class="main_menu"><span>Yu-Gi-Oh! Forum</span></a></div>');
	document.write('	<div id="menu_anime"><a href="' + pathB + 'anime/?lang=en" class="main_menu"><span>About Yu-Gi-Oh! 5D\'s Story</span></a></div>');	
	/*document.write('	<div id="menu_movie"><a href="../../en/movie/index.html" class="main_menu"><span>ムービー</span></a></div>	');
	document.write('	<div id="menu_link" style="padding-bottom:3px;"><a href="../../en/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>';
			}
		}
	}

function footer(pathB) {
	pathB = (typeof pathB == 'undefined') ? '../../' : pathB;		
	document.write('	<div id="page_up">	');
	//document.write('	<img src="../styles/img/foot_line.gif" alt="">	');
	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('	The content inside this website including but not limited to text, images, design etc. is not allowed to use without authorization.<br><br>	');
	document.write('	</div>	');
}
