var menu01 = new Array(

// ÇÏ¹öµåºñÁî´Ï½º
"0::01::00::ÇÏ¹öµåºñÁî´Ï½º::http://pdf.hankyung.com/hkshb/",
"9::01::1", //Áß¸Þ´º½ÃÀÛ
"1::01::01::HBR¼Ò°³::http://pdf.hankyung.com/hkshb/",
"1::01::02::È£¼öº° ¸ñÂ÷º¸±â::http://pdf.hankyung.com/hkshb/hbr_list.php",
"1::01::03::³í¹®°Ë»ö/±¸¸Å::http://pdf.hankyung.com/hkshb/hbr_search.php",
"1::01::04::±¸¸Å ¸®Æ÷Æ®::http://pdf.hankyung.com/hkshb/buy_list.php",
"9::01::4", //¸Þ´º´ÝÀ½

// ³ë¹«¶ó¸®Æ÷Æ®
"0::02::00::³ë¹«¶ó¸®Æ÷Æ®::http://nribiz.hankyung.com",
"9::02::1", //Áß¸Þ´º½ÃÀÛ
"1::02::01::NRI¸®Æ÷Æ®::http://nribiz.hankyung.com/report_list.php?origin=1",
"9::02::2", //¼Ò¸Þ´º½ÃÀÛ
"2::02::02::ÁöÀûÀÚ»êÃ¢Á¶::http://nribiz.hankyung.com/report_list.php?origin=1",
"2::02::03::IT¼Ö·ç¼ÇÇÁ·±Æ¼¾î::http://nribiz.hankyung.com/report_list.php?origin=2",
"2::02::04::±ÝÀ¶ITÆ÷Ä¿½º::http://nribiz.hankyung.com/report_list.php?origin=3",
"2::02::05::ÆÛºí¸¯¸Å´ÏÁö¸ÕÆ®::http://nribiz.hankyung.com/report_list.php?origin=4",
"2::02::06::¸Å´ÏÁö¸ÕÆ®¸®ºä::http://nribiz.hankyung.com/report_list.php?origin=5",
"9::02::3", //¼Ò¸Þ´º´ÝÀ½
"9::02::1", //Áß¸Þ´º½ÃÀÛ
"1::02::07::ÃÖ½Å¹ø¿ªÀÚ·á::http://nribiz.hankyung.com/trans_list.php",
"1::02::08::ÀÚ·á°Ë»ö::http://nribiz.hankyung.com/search_list.php",
"1::02::09::´º½º ¸±¸®½º::http://nribiz.hankyung.com/board/list.php?id=nri_news&ch=etc",
"1::02::10::±¸¸Å ¸®Æ÷Æ®::http://nribiz.hankyung.com/buy_list.php",
"1::02::11::¼­ºñ½º ¾È³»::http://nribiz.hankyung.com/info.html",
"9::02::4", //¸Þ´º´ÝÀ½

// ÇÐ¼ú³í¹®
"0::05::00::ÇÐ¼ú³í¹®::http://www.hankyung.com/thesis/",
"9::05::1", //Áß¸Þ´º½ÃÀÛ
"1::05::01::ÇÐ¼ú³í¹® ¼Ò°³::http://www.hankyung.com/thesis/",
"1::05::02::ºÐ¾ßº° ³í¹® º¸±â::http://www.hankyung.com/thesis/index_field.html",
"1::05::03::»õ·Î¿î ³í¹® º¸±â::http://www.hankyung.com/thesis/thesis_new.php",
"1::05::04::±¸¸Å ¸®Æ÷Æ®::http://www.hankyung.com/thesis/buy_list.php",
"9::05::4" //¸Þ´º´ÝÀ½

);


//ÄÚµå ºÐ¸®
function div(sub1,sub2) {
	switch (sub2) {
		case 1: sub2 = sub1.substring(0,sub1.indexOf("::")); break; // ±¸ºÐÀÚ(::) ¾Õ´Ü ÃßÃâ
		case 2: sub2 = sub1.substring(sub1.indexOf("::")+2); break; // ±¸ºÐÀÚ(::) µÞ´Ü ÃßÃâ
	}
	return(sub2);
}

