var dir,dir_url,dir_title,sub_title,sub_name,sub_link,depth_name="",depth_link,sw=true;
function left_menu(top,sub,depth) {
	var top_part = ["all","tracker","scooter","naked","sports","cruiser","Sportstourer","touring","motocross"];
	var top_color = ["#646468","#A7CBE4","#646468","#919DAA","#000000","#A48053","#1F1E1D","#1F1E1D","#433A2A"];
	var etc_color = ["#8b8b8f","#A0A8B0","#8B8B8F","#697481","#696969","#5B5B5B","#56524A","#56524A","#847863"];
	main_menu(top);
	// Ãâ·Â
	if (sw) {
		document.write ("<table width=\"100%\" bgcolor=\""+top_color[sub-1]+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		document.write ("	<tr><td><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/menu_top.gif\" width=\"160\" height=\"29\" border=\"0\"></td></tr>");
		document.write ("	<tr><td height=\"11\"></td></tr>");
		//  2Depth ½ÃÀÛ
		for (i=0;i<sub_name.length;i++){
			if (i == sub-1) {
				document.write ("	<tr><td height=\"7\"></td></tr>");
				document.write ("	<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/line.gif\" width=\"140\" height=\"1\"></td></tr>");
				document.write ("	<tr><td height=\"1\"></td></tr>");
				document.write ("	<tr><td><a href=\"/html"+dir+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/"+sub_name[i]+"_on.gif\" width=\"160\" height=\"26\" border=\"0\" name=\"menu_0"+i+"\"></a></td></tr>");
				//  3Depth ½ÃÀÛ
				sub_menu(top,sub);
				if (depth_name != "") {
					document.write ("	<!-- ¼­ºê¸Þ´º -->");
					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/"+top_part[sub-1]+"/"+depth_name[j]+"_on.gif\" width=\"160\" height=\"18\" border=\"0\" name=\"sub_0"+j+"\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sub_0"+j+"','','/images/motorcycle/menu/"+top_part[sub-1]+"/"+depth_name[j]+"_on.gif',1)\"></a></td></tr>");
						} else {
							document.write ("	<tr><td><a href=\"/html"+dir+depth_link[j]+"\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/"+depth_name[j]+".gif\" width=\"160\" height=\"18\" border=\"0\" name=\"sub_0"+j+"\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('sub_0"+j+"','','/images/motorcycle/menu/"+top_part[sub-1]+"/"+depth_name[j]+"_on.gif',1)\"></a></td></tr>");
						}
					}
					document.write ("	<tr><td height=\"5\"></td></tr>");
					document.write ("	<tr><td align=\"center\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/line.gif\" width=\"140\" height=\"1\"></td></tr>");
					document.write ("	<tr><td height=\"5\"></td></tr>");
					document.write ("	<!-- ¼­ºê¸Þ´º ³¡ -->");
				}
			//  3Depth ³¡
			} else {
				document.write ("	<tr><td><a href=\"/html"+dir+sub_link[i]+"\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/"+sub_name[i]+".gif\" width=\"160\" height=\"26\" border=\"0\" name=\"menu_0"+i+"\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('menu_0"+i+"','','/images/motorcycle/menu/"+top_part[sub-1]+"/"+sub_name[i]+"_on.gif',1)\"></a></td></tr>");
			}
		}
		//  2Depth ³¡
		document.write ("	<tr><td height=\"50\"></td></tr>");
		document.write ("</table>");
	}

