var dir,dir_url,dir_title,sub_title,sub_name,sub_link,depth_name="",depth_link,sw=true;
function leftmenu(top,sub,depth) {
	main_menu(top);
	// ¸Þ´º Ãâ·Â
	document.write ("<div style=\"padding:30 0 0 24\">");
	document.write ("<img src=\"/images/automobile/menu/leftmenu_dotline02.gif\" width=\"148\" height=\"1\"><br>");
	if (sw) {
		//  2Depth ½ÃÀÛ
		for (i=0;i<sub_name.length;i++){
			if (i == sub-1) {
				sub_menu(top,sub);
				if (depth_name != "") document.write ("<a href=\"/html"+sub_link[i]+"\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/"+sub_name[i]+"_over.gif\" width=\"148\"  border=\"0\"></a><br>");
					else document.write ("<a href=\"/html"+sub_link[i]+"\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/"+sub_name[i]+".gif\" border=\"0\"></a><br>");
				if (depth_name != "") {
					document.write ("<img src=\"/images/automobile/menu/smenu_top02.gif\" border=\"0\" width=\"148\" height=\"10\"><br>");
					//  3Depth ½ÃÀÛ
					for (j=0;j<depth_name.length;j++) {
						if (i == sub-1 && j == depth-1) {
							document.write ("<a href=\"/html"+depth_link[j]+"\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/"+depth_name[j]+"_on.gif\" width=\"148\" height=\"23\" border=\"0\"></a><br>");
						} else {
							document.write ("<a href=\"/html"+depth_link[j]+"\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/"+depth_name[j]+".gif\" onmouseover=\"this.src='/images/automobile/menu/"+depth_name[j]+"_on.gif'\" onmouseout=\"this.src='/images/automobile/menu/"+depth_name[j]+".gif'\" width=\"148\" height=\"23\" border=\"0\"></a><br>");
						}
					}
					//  3Depth ³¡
					document.write ("<img src=\"/images/automobile/menu/smenu_bottom02.gif\" border=\"0\" width=\"148\" height=\"11\"><br>");
				}
			} else {
				document.write ("<a href=\"/html"+sub_link[i]+"\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/"+sub_name[i]+".gif\" width=\"148\" border=\"0\" onmouseover=\"this.src='/images/automobile/menu/"+sub_name[i]+"_on.gif'\" onmouseout=\"this.src='/images/automobile/menu/"+sub_name[i]+".gif'\"></a><br>");
			}
		}
		//  2Depth ³¡
	}
// ±âÅ¸ ¹è³Êµé Ãâ·Â
	if (top == 1) { //Á¦ÇÄ°ü·ÃFAQ
		document.write("<a href=\"/html/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=1\"><img src=\"/images/automobile/menu/banner_faq_product.gif\" style=\"margin-top:20\" border=\"0\"></a><br>");
	}
	if (top == 1 & sub == 1) { //È¥´Ù°æÇè´ã
		//document.write("<a href=\"/html/automobile/board/board_experlist.jsp\"><img src=\"/images/automobile/menu/banner_exper.gif\" style=\"margin-top:10\" border=\"0\"></a><br>");
	}
	if (top == 3 & sub != 8) { // ¼­ºñ½º°ü·Ã FAQ
		document.write("<a href=\"/html/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=2\"><img src=\"/images/automobile/menu/banner_faq_service.gif\" style=\"margin-top:20\" border=\"0\"></a><br>");
	}
	if (top == 3 & sub != 8) { // 24½Ã°£ ±ä±Þ ¼­ºñ½º
		document.write("<a href=\"/html/automobile/cs/cs_service.jsp\" onfocus=\"this.blur()\"><img src=\"/images/automobile/menu/banner_24service.gif\" style=\"margin:10 0 0 0\" border=\"0\"></a><br>");
	}
	if (top == 3 & sub == 8) { // 24½Ã°£ ±ä±Þ ¼­ºñ½º (À§ÂÊ °£°ÝÀÌ ´Ù¸§)
		document.write("<a href=\"/html/automobile/cs/cs_service.jsp\" onfocus=\"this.blur()\"><img src=\"/images/automobile/menu/banner_24service.gif\" style=\"margin:20 0 0 0\" border=\"0\"></a><br>");
	}
    if (top == 4 & sub == 3) { // ¼­ºñ½º°ü·Ã FAQ
		document.write("<a href=\"/html/automobile/faq/index.jsp?type1=1&type2=4&cate=2\"><img src=\"/images/automobile/menu/banner_faq.gif\" style=\"margin-top:20\" border=\"0\"></a><br>");
	}
	if (top == 5) { //Racing History µ¿¿µ»óº¸±â
		document.write("<a style=\"cursor:hand;\" onclick=\"window.open('/html/automobile/motorsports/motorsports_history_popup.jsp','','width=100,height=100')\" onfocus=\"this.blur();\"><img src=\"/images/automobile/menu/banner_racing_history.gif\" style=\"margin:20 0 0 0\" border=\"0\"></a><br>");
	}
	if (top == 6) { // µô·¯°ü·Ã FAQ
		document.write("<a href=\"/html/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=3\"><img src=\"/images/automobile/menu/banner_faq_dealer.gif\" style=\"margin-top:20\" border=\"0\"></a><br>");
	}
	document.write ("<embed src=\"/images/automobile/banner/leftbanner.swf\" width='148' height='110' style='margin-top:15'></embed>");
	document.write ("<div>");

/*	if (top == 2 & sub != 0) {
		document.write("<script>self.location=\"/html/automobile/estimation/estimation_error.jsp\"</script>");
	}*/
}

