var dir,dir_url,dir_title,sub_title,sub_name,sub_link,depth_name="",depth_link,sw=true;
function left_menu(top,sub,depth) {
	main_menu(top);
	// Ãâ·Â
	if (sw) {
		document.write ("<table height=\"210\" bgcolor=\"#93918D\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		if (top == 1) {
		document.write ("	<tr><td><img src=\"/images/motorcycle/menu/menu_top_0"+top+".gif\" width=\"160\" height=\"29\" border=\"0\"></td></tr>");
		} else {
		document.write ("	<tr><td><a href=\"/html"+dir+dir_url+"\"><img src=\"/images/motorcycle/menu/menu_top_0"+top+".gif\" width=\"160\" height=\"29\" border=\"0\"></a></td></tr>");
		}
		document.write ("	<tr><td height=\"14\"></td></tr>");
		//  2Depth ½ÃÀÛ
		if (top == 1) {
			for (i=0;i<7;i++){
				document.write ("	<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+sub_name[i]+".gif\" width=\"160\" height=\"21\" border=\"0\"></a></td></tr>");
			}
		} else {
			for (i=0;i<sub_name.length;i++){
				if (i == sub-1) {
					sub_menu(top,sub);
					if (depth_name != "") {
						document.write ("	<tr><td height=\"10\"></td></tr>");
						document.write ("	<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/line_02.gif\" width=\"140\" height=\"1\"></td></tr>");
						document.write ("	<tr><td height=\"6\"></td></tr>");
					}
						document.write ("	<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+sub_name[i]+"_on.gif\" width=\"160\" height=\"21\" border=\"0\"></a></td></tr>");
					if (depth_name != "") {
						document.write ("	<tr><td height=\"2\"></td></tr>");
						//  3Depth ½ÃÀÛ
						for (j=0;j<depth_name.length;j++) {
							if (i == sub-1 && j == depth-1) {
								document.write ("	<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/motorcycle/menu/"+depth_name[j]+"_on.gif\" width=\"160\" height=\"17\" border=\"0\"></a></td></tr>");
							} else {
								document.write ("	<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/motorcycle/menu/"+depth_name[j]+".gif\" width=\"160\" height=\"17\" border=\"0\"></a></td></tr>");
							}
						}
						//  3Depth ³¡
						document.write ("	<tr><td height=\"8\"></td></tr>");
						document.write ("	<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/line_02.gif\" width=\"140\" height=\"1\"></td></tr>");
						document.write ("	<tr><td height=\"11\"></td></tr>");
					}
				} else {
					document.write ("	<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+sub_name[i]+".gif\" width=\"160\" height=\"21\" border=\"0\"></a></td></tr>");
				}
			}
		}
		//  2Depth ³¡
		document.write ("	<tr><td height=\"25\"></td></tr>");
		document.write ("	<tr><td height=\"100%\"></td></tr>");
		document.write ("</table>");
		if (top == 1) {
			document.write ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
			document.write ("	<tr><td height=\"4\"></td></tr>");
			document.write ("	<tr><td bgcolor=\"#B6B5B0\">");
			document.write ("		<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
			document.write ("			<tr><td height=\"10\"></td></tr>");
			//  2Depth ½ÃÀÛ
			for (i=7;i<sub_name.length;i++){
				if (i == sub-1) {
					document.write ("			<tr><td height=\"4\"></td></tr>");
					document.write ("			<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/line_01.gif\" width=\"140\" height=\"1\"></td></tr>");
					document.write ("			<tr><td height=\"6\"></td></tr>");
					document.write ("			<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+sub_name[i]+"_on.gif\" width=\"160\" height=\"18\" border=\"0\"></a></td></tr>");
					document.write ("			<tr><td height=\"6\"></td></tr>");
					//  3Depth ½ÃÀÛ
					sub_menu(top,sub);
					if (depth_name != "") {
						for (j=0;j<depth_name.length;j++) {
							if (i == sub-1 && j == depth-1) {
								document.write ("			<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/motorcycle/menu/"+depth_name[j]+"_on.gif\" width=\"160\" height=\"17\" border=\"0\"></a></td></tr>");
							} else {
								document.write ("			<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/motorcycle/menu/"+depth_name[j]+".gif\" width=\"160\" height=\"17\" border=\"0\"></a></td></tr>");
							}
						}
					}
					//  3Depth ³¡
					document.write ("			<tr><td height=\"8\"></td></tr>");
					document.write ("			<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/line_01.gif\" width=\"140\" height=\"1\"></td></tr>");
					document.write ("			<tr><td height=\"11\"></td></tr>");
				} else {
					document.write ("			<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+sub_name[i]+".gif\" width=\"160\" height=\"18\" border=\"0\"></a></td></tr>");
				}
			}
			//  2Depth ³¡
			document.write ("			<tr><td height=\"14\"></td></tr>");
			document.write ("			<tr><td align=\"center\"><a href=\"/html/motorcycle/faq/faq_list_product.jsp?type1=1&type2=2&cate=7\"><img src=\"/images/motorcycle/menu/bn_faq_product.gif\" width=\"143\" height=\"19\" border=\"0\"></a></td></tr>");
			document.write ("			<tr><td height=\"8\"></td></tr>");
			document.write ("		</table>");
			document.write ("		</td></tr>");
			document.write ("</table>");
		}
	}
	// ³ª¿¡°Ô ¸Â´Â ¹ÙÀÌÅ© Ã£±â
	if (top == 1 || (top == 2 && sub != 1) || (top == 5 && sub > 2)) {
		document.write ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td height=\"5\"></td></tr>");
		document.write ("	<tr><td><a href=\"/html/motorcycle/estimation/guide/guide_flash.jsp\"><img src=\"/images/motorcycle/menu/bn_mybike_search.gif\" width=\"160\" height=\"90\" border=\"0\"></a></td></tr>");
		document.write ("</table>");
	}
	// Áß°íÂ÷ ¸Å¸Å
	if (top == 1 || (top == 2 && sub != 1)) {
		document.write ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td height=\"5\"></td></tr>");
		document.write ("	<tr><td><a href=\"/html/motorcycle/community/used/index.jsp\"><img src=\"/images/motorcycle/menu/bn_used_car.gif\" width=\"160\" height=\"90\" border=\"0\"></a></td></tr>");
		document.write ("</table>");
	}
	// Riding Simulation ¿¹¾à
	if (top == 4 && sub < 3) {
		document.write ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td height=\"5\"></td></tr>");
		document.write ("	<tr><td><a href=\"/html/motorcycle/safety/simulator/simulator_reservation01.jsp\"><img src=\"/images/motorcycle/menu/bn_riding_simulator.gif\" width=\"160\" height=\"90\" border=\"0\"></a></td></tr>");
		document.write ("</table>");
	}