// ±âÅ¸ ¸Þ´º
	document.write ("<table width=\"100%\" height=\"4\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td></td></tr></table>");
	document.write ("<table width=\"100%\" bgcolor=\""+etc_color[sub-1]+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write ("	<tr><td height=\"34\" align=\"center\"><a href=\"/html/motorcycle/faq/faq_list_product.jsp?type1=1&type2=2&cate=7\"><img src=\"/images/motorcycle/menu/"+top_part[sub-1]+"/link_faq.gif\" width=\"143\" height=\"19\" border=\"0\" name=\"faq\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('faq','','/images/motorcycle/menu/"+top_part[sub-1]+"/link_faq_on.gif',1)\"></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_model\">");
	document.write ("<a href=\"/html/motorcycle/index.jsp\" class=\"history_model\">Home</a>");
	sub_menu(top,sub);
	if (sub) document.write (" &gt; "+dir_title);
	else	 document.write (" &gt; <span style=\"color:#000000\">"+dir_title+"</span>");
	if (sub) {
		if(depth) document.write (" &gt; <a href=\"/html"+dir+sub_link[sub-1]+"\" class=\"history_model\">"+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: // Honda Korea
		dir	= "/motorcycle/model/";
		dir_url = "index.jsp";
		dir_title = "Models";
		sub_title = ["Àü¸ðµ¨º¸±â","Tracker","Scooter","Naked","sports","Cruiser","Sportstourer","Tourer","Motocross"];;	//ÁÂÃø¸Þ´º ¸íÄª
		sub_name = ["menu_00","menu_01","menu_02","menu_03","menu_04","menu_05","menu_08","menu_06","menu_07"];	//ÁÂÃø¸Þ´º¿¡¼­ »ç¿ëµÇ´Â ÀÌ¹ÌÁö¸í
		sub_link = ["index.jsp","tracker/index.jsp","scooter/index.jsp","naked/index.jsp","sports/index.jsp","cruiser/index.jsp","SportsTourer/vfr1200f/vfr1200f_design.jsp","touring/index.jsp","motocross/index.jsp"];	//ÁÂÃø¸Þ´º 1deptÀÇ ¸µÅ©
		break;
	default :
		sw = false;
	}
}
function sub_menu(top,sub) {
	if (top == 1) {
		if (sub == 2) {
			depth_title = ["New XZ100"];
			depth_name = ["menu_01_01"];
			depth_link = ["tracker/xz100/xz100_design.jsp"];
		}
		if (sub == 3) {
			depth_title = ["ZOOMER","TODAY","New@SCR110","Silver Wing GT 600","PCX"];
			depth_name = ["menu_02_06","menu_02_01","menu_02_07","menu_02_03","menu_02_08"];
			depth_link = ["scooter/zoomer/zoomer_design.jsp","scooter/today/today_design.jsp","scooter/scr110/scr110_design.jsp","scooter/silverwinggt600/silverwinggt600_design.jsp","scooter/pcx/pcx_design.jsp"];
		}
		//if (sub == 4) {
			//depth_title = ["CB600F ABS","cb1300SB"];
			//depth_name = ["menu_03_04","menu_03_05"];
			//depth_link = ["naked/cb600/cb600_design.jsp","naked/cb1300sb/cb1300sb_design.jsp"];
		//}
		if (sub == 4) {
			depth_title = ["CB600F ABS"];
			depth_name = ["menu_03_04"];
			depth_link = ["naked/cb600/cb600_design.jsp"];
		}
		if (sub == 5) {
			depth_title = ["CBR125R(FI)","CBR600RR","CBR1000RR","CBR1000RR"];
			depth_name = ["menu_04_05","menu_04_01","menu_04_03"];
			depth_link = ["sports/cbr125r_2010/cbr125r_2010_design.jsp","sports/cbr600rr_2009/cbr600rr_design.jsp","sports/cbr1000rr_2009/cbr1000rr_design.jsp"];
		}
		//if (sub == 5) {
			//depth_title = ["CBR125R(FI)","CBR125R","CBR600RR","CBR1000RR"];
			//depth_name = ["menu_04_05","menu_04_04","menu_04_01","menu_04_03"];
			//depth_link = ["sports/cbr125r_2010/cbr125r_2010_design.jsp","sports/cbr125r/cbr125r_design.jsp","sports/cbr600rr_2009/cbr600rr_design.jsp","sports/cbr1000rr_2009/cbr1000rr_design.jsp"];
		//}
		//if (sub == 6) {
			//depth_title = ["Shadow750 CS","VT1300CX","VT1300CR","VTX1800"];
			//depth_name = ["menu_05_03","menu_05_03_09116","menu_05_04","menu_05_02"];
			//depth_link = ["cruiser/shadow750/shadow750_design.jsp","cruiser/vt1300cx/vt1300cx_design.jsp","cruiser/vt1300cr/vt1300cr_design.jsp","cruiser/vtx1800/vtx1800_design.jsp"];
			//}
			
		if (sub == 6) {
			depth_title = ["Shadow750 CS","VT1300CX","VT1300CR","VT1300CS"];
			depth_name = ["menu_05_03","menu_05_03_09116","menu_05_04","menu_05_06"];
			depth_link = ["cruiser/shadow750/shadow750_design.jsp","cruiser/vt1300cx/vt1300cx_design.jsp","cruiser/vt1300cr/vt1300cr_design.jsp","cruiser/vt1300cs/vt1300cs_design.jsp"];
			}
		if (sub == 7) {
			depth_title = ["vfr1200f/fd"];
			depth_name = ["menu_08_01"];
			depth_link = ["SportsTourer/vfr1200f/vfr1200f_design.jsp"];
		}
		if (sub == 8) {
			depth_title = ["DN-01","ST1300 ABS","GL1800"];
			depth_name = ["menu_06_03","menu_06_02","menu_06_01"];
			depth_link = ["touring/DN-01/DN-01_design.jsp","touring/st1300/st1300_design.jsp","touring/gl1800_2009/gl1800_design.jsp"]
		}
		if (sub == 9) {
			depth_title = ["CR150R","CRF250X","CRF450X"];
			depth_name = ["menu_07_01","menu_07_04","menu_07_03"];
			depth_link = ["motocross/cr150/cr150_design.jsp","motocross/crf250x/crf250x_design.jsp","motocross/crf450x/crf450x_design.jsp"];
		}
	}
}