function indicator(top,sub,depth) {
	main_menu(top);
	document.write ("<div style=\"font-size:12px;color:#AFAFAF;padding:5 120 10 0\" align=\"right\">");
	document.write ("<a href=\"/html/automobile/index.jsp\" class=\"history\" onfocus=\"this.blur();\">Home</a>");
	sub_menu(top,sub);
	if (sub) {
		document.write (" &gt; <a href=\"/html"+dir+dir_url+"\" class=\"history\" onfocus=\"this.blur();\">"+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\" onfocus=\"this.blur();\">"+sub_title[sub-1]+"</a>");
		else	 document.write (" &gt; <span>"+sub_title[sub-1]+"</span>");
		if (depth) {
			document.write (" &gt; <span>"+depth_title[depth-1]+"</span>");
		}
	}
	depth_name = "";
	document.write ("</div>");
}


function fullScreen(url) {
   window.open("http://crv.hondakorea.co.kr:8081/event.html", 'fullscreen','fullscreen');
}

function main_menu(top,sub) {
	switch (top)
	{
	case 1: // Models
		dir	= "/automobile/models/";
		dir_url = "civic/civic_index01.jsp";
		dir_title = "Models";
		sub_title = ["LEGEND","Accord","CR-V","CIVIC","Honda Technology","Enjoy Honda"];	//ÁÂÃø¸Þ´º ¸íÄª
		sub_name = ["menu01_1_1","menu01_1_2","menu01_1_3","menu01_1_7","menu01_1_4","menu01_1_5"];	//ÁÂÃø¸Þ´º¿¡¼­ »ç¿ëµÇ´Â ÀÌ¹ÌÁö¸í
		sub_link = ["/automobile/models/legend2008/legend_intro.jsp","/automobile/models/accord/accord_intro_20080112.jsp","/automobile/models/crv/crv_exterior01.jsp","/automobile/models/civic/civic_exterior01.jsp","/automobile/models/technology/index.jsp","/automobile/models/enjoy/wallpaper/wallpaper_list01.jsp"];	//ÁÂÃø¸Þ´º 1deptÀÇ ¸µÅ©
		break;
	case 2:	// ¿Â¶óÀÎ°ßÀû
		dir	= "/automobile/estimation/";
		dir_url = "guide/guide_index.jsp";
		dir_title = "¿Â¶óÀÎ°ßÀû";
		sub_title = ["±¸¸Å°¡ÀÌµå","¿Â¶óÀÎ°ßÀû","°ßÀûÀÌ·Â"];
		sub_name = ["menu_2_1","menu_2_2","menu_2_3"];
		sub_link = ["/automobile/estimation/guide/guide_index.jsp","/automobile/estimation/estimation/estimation_step01.jsp","/automobile/estimation/estimation/estimation_list.jsp"];
		break;
	case 3:	// SERVICE
		dir	= "/automobile/cs/";
		dir_url = "index.jsp";
		dir_title = "SERVICE";
		sub_title = ["¼­ºñ½º¾È³»","º¸ÁõÁ¦µµ","¼­ºñ½º ³×Æ®¿öÅ©","Á¤±âÁ¡°Ë Program","¼øÁ¤ºÎÇ°ÀÇ Áß¿ä¼º","ÀÀ±Þ »óÈ²½Ã Á¶Ä¡ ¹æ¹ý","Driving Point","FAQ"];
		sub_name = ["menu_3_1","menu_3_2","menu_3_3","menu_3_4","menu_3_5","menu_3_6","menu_3_7","menu_3_8"];
		sub_link = ["/automobile/cs/index.jsp","/automobile/cs/cs_warranty01.jsp","/automobile/cs/cs_center.jsp","/automobile/cs/maintain/maintain_inspect01.jsp","/automobile/cs/maintain/maintain_important.jsp","/automobile/cs/maintain/maintain_emergency_list.jsp","/automobile/cs/driving/driving_safety.jsp","/automobile/faq/index.jsp"];
		break;
	/*case 4:	// Community
		dir	= "/automobile/board/";
		dir_url = "board_noticelist.jsp";
		dir_title = "Community";
		sub_title = ["What's New","¼¼°è¼Ó Honda","Honda °æÇè´ã","Motor Show","Photo Gallery","°ü·Ã µ¿È£È¸","Event","Honda Magazine"];	//
		sub_name = ["menu_4_1","menu_4_2","menu_4_3","menu_4_6","menu_4_7","menu_4_4","menu_4_5","menu_4_8"];	//	
		sub_link = ["/automobile/board/board_noticelist.jsp","/automobile/community/community_honda.jsp","/automobile/board/board_experlist.jsp","/automobile/community/motorshow/index.jsp","/automobile/board/board_gallerylist.jsp","/automobile/community/club/club_list.jsp","/automobile/board/board_eventlist.jsp","/automobile/community/hondamagazine/index.jsp"];	//
		break;*/
	case 4:	// Community
		dir	= "/automobile/board/";
		dir_url = "board_noticelist.jsp";
		dir_title = "Community";
		sub_title = ["What's New","¼¼°è¼Ó Honda","Motor Show","Photo Gallery","°ü·Ã µ¿È£È¸","Event","Honda Magazine"];	//
		sub_name = ["menu_4_1","menu_4_2","menu_4_6","menu_4_7","menu_4_4","menu_4_5","menu_4_8"];	//	
		sub_link = ["/automobile/board/board_noticelist.jsp","/automobile/community/community_honda.jsp","/automobile/community/motorshow/index.jsp","/automobile/board/board_gallerylist.jsp","/automobile/community/club/club_list.jsp","/automobile/board/board_eventlist.jsp","/automobile/community/hondamagazine/index.jsp"];	//
		break;
	case 5:	// Motor sports
		dir	= "/automobile/motorsports/";
		dir_url = "motorsports_intro.jsp";
		dir_title = "Motor Sports";
		sub_title = ["Honda Racing °³¿ä","Racing History","Gallery"];
		sub_name = ["menu_5_1","menu_5_2","menu_5_3"];
		sub_link = ["/automobile/motorsports/motorsports_intro.jsp","/automobile/motorsports/motorsports_history01.jsp","/automobile/board/board_photolist.jsp"];
		break;
	case 6: // Dealer
		dir = "/automobile/dealer/";
		dir_url = "dealer_huzen.jsp";
		dir_title = "Dealer";
		sub_title = ["Honda Cars Huzen","Honda Cars D3","Honda Cars Doosan","Honda Cars ILJIN","Honda Cars KCC","µô·¯¸ðÁý"];
		sub_name = ["menu_6_6","menu_6_5","menu_6_2","menu_6_3","menu_6_4","menu_6_1"];
		sub_link = ["/automobile/dealer/dealer_huzen.jsp","/automobile/dealer/dealer_d3.jsp","/automobile/dealer/dealer_doosan.jsp","/automobile/dealer/dealer_iljin.jsp","/automobile/dealer/dealer_kcc.jsp","/automobile/dealer/dealer_registration.jsp"];
		break;
	default :
		sw = false;
	}
}