// Ãâ·Â ³¡
}

function indicator(top,sub,depth) {
	main_menu(top);
//Ãâ·Â ½ÃÀÛ
	document.write ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"padding-top:12\">");
	document.write ("	<tr><td height=\"38\" align=\"right\" valign=\"top\" class=\"history\">");
	document.write ("<a href=\"/html/motorcycle/index.jsp\" class=\"history\">Home</a>");
	sub_menu(top,sub);
	if (sub) {
		if (top == 1) {document.write (" &gt; "+dir_title);}
		else {document.write (" &gt; <a href=\"/html"+dir+dir_url+"\" class=\"history\">"+dir_title+"</a>");}
	} else	 document.write (" &gt; <span style=\"color:#000000\">"+dir_title+"</span>");
	if (sub) {
		if(depth) document.write (" &gt; <a href=\"/html"+sub_link[sub-1]+"\" class=\"history\">"+sub_title[sub-1]+"</a>");
		else	 document.write (" &gt; <span style=\"color:#000000\">"+sub_title[sub-1]+"</span>");
		if (depth) {
			document.write (" &gt; <span style=\"color:#000000\">"+depth_title[depth-1]+"</span>");
		}
	}
	depth_name = "";
	document.write ("		</td></tr>");
	document.write ("</table>");
//Ãâ·Â ³¡
}

