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 width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td><a href=\"/html"+dir+dir_url+"\"><img src=\"/images/abouthonda/menu/menu_0"+top+".gif\" width=\"167\" height=\"51\" border=\"0\"></a></td></tr>");
		//  2Depth ½ÃÀÛ
		for (i=0;i<sub_name.length;i++){
			if (i == sub-1) {
				document.write ("	<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/abouthonda/menu/"+sub_name[i]+"_on.gif\" width=\"167\" height=\"29\" border=\"0\"></a></td></tr>");
				//  3Depth ½ÃÀÛ
				sub_menu(top,sub);
				if (depth_name != "") {
					document.write ("	<tr><td bgcolor=\"#F0F2F3\">");
					document.write ("		<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
					document.write ("			<tr><td height=\"3\"></td></tr>");
					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/abouthonda/menu/"+depth_name[j]+"_on.gif\" width=\"167\" height=\"22\" border=\"0\"></a></td></tr>");
						} else {
							document.write ("			<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/abouthonda/menu/"+depth_name[j]+".gif\" width=\"167\" height=\"22\" border=\"0\"></a></td></tr>");
						}
					}
					document.write ("			<tr><td height=\"10\"></td></tr>");
					document.write ("			<tr><td height=\"1\" bgcolor=\"#E1E1E2\"></td></tr>");
					document.write ("		</table>");
					document.write ("		</td></tr>");
				}
			//  3Depth ³¡
			} else {
				document.write ("	<tr><td><a href=\"/html"+sub_link[i]+"\"><img src=\"/images/abouthonda/menu/"+sub_name[i]+".gif\" width=\"167\" height=\"29\" border=\"0\"></a></td></tr>");
			}
		}
		//  2Depth ³¡
		document.write ("</table>");
		document.write ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td height=\"25\"></td></tr>");
		if (top == 1) {
			document.write ("	<tr><td align=\"right\"><a href=\"/html/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=5\"><img src=\"/images/abouthonda/menu/bn_faq_hondakorea.gif\" width=\"149\" height=\"48\" border=\"0\"></a></td></tr>");
		}
		if (top == 2) {
			document.write ("	<tr><td align=\"right\"><a href=\"/html/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=4\"><img src=\"/images/abouthonda/menu/bn_faq_honda.gif\" width=\"149\" height=\"48\" border=\"0\"></a></td></tr>");
		}
		if (top == 3 && sub != 1) {
			document.write ("	<tr><td align=\"right\"><a href=\"/html/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=5\"><img src=\"/images/abouthonda/menu/bn_faq_hondakorea.gif\" width=\"149\" height=\"48\" border=\"0\"></a></td></tr>");
		}		
		if (top == 4) {
			document.write ("	<tr><td align=\"right\"><a href=\"/html/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=6\"><img src=\"/images/abouthonda/menu/bn_faq_career.gif\" width=\"149\" height=\"48\" border=\"0\"></a></td></tr>");
		}
		document.write ("</table>");
	}
// Ãâ·Â ³¡
	if (top=="2") {
		document.write ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("<tr><td height=\"15\"></td></tr>");
		document.write ("<tr><td align=\"right\">");
		document.write ("<a href=\"javascript:newwindow('/html/abouthonda/asimo/movie/movie_view_popup_intro.jsp','','width=100,height=100')\"><img src=\"/images/common/img_hcp.gif\" border=\"0\" width=\"149\" height=\"116\"></a>");
		document.write ("</td></tr></table>");
	}
}

function indicator(top,sub,depth) {
	main_menu(top);
//Ãâ·Â ½ÃÀÛ
	document.write ("<a href=\"/html/abouthonda/index.jsp\">Home</a>");
	sub_menu(top,sub);
	if (sub) document.write (" &gt; <a href=\"/html"+dir+dir_url+"\">"+dir_title+"</a>");
	else	 document.write (" &gt; <b>"+dir_title+"</b>");
	if (sub) {
		if(depth) document.write (" &gt; <a href=\"/html"+sub_link[sub-1]+"\">"+sub_title[sub-1]+"</a>");
		else	 document.write (" &gt; <b>"+sub_title[sub-1]+"</b>");
		if (depth) {
			document.write (" &gt; <b>"+depth_title[depth-1]+"</b>");
		}
	}
	depth_name = "";
//Ãâ·Â ³¡
}