function menu(sub1,sub2) {

	var td1 = '<tr><td style="padding:6 0 3 3; letter-spacing:-1">';
	var td3 = '</td></tr>';
	var td4 = '<tr><td style="padding:6 0 0 5; letter-spacing:-1" bgcolor="#FFFFFF">';
	var td5 = '</table>';
	var line1 = '<tr><td height="1" bgcolor="#DDDDDD"></td></tr>';
	var line2 = '<tr><td height="4" bgcolor="#FFFFFF"></td></tr>';
	var line3 = '<tr><td height="7" bgcolor="#FFFFFF"></td></tr>';

	// html ÄÚµå ½ÃÀÛ
	document.write ('<table width="120" border="0" cellpadding="0" cellspacing="0" background="http://www.hankyung.com/report/img/left_ttl_bg.gif">');

	for (i=0; i <= menu01.length-1; i++) { // ¹è¿­ ³¡³¯ ¶§±îÁö µ¹¸²
		var depth = div(menu01[i],1);
		var code1 = div(div(menu01[i],2),1);
		var code2 = div(div(div(menu01[i],2),2),1);
		var mname = div(div(div(div(menu01[i],2),2),2),1);
		var murl = div(div(div(div(menu01[i],2),2),2),2);
		var grph = div(div(menu01[i],2),2);

		if (code1 == sub1) { // ÇØ´ç ´ëºÐ·ù¸¸ Ç¥½ÃÇÔ

			//´ë¸Þ´ºÇ¥½Ã
			if (depth == 0) {
				document.write ('<tr><td><a href="' + murl + '" target="_top"><img src="http://www.hankyung.com/report/img/report_left0' + sub1 + '.gif" border="0"></a></td></tr>');
				document.write ('<tr><td style="padding:4 13 21 13">');
				document.write ('<table width="94" border="0" cellpadding="0" cellspacing="0">');
			}

			//Áß¸Þ´ºÇ¥½Ã
			if (depth == 1) {

				if (code2 == sub2) {
					document.write ( td1 + '<a href="' + murl + '" target="_top" style="color:#FF6716">' + mname + '</a> ' + td3); //¼±ÅÃµÈ Áß¸Þ´º ¿À·»Áö»ö
				} else {
					document.write ( td1 + '<a href="' + murl + '" target="_top">' + mname + '</a>' + td3); //Áß¸Þ´ºÇ¥½Ã
				}

				if (div(menu01[i+1],1) != 9) {
					document.write (td3 + line1); //µÞÇ×¸ñÀÌ Áß¸Þ´ºÀÏ¶§ ±¸ºÐ¶óÀÎ Ç¥½Ã
				} else {
					document.write (td3);
				}

			}

			//¼ÒºÐ·ùÇ¥½Ã
			if (depth == 2) {
				if (code2 == sub2) {
					document.write (td4 + '<a href="' + murl + '" target="_top" style="color:#FF6716">' + mname + '</a> ' + td3 ); //¼±ÅÃµÈ ¼Ò¸Þ´º ¿À·»Áö»ö
				} else {
					document.write (td4 + '<a href="' + murl + '" target="_top">' + mname + '</a>' + td3 ); //¼Ò¸Þ´ºÇ¥½Ã
				}
			}

			//·¹ÀÌ¾Æ¿ô¿ä¼Ò Ç¥½Ã
			if (depth == 9) {
				switch (grph) {
					case '1': document.write (td1); break;
					case '2': document.write (line1 + line2); break;
					case '3': document.write (line3 + line1); break;
					case '4': document.write (td5); break;
				}
			}

		}

	}
	document.write ('</td>');
	document.write ('</tr>');
	document.write ('<tr><td><img src="http://www.hankyung.com/report/img/left_ttl_bot.gif" width="120" height="10" border="0"></td></tr>');
	document.write ('</table>');

}