function sub_menu(top,sub) {
	if (top == 1) {
		if (sub == 1) {
			depth_title = ["Exterior","Interior","Performance","Safety","Color","°¡°Ý ¹× Á¦¿ø","Gallery","Accessory"];
			depth_name = ["menu01_1_1_1","menu01_1_1_2","menu01_1_1_3","menu01_1_1_4","menu01_1_1_5","menu01_1_1_6","menu01_1_1_7","menu01_1_1_8"];
			depth_link = ["/automobile/models/legend2008/legend_exterior01.jsp","/automobile/models/legend2008/legend_interior01.jsp","/automobile/models/legend2008/legend_performance01.jsp","/automobile/models/legend2008/legend_safety01.jsp","/automobile/models/legend2008/legend_color01.jsp","/automobile/models/legend2008/legend_spec01.jsp","/automobile/models/legend2008/legend_gallery.jsp","/automobile/models/legend2008/legend_ac.jsp"];
		}
		if (sub == 2) {
			depth_title = ["Exterior","Interior","Performance","Safety","VCM","Color","°¡°Ý ¹× Á¦¿ø","Gallery","Accessory"];
			depth_name = ["menu01_1_2_1","menu01_1_2_2","menu01_1_2_3","menu01_1_2_4","menu01_1_2_8","menu01_1_2_5","menu01_1_2_6","menu01_1_2_7","menu01_1_2_9"];
			depth_link = ["/automobile/models/accord/accord_exterior01.jsp","/automobile/models/accord/accord_interior01.jsp","/automobile/models/accord/accord_performance01.jsp","/automobile/models/accord/accord_safety01.jsp","/automobile/models/accord/accord_VCM.jsp","/automobile/models/accord/accord_color01.jsp","/automobile/models/accord/accord_spec01.jsp","/automobile/models/accord/accord_gallery.jsp","/automobile/models/accord/accord_ac.jsp"];
		}
		if (sub == 3) {
			depth_title = ["Exterior","Interior","Performance","Safety","Color","°¡°Ý ¹× Á¦¿ø","Gallery"];
			depth_name = ["menu01_1_3_1","menu01_1_3_2","menu01_1_3_3","menu01_1_3_4","menu01_1_3_5","menu01_1_3_6","menu01_1_3_7"];
			depth_link = ["/automobile/models/crv/crv_exterior01.jsp","/automobile/models/crv/crv_interior01.jsp","/automobile/models/crv/crv_performance01.jsp","/automobile/models/crv/crv_safety01.jsp","/automobile/models/crv/crv_color01.jsp","/automobile/models/crv/crv_spec01.jsp","/automobile/models/crv/crv_gallery.jsp"];
//			depth_title = ["Exterior","Interior","Performance","Safety","Color","°¡°Ý ¹× Á¦¿ø","Gallery","Accessory"];
//			depth_name = ["menu01_1_3_1","menu01_1_3_2","menu01_1_3_3","menu01_1_3_4","menu01_1_3_5","menu01_1_3_6","menu01_1_3_7","menu01_1_3_8"];
//			depth_link = ["/automobile/models/crv/crv_exterior01.jsp","/automobile/models/crv/crv_interior01.jsp","/automobile/models/crv/crv_performance01.jsp","/automobile/models/crv/crv_safety01.jsp","/automobile/models/crv/crv_color01.jsp","/automobile/models/crv/crv_spec01.jsp","/automobile/models/crv/crv_gallery.jsp","/automobile/models/crv/crv_accessory01.jsp"];
		}
		if (sub == 4) {
			depth_title = ["Exterior","Interior","Performance","Safety","Color","Hybrid","°¡°Ý ¹× Á¦¿ø","Gallery","Accessory"];
			depth_name = ["menu01_1_7_1","menu01_1_7_2","menu01_1_7_3","menu01_1_7_4","menu01_1_7_5","menu01_1_7_8","menu01_1_7_6","menu01_1_7_7","menu01_1_7_9"];
			depth_link = ["/automobile/models/civic/civic_exterior01.jsp","/automobile/models/civic/civic_interior01.jsp","/automobile/models/civic/civic_performance01.jsp","/automobile/models/civic/civic_safety01.jsp","/automobile/models/civic/civic_color01.jsp","/automobile/models/civic/civic_hybrid_exterior.jsp","/automobile/models/civic/civic_spec01.jsp","/automobile/models/civic/civic_gallery.jsp","/automobile/models/civic/civic_ac_01.jsp"];
		}
		if (sub == 5) {
			depth_title = ["Hybrid","Engine","Packaging","Chassis","Information","Safety","Environment"];
			depth_name = ["menu01_1_4_7","menu01_1_4_1","menu01_1_4_2","menu01_1_4_3","menu01_1_4_4","menu01_1_4_5","menu01_1_4_6"];
			depth_link = ["/automobile/models/technology/technology_hybrid01.jsp","/automobile/models/technology/technology_30li-vtec.jsp","/automobile/models/technology/technology_compactplatform.jsp","/automobile/models/technology/technology_4wd.jsp","/automobile/models/technology/technology_hids.jsp","/automobile/models/technology/technology_gcon.jsp","/automobile/models/technology/technology_fcx.jsp"];
		}
		if (sub == 6) {
			depth_title = ["Wallpaper","TV ±¤°í","ÀÎ¼â±¤°í"];
			depth_name = ["menu01_1_5_1","menu01_1_5_3","menu01_1_5_4"];
			depth_link = ["/automobile/models/enjoy/wallpaper/wallpaper_list01.jsp","/automobile/models/enjoy/tv/tv_list01.jsp","/automobile/models/enjoy/poster/poster_list01.jsp"];
		}if (sub == 7) {
			depth_title = ["Exterior","Interior","Performance","Safety","Color","°¡°Ý ¹× Á¦¿ø","Gallery"];
			depth_name = ["menu01_1_7_1","menu01_1_7_2","menu01_1_7_3","menu01_1_7_4","menu01_1_7_5","menu01_1_7_6","menu01_1_7_7"];
			depth_link = ["/automobile/models/civic/civic_exterior01.jsp","/automobile/models/civic/civic_interior01.jsp","/automobile/models/civic/civic_performance01.jsp","/automobile/models/civic/civic_safety01.jsp","/automobile/models/civic/civic_color01.jsp","/automobile/models/civic/civic_spec01.jsp","/automobile/models/civic/civic_gallery.jsp"];
		}
	}
	if (top == 2) {
		if (sub == 1) {
			depth_title = ["µî·ÏÀýÂ÷","°ü·Ã¼¼±Ý"];
			depth_name = ["menu_2_1_1","menu_2_1_2"];
			depth_link = ["/automobile/estimation/guide/guide_registration.jsp","/automobile/estimation/guide/guide_tax.jsp"];
		}
	}
	if (top == 3) {
		if (sub == 3) {
			depth_title = ["¼­ºñ½º¼¾ÅÍ","Á¤ºñ Çù·ÂÁ¡","24½Ã°£ ±ä±Þ¼­ºñ½º"];
			depth_name = ["menu_3_3_1","menu_3_3_3","menu_3_3_2"];
			depth_link = ["/automobile/cs/cs_center.jsp","/automobile/cs/cs_center2.jsp","/automobile/cs/cs_service.jsp"];
		}
		if (sub == 4) {
			depth_title = ["¹«»óÁ¡°Ë","ÀÏ»óÁ¡°Ë","Á¤±âÁ¡°Ë"];
			depth_name = ["menu_3_4_1","menu_3_4_2","menu_3_4_3"];
			depth_link = ["/automobile/cs/maintain/maintain_inspect01.jsp","/automobile/cs/maintain/maintain_inspect02.jsp","/automobile/cs/maintain/maintain_inspect03.jsp"];
		}
		if (sub == 6) {
			depth_title = ["Å¸ÀÌ¾î±³È¯","¹èÅÍ¸®¹æÀü","ºê·¹ÀÌÅ© ¸¶ÂûÀ½","Key Àá±è","¿£Áø½Ãµ¿¹®Á¦"];
			depth_name = ["menu_3_6_1","menu_3_6_2","menu_3_6_3","menu_3_6_4","menu_3_6_5"];
			depth_link = ["/automobile/cs/maintain/maintain_emergency01.jsp","/automobile/cs/maintain/maintain_emergency02.jsp","/automobile/cs/maintain/maintain_emergency03.jsp","/automobile/cs/maintain/maintain_emergency04.jsp","/automobile/cs/maintain/maintain_emergency05.jsp"];
		}
		if (sub == 7) {
			depth_title = ["¾ÈÀü¿îÀü","°æÁ¦¿îÀü"];
			depth_name = ["menu_3_7_1","menu_3_7_2"];
			depth_link = ["/automobile/cs/driving/driving_safety.jsp","/automobile/cs/driving/driving_economy.jsp"];
		}
		if (sub == 8) {
			depth_title = ["Á¦Ç° °ü·Ã","¼­ºñ½º °ü·Ã","µô·¯ °ü·Ã","±âÅ¸"];
			depth_name = ["menu_3_8_1","menu_3_8_2","menu_3_8_3","menu_3_8_4"];
			depth_link = ["/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=1","/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=2","/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=3","/automobile/faq/faq_list.jsp?type1=1&type2=4&cate=11"];
		}
	}
	if (top == 4) {
		if (sub == 4) {
			depth_title = ["µðÄ« Gallery","ÆùÄ« Gallery"];	//
			depth_name = ["menu_4_7_1","menu_4_7_2"];	//
			depth_link = ["/automobile/board/board_gallerylist.jsp","/automobile/community/community_phonecalist.jsp"];
		}
		if (sub == 5) {		//6¹øÀ¸·Î ±³Ã¼
			depth_title = ["Delsol Club"];
			depth_name = ["menu_4_4_2"];
			depth_link = ["/automobile/community/club/club_view02.jsp"];
		}
		if (sub == 6) {		//7¹øÀ¸·Î ±³Ã¼
			depth_title = ["Honda Event","´çÃ·ÀÚ ¹ßÇ¥"];	//
			depth_name = ["menu_4_5_1","menu_4_5_2"];	//
			depth_link = ["/automobile/board/board_eventlist.jsp","/automobile/board/board_eventprizelist.jsp"];	//
		}
	}
}