function main_menu(top,sub) {
	switch (top)
	{
	case 1: // Model
		dir	= "/motorcycle/model/";
		dir_url = "tracker/index.jsp";
		dir_title = "Models";
		sub_title = ["Tracker","Scooter","Naked","Sport","Cruiser","Touring","Motocross","Bike ¿ëÇ°","Bike History","Honda Mechanism","Enjoy Honda"];	//ÁÂÃø¸Þ´º ¸íÄª
		sub_name = ["menu_01_01","menu_01_02","menu_01_03","menu_01_04","menu_01_05","menu_01_06","menu_01_07","menu_01_08","menu_01_09","menu_01_10","menu_01_11"];	//ÁÂÃø¸Þ´º¿¡¼­ »ç¿ëµÇ´Â ÀÌ¹ÌÁö¸í
		sub_link = ["/motorcycle/model/tracker/index.jsp","/motorcycle/model/scooter/index.jsp","/motorcycle/model/naked/index.jsp","/motorcycle/model/sports/index.jsp","/motorcycle/model/cruiser/index.jsp","/motorcycle/model/touring/index.jsp","/motorcycle/model/motocross/index.jsp","/motorcycle/model/supplies/index.jsp","/motorcycle/model/history/history_sports01.jsp","/motorcycle/model/mechanism/index.jsp","/motorcycle/model/enjoy/wallpaper/wallpaper_list01.jsp"];	//ÁÂÃø¸Þ´º 1deptÀÇ ¸µÅ©
		break;
	case 2:	// ¿Â¶óÀÎ°ßÀû
		dir	= "/motorcycle/estimation/";
		dir_url = "guide/index.jsp";
		dir_title = "¿Â¶óÀÎ°ßÀû";
		sub_title = ["±¸¸Å°¡ÀÌµå","¿Â¶óÀÎ°ßÀû","°ßÀûÀÌ·Â"];
		sub_name = ["menu_02_01","menu_02_02","menu_02_03"];
		sub_link = ["/motorcycle/estimation/guide/index.jsp","/motorcycle/estimation/estimation/index.jsp","/motorcycle/estimation/estimation/estimation_list.jsp"];
		break;
	case 3:	// °í°´¼¾ÅÍ
		dir	= "/motorcycle/cs/";
		dir_url = "index.jsp";
		dir_title = "°í°´¼¾ÅÍ";
		sub_title = ["¼­ºñ½º¾È³»","º¸ÁõÁ¦µµ¾È³»","Á¤±âÁ¡°ËÇÁ·Î±×·¥","Á¤ºñ³×Æ®¿öÅ©","ÀÚ°¡Á¤ºñÆÁ","¼Ò¸ð¼ººÎÇ°/°øÀÓÁ¤º¸","FAQ"];
		sub_name = ["menu_03_01","menu_03_02","menu_03_03","menu_03_04","menu_03_05","menu_03_06","menu_03_07"];
		sub_link = ["/motorcycle/cs/index.jsp","/motorcycle/cs/cs_warranty.jsp","/motorcycle/cs/inspect/index.jsp","/motorcycle/cs/cs_maintain.jsp","/motorcycle/cs/cs_selfinspect.jsp","/motorcycle/cs/cs_wage.jsp","/motorcycle/faq/index.jsp"];
		break;
	case 4:	// Safety Riding
		dir	= "/motorcycle/safety/";
		dir_url = "index.jsp";
		dir_title = "Safety Riding";
		sub_title = ["Ä·ÆäÀÎ¾È³»","¾ÈÀü¿îÀüÆ÷ÀÎÆ®","Riding Simulator"];
		sub_name = ["menu_04_01","menu_04_02","menu_04_03"];
		sub_link = ["/motorcycle/safety/index.jsp","/motorcycle/safety/safety_point00.jsp","/motorcycle/safety/simulator/index.jsp"];
		break;
	case 5:	// Community
		dir	= "/motorcycle/board/";
		dir_url = "board_noticelist.jsp";
		dir_title = "Community";
		sub_title = ["What's New","Zoom In","Áß°íÂ÷ Á¤º¸","°ü·Ãµ¿È£È¸"];
		sub_name = ["menu_05_01","menu_05_02","menu_05_03","menu_05_04"];
		sub_link = ["/motorcycle/board/board_noticelist.jsp","/motorcycle/board/board_photolist.jsp","/motorcycle/community/used/index.jsp","/motorcycle/community/club/index.jsp"];
		break;
	case 6: // Dealer
		dir = "/motorcycle/dealer/";
		dir_url = "dealer_direct.jsp";
		dir_title = "Dealer";
		sub_title = ["°­³²Á÷¿µÁ¡","Åð°è·Îµô·¯","ÀÎÃµµô·¯","´ëÀüµô·¯","±¤ÁÖµô·¯","ºÎ»êµô·¯","ÆÇ¸ÅÇù·ÂÁ¡"];
		sub_name = ["menu_06_01","menu_06_02","menu_06_03","menu_06_04","menu_06_05","menu_06_06","menu_06_07"];
		sub_link = ["/motorcycle/dealer/dealer_direct.jsp","/motorcycle/dealer/dealer_toigyero.jsp","/motorcycle/dealer/dealer_inchon.jsp","/motorcycle/dealer/dealer_daejon.jsp","/motorcycle/dealer/dealer_kwangju.jsp","/motorcycle/dealer/dealer_busan.jsp","/motorcycle/dealer/dealer_cosale.jsp"];
		break;
	default :
		sw = false;
	}
}
function sub_menu(top,sub) {
	if (top == 1) {
		if (sub == 8) {
			depth_title = ["Blouson & Jacket","Rainsuits","Castrol Honda","Alphinestars","Gloves","Goods","Touring Bag","Boots & Shoes"];
			depth_name = ["menu_01_08_01","menu_01_08_02","menu_01_08_03","menu_01_08_04","menu_01_08_05","menu_01_08_06","menu_01_08_07","menu_01_08_08"];
			depth_link = ["supplies/supplies_jacket01.jsp","supplies/supplies_rainsuit01.jsp","supplies/supplies_castrol01.jsp","supplies/supplies_alphine01.jsp","supplies/supplies_glove01.jsp","supplies/supplies_goods01.jsp","supplies/supplies_bag01.jsp","supplies/supplies_shoes01.jsp"];
		}
		if (sub == 9) {
			depth_title = ["Bike History","On/Off-Road °è","½ºÄíÅÍÆÐ¹Ð¸®°è"];
			depth_name = ["menu_01_09_01","menu_01_09_02","menu_01_09_03"];
			depth_link = ["history/history_sports01.jsp","history/history_onoff.jsp","history/history_scooter.jsp"];
		}
		if (sub == 10) {
			depth_title = ["¿£ÁøÅ×Å©³î·¯Áö","¼¼½ÃÅ×Å©³î·¯Áö","È¯°æÅ×Å©³î·¯Áö","¾ÈÀüÅ×Å©³î·¯Áö"];
			depth_name = ["menu_01_10_01","menu_01_10_02","menu_01_10_03","menu_01_10_04"];
			depth_link = ["mechanism/mechanism_flat.jsp","mechanism/mechanism_twintube.jsp","mechanism/mechanism_clean.jsp","mechanism/mechanism_dcbs.jsp"];
		}
		if (sub == 11) {
			depth_title = ["Wall Paper","Screen Saver","Movie","TV±¤°í","ÀÎ¼â±¤°í"];
			depth_name = ["menu_01_11_01","menu_01_11_02","menu_01_11_03","menu_01_11_04","menu_01_11_05"];
			depth_link = ["enjoy/wallpaper/wallpaper_list01.jsp","enjoy/screen/screen_list01.jsp","enjoy/movie/movie_list01.jsp","enjoy/tv/tv_list01.jsp","enjoy/poster/poster_list01.jsp"];
		}
	}
	if (top == 2) {
		if (sub == 1) {
			depth_title = ["³»°Ô¸Â´Â¹ÙÀÌÅ©","¸éÇãÃëµæ¾È³»","½ÅÂ÷µî·Ï¾È³»"];
			depth_name = ["menu_02_01_01","menu_02_01_02","menu_02_01_03"];
			depth_link = ["guide/guide_flash.jsp","guide/guide_license.jsp","guide/regist_newcar.jsp"];
		}
	}
	if (top == 3) {
		if (sub == 3) {
			depth_title = ["Á¤±âÁ¡°ËÆ÷ÀÎÆ®","ÃÊÈ¸Á¡°Ë","6°³¿ù Á¤±âÁ¡°Ë","12°³¿ù Á¤±âÁ¡°Ë"];
			depth_name = ["menu_03_03_01","menu_03_03_02","menu_03_03_03","menu_03_03_04"];
			depth_link = ["inspect/inspect_point.jsp","inspect/inspect_1st.jsp","inspect/inspect_6month.jsp","inspect/inspect_12month.jsp"];
		}
		if (sub == 7) {
			depth_title = ["±¸ÀÔ°ü·Ã","ºÎÇ°°ü·Ã","Á¤ºñ°ü·Ã","±âÅ¸"];
			depth_name = ["menu_03_07_01","menu_03_07_02","menu_03_07_03","menu_03_07_04"];
			depth_link = ["../faq/faq_list_product.jsp?type1=1&type2=2&cate=7","../faq/faq_list_product.jsp?type1=1&type2=2&cate=8","../faq/faq_list_product.jsp?type1=1&type2=2&cate=9","../faq/faq_list_product.jsp?type1=1&type2=2&cate=10"];
		}
	}
	if (top == 4) {
		if (sub == 3) {
			depth_title = ["Riding Simulator ¾È³»","°¡»óÃ¼Çè","¿¹¾à½ÅÃ»"];
			depth_name = ["menu_04_03_01","menu_04_03_02","menu_04_03_03"];
			depth_link = ["simulator/index.jsp","simulator/simulator_experience01.jsp","simulator/simulator_reservation01.jsp"];
		}
	}
	if (top == 5) {
		if (sub == 4) {
			depth_title = ["°ñµåÀ®µ¿È£È¸","XZ100µ¿È£È¸","Club Shadow honda"];
			depth_name = ["menu_05_04_01","menu_05_04_02","menu_05_04_03"];
			depth_link = ["../community/club/club_goldwing.jsp","../community/club/club_xz100.jsp","../community/club/club_shadowhonda.jsp"];
		}
	}
}