function hbar(sub1,sub2) {

	var grp, murl='', mname='';
	var root = '<a href="http://www.hankyung.com/" target="_top">HOME</a> > <a href="http://www.hankyung.com/report/" target="_top">Àü¹®ÀÚ·á°ü</a> > ';
	var rea = '<a href="http://pdf.hankyung.com/hkshb/" target="_top">ÇÏ¹öµåºñÁî´Ï½º</a>';
	var reb = '<a href="http://nribiz.hankyung.com" target="_top">³ë¹«¶ó¸®Æ÷Æ®</a>';
	var ree = '<a href="http://www.hankyung.com/thesis/" target="_top">ÇÐ¼ú³í¹®</a>';

	for (i=0; i<menu01.length; i++) {
		if (div(menu01[i],1) != 9) {
			if (sub1 == div(div(menu01[i],2),1)) {
				if (sub2 == div(div(div(menu01[i],2),2),1)) {
					grp = div(menu01[i],1);
					murl = div(div(div(div(menu01[i],2),2),2),2);
					mname = div(div(div(div(menu01[i],2),2),2),1);
				}
			}
		}
	}

	document.write (root);

	if (sub1 == 1) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write (rea + ' > <a href="' + murl + '" target="_top">' + mname + '</a>'); break;
				case '2': document.write ('<a href="' + murl + '" target="_top">' + mname + '</a>'); break;
				default : document.write (rea); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (rea + sub2);
		} else {
			document.write (rea);
		}
	}

	if (sub1 == 2) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write (reb + ' > <a href="' + murl + '" target="_top">' + mname + '</a>'); break;
				case '2':
					if ( sub2 >= 2 && sub2 <= 6 ) {
						document.write (reb + ' > <a href="http://nribiz.hankyung.com/report_list.php?origin=1" target="_top">NRI¸®Æ÷Æ®</a> > ');
					}
					document.write ('<a href="' + murl + '" target="_top">' + mname + '</a>');
					break;
				default : document.write (reb); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (reb + sub2);
		} else {
			document.write (reb);
		}
	}

	if (sub1 == 5) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write (ree + ' > <a href="' + murl + '" target="_top">' + mname + '</a>'); break;
				case '2': document.write ('<a href="' + murl + '" target="_top">' + mname + '</a>'); break;
				default : document.write (ree); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (ree + sub2);
		} else {
			document.write (ree);
		}
	}

}


function ttlbar(sub1,sub2,ttl) {

	var grp, murl='', mname='';
	var rea = ' &lt; ÇÏ¹öµåºñÁî´Ï½º';
	var reb = ' &lt; ³ë¹«¶ó¸®Æ÷Æ®';
	var ree = ' &lt; ÇÐ¼ú³í¹®';

	document.write ('<title>');
	document.write (ttl + ' &lt; ');

	for (i=0; i<menu01.length; i++) {
		if (div(menu01[i],1) != 9) {
			if (sub1 == div(div(menu01[i],2),1)) {
				if (sub2 == div(div(div(menu01[i],2),2),1)) {
					grp = div(menu01[i],1);
					murl = div(div(div(div(menu01[i],2),2),2),2);
					mname = div(div(div(div(menu01[i],2),2),2),1);
				}
			}
		}
	}

	if (sub1 == 1) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write ( mname + reb ); break;
				case '2': document.write ( mname + reb ); break;
				default : document.write (reb); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (sub2 + reb);
		} else {
			document.write (reb);
		}
	}

	if (sub1 == 2) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write ( mname + rea ); break;
				case '2':
					if ( sub2 >= 2 && sub2 <= 6 ) {
						document.write ( mname + ' &lt; NRI¸®Æ÷Æ®' + rea );
					}
					else {
						document.write ( mname + rea );
					} break;
				default : document.write (rea); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (sub2 + rea);
		} else {
			document.write (rea);
		}
	}

	if (sub1 == 5) {
		if (mname != '') {
			switch (grp) {
				case '1': document.write ( mname + ree ); break;
				case '2': document.write ( mname + ree ); break;
				default : document.write (reb); break;
			}
		} else if (isNaN(parseInt(sub2))) {
			document.write (sub2 + ree);
		} else {
			document.write (ree);
		}
	}

	document.write (' &lt; Àü¹®ÀÚ·á°ü :: ÇÑ°æ´åÄÄ ::</title>');
}