function main_menu(top,sub) {
	switch (top)
	{
	case 1: // Honda Korea
		dir	= "/abouthonda/hko/";
		dir_url = "hko_profile.jsp";
		dir_title = "Honda Korea";
		sub_title = ["Company Profile","CEO Message","History","Contact Us"];	//ÁÂÃø¸Þ´º ¸íÄª
		sub_name = ["menu_01_01","menu_01_02","menu_01_03","menu_01_04"];	//ÁÂÃø¸Þ´º¿¡¼­ »ç¿ëµÇ´Â ÀÌ¹ÌÁö¸í
		sub_link = ["/abouthonda/hko/hko_profile.jsp","/abouthonda/hko/hko_message.jsp","/abouthonda/hko/hko_history.jsp","/common/contactus/contactus.jsp"];	//ÁÂÃø¸Þ´º 1deptÀÇ ¸µÅ©
		break;
	case 2:	// GLOBAL HONDA
		dir	= "/abouthonda/hglobal/";
		dir_url = "hglobal_philosophy.jsp";
		dir_title = "Global Honda";
		sub_title = ["Philosophy","CEO Message","Company Profile"];
		sub_name = ["menu_02_01","menu_02_02","menu_02_03"];
		sub_link = ["/abouthonda/hglobal/hglobal_philosophy.jsp","/abouthonda/hglobal/hglobal_message.jsp","/abouthonda/hglobal/profile/history/history_motorcycle.jsp"];
		break;
	case 3:	// TECHNOLOGY
		dir	= "/abouthonda/technology/";
		dir_url = "technology_safety01.jsp";
		dir_title = "Technology";
		sub_title = ["Safety","Environment","¿¬±¸°³¹ß","»ý»ê/¹°·ù"];
		sub_name = ["menu_03_01","menu_03_02","menu_03_03","menu_03_04"];
		sub_link = ["/abouthonda/technology/technology_safety01.jsp","/abouthonda/technology/technology_environment01.jsp","/abouthonda/technology/technology_rnd.jsp","/abouthonda/technology/technology_production.jsp"];
		break;
	case 4:	// CAREER
		dir	= "/abouthonda/board/";
		dir_url = "board_careerlist.jsp";
		dir_title = "Career";
		sub_title = ["Ã¤¿ë°ø°í"];
		sub_name = ["menu_04_01"];
		sub_link = ["/abouthonda/board/board_careerlist.jsp"];
		break;
	case 5:	// PRESS RELEASE
		dir	= "/abouthonda/board/";
		dir_url = "board_hkolist.jsp";
		dir_title = "Press Release";
		sub_title = ["Honda Korea","Global Honda","Media Website"];
		sub_name = ["menu_05_01","menu_05_02","menu_05_03"];
		sub_link = ["/abouthonda/board/board_hkolist.jsp?biSeq=13","/abouthonda/board/board_hkolist.jsp?biSeq=16","/abouthonda/board/board_automobile_noticelist.jsp?biSeq=17"];
		break;
	case 6: // ASIMO
		dir = "/abouthonda/asimo/";
		dir_url = "index.jsp";
		dir_title = "ASIMO";
		sub_title = ["ASIMO °³¿ä","Technology","ASIMO History","ASIMO News","ASIMO Movie","ASIMO Photo"];
		sub_name = ["menu_06_01","menu_06_02","menu_06_03","menu_06_06","menu_06_04","menu_06_07"];
		sub_link = ["/abouthonda/asimo/intro.jsp","/abouthonda/asimo/technology/technology_concept.jsp","/abouthonda/asimo/history/index.jsp","/abouthonda/board/board_asimolist.jsp","/abouthonda/board/board_asimomovielist.jsp","/abouthonda/board/board_asimophotolist.jsp"];
		break;
	case 7: // FAQ
		dir = "/abouthonda/faq/";
		dir_url = "index.jsp";
		dir_title = "FAQ";
		sub_title = ["Honda Korea °ü·Ã","Honda °ü·Ã","Ã¤¿ë°ü·Ã"];
		sub_name = ["menu_07_01","menu_07_02","menu_07_03"];
		sub_link = ["/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=5","/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=4","/abouthonda/faq/faq_list_hondakorea.jsp?type1=1&type2=0&cate=6"];
		break;
	default :
		sw = false;
	}
}
function sub_menu(top,sub) {
	if (top == 2) {
		if (sub == 3) {
			depth_title = ["History of Honda","Business Area","Coporate Citizenship","Global Networks","Sales and Service"];
			depth_name = ["menu_02_03_01","menu_02_03_02","menu_02_03_03","menu_02_03_04","menu_02_03_05"];
			depth_link = ["profile/history/history_motorcycle.jsp","profile/area/area_motorcycle.jsp","profile/profile_citizenship.jsp","profile/networks/networks_japan_info.jsp","profile/profile_sales.jsp"];
		}
	}
	if (top == 3) {
		if (sub == 1) {
			depth_title = ["¾ÈÀüÀåÄ¡ ÀåÂø ¹× ±³À°","Ãæµ¹°¨¼Ò¸¦ À§ÇÑ ±â¼ú°³¹ß"];
			depth_name = ["menu_03_01_01","menu_03_01_02"];
			depth_link = ["technology_safety01.jsp","technology_safety02.jsp"];
		}
		if (sub == 2) {
			depth_title = ["È¯°æº¸È£Á¤Ã¥ ÃßÁø","¿¬·áÀüÁö ÀÚµ¿Â÷ °³¹ß"];
			depth_name = ["menu_03_02_01","menu_03_02_02"];
			depth_link = ["technology_environment01.jsp","technology_environment02.jsp"];
		}
		if (sub == 3) {
			depth_title = ["1960~1970³â´ë","1980³â´ë","1990³â´ë","2000³â´ë ÀÌÈÄ"];
			depth_name = ["menu_03_03_01","menu_03_03_02","menu_03_03_03","menu_03_03_04"];
			depth_link = ["technology_rnd01.jsp","technology_rnd02.jsp","technology_rnd03.jsp","technology_rnd04.jsp"];
		}
	}
	if (top == 5) {
		if (sub == 3) {
			depth_title = ["È¥´ÙÀÚµ¿Â÷","È¥´Ù¸ðÅÍ»çÀÌÅ¬","±â¾÷Á¤º¸"];
			depth_name = ["menu_05_03_01","menu_05_03_02","menu_05_03_03"];
			depth_link = ["board_automobile_noticelist.jsp?biSeq=17","board_automobile_noticelist.jsp?biSeq=18","board_automobile_noticelist.jsp?biSeq=19"];
		}
	}
	if (top == 6) {
		if (sub == 2) {
			depth_title = ["Design Concept","Specifications","Walking","Arm's Operating Range"];
			depth_name = ["menu_06_02_01","menu_06_02_02","menu_06_02_03","menu_06_02_04"];
			depth_link = ["technology/technology_concept.jsp","technology/technology_spec.jsp","technology/technology_walking.jsp","technology/technology_arm.jsp"];
		}
		if (sub == 3) {
			depth_title = ["°³¿ä","E0","E1-E2-E3","E4-E5-E6","P1-P2-P3","ASIMO"];
			depth_name = ["menu_06_03_01","menu_06_03_02","menu_06_03_03","menu_06_03_04","menu_06_03_05","menu_06_03_06"];
			depth_link = ["history/index.jsp","history/history_e0.jsp","history/history_e1.jsp","history/history_e4.jsp","history/history_p1.jsp","history/history_asimo.jsp"];
		}
	}
}
