mainA = Number(code.substr(1, 1));
subA = code.substr(3, 1);
if (code.substr(0, 4) == "0010") {
	subA = 10;
}
subB = Number(code.substr(5, 1));
if (mainA == 0) {
	main = 1;
} else {
	main = mainA;
}

////¸µÅ©ÁÖ¼Ò
linkMainA = ['ÇÑ½ºÅ¸ÀÏ|/hanstyle', 'ÇÑ±Û|/hangul', 'ÇÑ½Ä|/hansik', 'ÇÑº¹|/hanbok', 'ÇÑ¿Á|/hanok', 'ÇÑÁö|/hanji', 'ÇÑ±¹À½¾Ç|/hankukak'];

linkMain1 = ['ÇÑ½ºÅ¸ÀÏ ¼Ò°³|/hanstyle/intro/info.jsp', '°ø°¨¸¶´ç|/hanstyle/sympathyplace/sympathyplace.jsp', 'Àü¹®°¡ÄÃ·³/ÀÎÅÍºä|/hanstyle/specialist/specialist.jsp', '¿­¸°¸¶´ç|/hanstyle/bbs/notice.jsp', 'ÇÑ½ºÅ¸ÀÏ ¹Ú¶÷È¸|/hanstyle/expo/expo_comp.jsp'];
linkMain2 = ['ÇÑ±Û ±æ¶óÀâÀÌ|/hangul/guide/creation.jsp', '¿ª»ç ¼Ó ÇÑ±ÛÀÌ¾ß±â|/hangul/history/befor_creation.jsp', 'ÇÑ±Û ´©¸®|/hangul/study/originality.jsp', '¼¼°èÀÇ ¹®ÀÚ|/hangul/letter/human_letter.jsp', 'ÇÑ±¹¾î ½ÃÇè|/hangul/exam/edu_exam.jsp', 'Àü¹®°¡ Ä®·³|/hangul/specialist/specialist.jsp', 'ÀÎÅÍºä|/hangul/interview/interview.jsp', '°ü·Ã±â°ü|/hangul/relation/spec_organ.jsp'];
linkMain3 = ['ÇÑ½Ä ±æ¶óÀâÀÌ|/hansik/guide/tradition.jsp', '¿ª»ç ¼Ó ÇÑ½Ä ÀÌ¾ß±â|/hansik/history/cochoson.jsp', 'ÇÑ½Ä ´©¸®|/hansik/study/hansik_kind.jsp', 'ÇÑ½Ä Á¶¸®¸¶´ç|/hansik/cook/kimchi.jsp', 'Àü¹®°¡ Ä®·³|/hansik/specialist/specialist.jsp', 'ÀÎÅÍºä|/hansik/interview/interview.jsp', 'Àü¹®°¡/°ü·Ã±â°ü|/hansik/relation/expert.jsp'];
linkMain4 = ['ÇÑº¹ ±æ¶óÀâÀÌ|/hanbok/guide/guide.jsp', '¿ª»ç ¼Ó ÇÑº¹ ÀÌ¾ß±â|/hanbok/history/hanbok_history.jsp', 'ÇÑº¹ ´©¸®|/hanbok/study/hanbok_kind.jsp', 'ÇÑº¹ ¸Ú³»±â|/hanbok/make/woman_jacket.jsp', 'Àü¹®°¡ Ä®·³|/hanbok/specialist/specialist.jsp', 'ÀÎÅÍºä|/hanbok/interview/interview.jsp', 'Àü¹®°¡/°ü·Ã±â°ü|/hanbok/relation/expert.jsp'];
linkMain5 = ['ÇÑ¿Á ±æ¶óÀâÀÌ|/hanok/guide/summary.jsp', '¿ª»ç ¼Ó ÇÑ¿Á ÀÌ¾ß±â|/hanok/history/neolith.jsp', 'ÇÑ¿Á ´©¸®|/hanok/study/hanok_kind.jsp', '´À²¸ºÁ¿ä ÇÑ¿Á|/hanok/experience/hanok_feel.jsp', 'Àü¹®°¡ Ä®·³|/hanok/specialist/specialist.jsp', 'ÀÎÅÍºä|/hanok/interview/interview.jsp', 'Àü¹®°¡/°ü·Ã±â°ü|/hanok/relation/expert.jsp'];
linkMain6 = ['ÇÑÁö ±æ¶óÀâÀÌ|/hanji/guide/guide.jsp', '¿ª»ç ¼Ó ÇÑÁö ÀÌ¾ß±â|/hanji/history/introduction.jsp', 'ÇÑÁö ´©¸®|/hanji/study/hanji_kind.jsp', 'Àü¹®°¡ Ä®·³|/hanji/specialist/specialist.jsp', 'ÀÎÅÍºä|/hanji/interview/interview.jsp', 'Àü¹®°¡/°ü·Ã±â°ü|/hanji/relation/expert.jsp'];
linkMain7 = ['ÇÑ±¹À½¾Ç ±æ¶óÀâÀÌ|/hankukak/guide/branch.jsp', '¿ª»ç ¼Ó ÇÑ±¹À½¾Ç ÀÌ¾ß±â|/hankukak/history/ancient.jsp', 'ÇÑ±¹À½¾Ç ´©¸®|/hankukak/study/namdo.jsp', 'ÇÑ±¹ÀÇ ¾Ç±â|/hankukak/instrument/trait.jsp', 'Àü¹®°¡ Ä®·³|/hankukak/specialist/specialist.jsp', 'ÀÎÅÍºä|/hankukak/interview/interview.jsp', '°ü·Ã±â°ü|/hankukak/relation/relation.jsp'];

linksub1_1 = ['ÇÑ½ºÅ¸ÀÏÀÇ °³¿ä|/hanstyle/intro/info.jsp', 'ºñÀü°ú ¸ñÇ¥|/hanstyle/intro/vision.jsp', 'ÃßÁøÇöÈ²|/hanstyle/intro/status.jsp'];
linksub1_2 = ['¿ì¸®°çÀÇ ÇÑ½ºÅ¸ÀÏ|/hanstyle/guide/hanstyle_us.jsp', '¼¼°è¼ÓÀÇ ÇÑ½ºÅ¸ÀÏ|/hanstyle/guide/hanstyle_world.jsp'];
//,'Àü¹®°¡¸®½ºÆ®|/hanstyle/bbs/specialist.jsp'//
linksub1_3 = ['¾Ë¸²ÅÍ|/hanstyle/bbs/notice.jsp', 'È«º¸ °Ô½ÃÆÇ|/hanstyle/bbs/PRBoard.jsp', '¹®¼­ ÀÚ·á½Ç|/hanstyle/bbs/data.jsp', '»çÁø ÀÚ·á½Ç|/hanstyle/bbs/p_data.jsp', 'µ¿¿µ»ó ÀÚ·á½Ç|/hanstyle/bbs/m_data.jsp', '³»°¡ ¸¸³­ ÇÑ½ºÅ¸ÀÏ|/hanstyle/bbs/myhanstyle.jsp', '»çÁø °ø¸ðÀü|/event/200808/event_rslt.jsp', '2009Á¤±âÀÌº¥Æ®|/hanstyle/bbs/2009_event.jsp'];////
linksub1_4 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub1_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub1_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub1_7 = ['2006 ¹Ú¶÷È¸ Âü°¡¾÷Ã¼|/hanstyle/expo/expo_comp.jsp', '2008 ¹Ú¶÷È¸ Âü°¡¾÷Ã¼|/hanstyle/expo/expo_comp2.jsp', '2009 ¹Ú¶÷È¸ Âü°¡¾÷Ã¼|/hanstyle/expo/expo_comp3.jsp'];
linksub1_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub1_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

linksub2_1 = ['ÀÚ¶û½º·± ÇÑ±Û|/hangul/study/pride.jsp', 'ÇÑ±ÛÀÇ Ã¢Á¦|/hangul/guide/creation.jsp', 'ÈÆ¹ÎÁ¤À½ÀÇ ³»¿ë|/hangul/guide/hunmin.jsp'];
linksub2_2 = ['ÇÑ±ÛÃ¢Á¦ ÀÌÀü|/hangul/history/befor_creation.jsp', 'ÇÑ±ÛÃ¢Á¦ ´ç½Ã|/hangul/history/after_creation.jsp', 'Á¶¼±½Ã´ë|/hangul/history/choson.jsp', '±Ù´ë|/hangul/history/modern.jsp', 'ÇöÀç¿Í ¹Ì·¡|/hangul/history/present_future.jsp'];
linksub2_3 = ['ÇÑ±ÛÀÇ µ¶Ã¢¼º|/hangul/study/originality.jsp', 'ÇÑ±ÛÀÇ Ç¥±â|/hangul/study/marking.jsp', '¼Ò¸®±ÛÀÚÀÎ ÇÑ±Û|/hangul/guide/phonetic.jsp', 'ÇÑ±Û°ú ¹®ÀÚ»ýÈ°|/hangul/guide/letter_life.jsp', '³²ºÏÇÑ ÇÑ±Û ºñ±³|/hangul/study/compare.jsp', 'ÇÑ±ÛÀÇ ¼¼°èÈ­ ÇöÈ²|/hangul/study/globalization.jsp', '¼¼°èÀÇ ¹®ÀÚ|/hangul/letter/human_letter.jsp'];
linksub2_4 = ['ÇÑ±¹¾î ±³À°´É·Â °ËÁ¤ ½ÃÇè|/hangul/exam/edu_exam.jsp', 'ÇÑ±¹¾î ´É·Â½ÃÇè|/hangul/exam/able_exam.jsp'];
linksub2_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub2_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub2_7 = ['Àü¹®±â°ü|/hangul/relation/spec_organ.jsp', '±³À°±â°ü|/hangul/relation/edu_organ.jsp'];
linksub2_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub2_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

linksub3_1 = ['ÇÑ±¹ÀÇ ÀüÅëÀ½½Ä|/hansik/guide/tradition.jsp', 'ÇÑ±¹À½½ÄÀÇ ±¸ºÐ|/hansik/guide/t_kind.jsp', 'ÇÑ±¹À½½ÄÀÇ Á¾·ù|/hansik/study/hansik_kind.jsp'];
linksub3_2 = ['°íÁ¶¼±|/hansik/history/cochoson.jsp', '»ï±¹½Ã´ë|/hansik/history/samkuk.jsp', '°í·Á½Ã´ë|/hansik/history/corea.jsp', 'Á¶¼±½Ã´ë|/hansik/history/joson.jsp'];
linksub3_3 = ['½Ä»ç¿¹Àý|/hansik/study/manners.jsp', 'ÇÑ½Ä »óÂ÷¸²|/hansik/study/make_table.jsp', 'Á¶¸®¹ýÀÇ Æ¯Â¡|/hansik/study/recipe.jsp', '±×·íÀÇ Æ¯Â¡|/hansik/study/bowl.jsp'];
linksub3_4 = ['Åë ¹èÃß ±èÄ¡|/hansik/cook/kimchi.jsp', 'ÇØ¹° ½Å¼±·Î|/hansik/cook/chafe.jsp', '°ñµ¿¹Ý(ÍéÔÝÚù) : ºñºö¹ä|/hansik/cook/bibimbab.jsp', 'º¸½Ó±èÄ¡|/hansik/cook/bosam.jsp'];
linksub3_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub3_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub3_7 = ['Àü¹®°¡|/hansik/relation/expert.jsp', '°ü·Ã±â°ü|/hansik/relation/relation.jsp'];
linksub3_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub3_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

linksub4_1 = ['¿ì¸® ÀüÅëÀÇ ¿Ê, ÇÑº¹|/hanbok/guide/guide.jsp', 'ÇÑº¹ÀÇ Á¾·ù|/hanbok/study/hanbok_kind.jsp'];
linksub4_2 = ['¿ì¸® ¿Ê ¿ª»ç Å½Çè(°í±¸·Á º®È­)|/hanbok/history/hanbok_history.jsp', 'À¯Çà°ú ¿ì¸® ¿Ê|/hanbok/history/hanbok_style.jsp'];
linksub4_3 = ['ÇÑº¹ÀÇ ±âº» »ö|/hanbok/study/hanbok_color.jsp', '¾²°³|/hanbok/make/woman_jacket.jsp', 'Àå½Å±¸|/hanbok/make/woman_skirt.jsp', '½ÅÇÑº¹ º¸°í¼­|/hanbok/study/new_hanbok_rprt.jsp'];
linksub4_4 = ['°èÀýº° ÇÑº¹|/hanbok/study/hanbok_season.jsp', 'ÇÑº¹ ¹Ù·Î ÀÔ±â|/hanbok/study/wear_method.jsp', '¼ÕÁú_¹×_º¸°ü|/hanbok/study/handing_method.jsp'];
linksub4_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub4_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub4_7 = ['Àü¹®±â°ü|/hanbok/relation/expert.jsp', '±³À°±â°ü|/hanbok/relation/relation.jsp'];
linksub4_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub4_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

linksub5_1 = ['ÇÑ¿ÁÀÇ °³¿ä|/hanok/guide/summary.jsp', 'ÇÑ¿ÁÀÇ Á¾·ù|/hanok/study/hanok_kind.jsp'];
linksub5_2 = ['½Å¼®±â ½Ã´ë|/hanok/history/neolith.jsp', 'Ã»µ¿±â ½Ã´ë|/hanok/history/bronze.jsp', '»ï±¹ ½Ã´ë|/hanok/history/samkuk.jsp', '°í·Á ½Ã´ë|/hanok/history/corea.jsp', 'Á¶¼± ½Ã´ë|/hanok/history/choson.jsp', '±Ù´ë|/hanok/history/modern.jsp'];
linksub5_3 = ['ÇÑ¿ÁÀÇ Åº»ý|/hanok/guide/birth_hanok.jsp', 'ÇÑ¿ÁÀÇ °ø°£¿Í ±â´É|/hanok/study/hanok_structure.jsp', 'ÇÑ¿ÁÀÇ ÁÖ¿ä ±¸¼º¿ä¼Ò|/hanok/study/hanok_element.jsp', 'ÇÑ¿ÁÀÇ Àç·á|/hanok/study/hanok_material.jsp', 'ÇÑ¿ÁÀÇ °ÇÃà°úÁ¤|/hanok/study/hanok_process.jsp'];
linksub5_4 = ['ºÏÃÌÇÑ¿Á¸¶À»|/hanok/experience/hanok_feel.jsp','³²»êÇÑ¿Á¸¶À»|/hanok/experience/hanok_namsan.jsp','ÀüÁÖÇÑ¿Á¸¶À»|/hanok/experience/hanok_jeonju.jsp','ÇÏÈ¸¸¶À»|/hanok/experience/hanok_ha.jsp','¾çµ¿¸¶À»|/hanok/experience/hanok_yang.jsp','¿Õ°î¸¶À»|/hanok/experience/hanok_wang.jsp','¾Æ»ê¿Ü¾Ï¸®|/hanok/experience/hanok_asan.jsp']
linksub5_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub5_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub5_7 = ['Àü¹®°¡|/hanok/relation/expert.jsp', '°ü·Ã±â°ü|/hanok/relation/relation.jsp'];
linksub5_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub5_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

linksub6_1 = ['¿ì¸®Á¶»óÀÇ ÁöÇý, ÇÑÁö|/hanji/guide/guide.jsp', 'ÇÑÁöÀÇ Á¾·ù|/hanji/study/hanji_kind.jsp']
linksub6_2 = ['Á¾ÀÌ Àü·¡°úÁ¤|/hanji/history/introduction.jsp', 'ÇÑÁöÀÇ À¯·¡|/hanji/history/origin.jsp'];
linksub6_3 = ['ÇÑÁöÀÇ Á¦Á¶ °úÁ¤|/hanji/make/hanji_make.jsp', 'ÇÑÁöÀÇ ´Ù¾çÇÑ ¾²ÀÓ»õ|/hanji/study/hanji_usage.jsp', 'ÇÑÁö °ø¿¹|/hanji/study/hanji_art.jsp'];
linksub6_4 = ['ÇÑÁö ´ë¹ß°ß|/hanji/multi/html/player_1.jsp'];
linksub6_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub6_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub6_7 = ['Àü¹®°¡|/hanji/relation/expert.jsp', '°ü·Ã±â°ü|/hanji/relation/relation.jsp'];
linksub6_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub6_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];


linksub7_1 = ['ÇÑ±¹À½¾ÇÀÇ ±¸ºÐ|/hankukak/guide/branch.jsp', 'ÇÑ±¹À½¾ÇÀÇ Á¾·ù|/hankukak/guide/b_kind.jsp', 'Áö¿ª°ú À½¾Ç|/hankukak/guide/region.jsp'];
linksub7_2 = ['°í´ë À½¾Ç|/hankukak/history/ancient.jsp', '»ï±¹ÀÇ À½¾Ç|/hankukak/history/samkuk.jsp', '°í·ÁÀÇ À½¾Ç|/hankukak/history/corea.jsp', 'Á¶¼± Àü±â À½¾Ç|/hankukak/history/choson_former.jsp', 'Á¶¼± ÈÄ±â À½¾Ç|/hankukak/history/choson_latter.jsp', '°³È­±â À½¾Ç|/hankukak/history/blooming_season.jsp'];
linksub7_3 = ['³²µµ¼Ò¸®|/hankukak/study/namdo.jsp', '»ïÇöÀ°°¢|/hankukak/study/samhyun.jsp', '½Ã±è»õ|/hankukak/study/sikimsae.jsp', '±ÃÁßÀ½¾Ç|/hankukak/study/royal.jsp'];
linksub7_4 = ['ÇÑ±¹¾Ç±âÀÇ Æ¯Â¡|/hankukak/instrument/trait.jsp', '¿ì¸®¾Ç±âÀÇ »óÂ¡¼º|/hankukak/instrument/symbol.jsp', 'ÇÑ±¹¾Ç±âÀÇ ±¸ºÐ|/hankukak/instrument/kind.jsp', '¾Ç±âÀÇ ºÐ·ù¹æ¹ý|/hankukak/instrument/branch.jsp', '¾Ç±â_Á¦ÀÛ_°úÁ¤|/hankukak/instrument/make_gaya.jsp'];
linksub7_5 = ['ÀüÃ¼|/hanstyle/specialist/specialist.jsp', 'ÇÑ±Û|/hangul/specialist/specialist.jsp', 'ÇÑ½Ä|/hansik/specialist/specialist.jsp', 'ÇÑº¹|/hanbok/specialist/specialist.jsp', 'ÇÑ¿Á|/hanok/specialist/specialist.jsp', 'ÇÑÁö|/hanji/specialist/specialist.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/specialist/specialist.jsp'];
linksub7_6 = ['ÀüÃ¼|/hanstyle/interview/interview.jsp', 'ÇÑ±Û|/hangul/interview/interview.jsp', 'ÇÑ½Ä|/hansik/interview/interview.jsp', 'ÇÑº¹|/hanbok/interview/interview.jsp', 'ÇÑ¿Á|/hanok/interview/interview.jsp', 'ÇÑÁö|/hanji/interview/interview.jsp', 'ÇÑ±¹À½¾Ç|/hankukak/interview/interview.jsp'];
linksub7_7 = ['°ü·Ã±â°ü|/hankukak/relation/relation.jsp'];
linksub7_9 = ['ÀüÃ¼|/hanstyle/forum/forum.jsp', 'ÃßÃµÆ÷·³|/hanstyle/forum/forum.jsp?sType=KF_RECOM_CHOICE', 'ÇÑ±Û|/hanstyle/forum/forum.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/forum/forum.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/forum/forum.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/forum/forum.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/forum/forum.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/forum/forum.jsp?strCate=HB06', 'ÁÖÁ¦ Á¦¾È|/hanstyle/forum/suggest.jsp'];
linksub7_A = ['ÀüÃ¼|/hanstyle/sympathyplace/sympathyplace.jsp', 'ÇÑ±Û|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB01', 'ÇÑ½Ä|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB02', 'ÇÑº¹|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB03', 'ÇÑ¿Á|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB05', 'ÇÑÁö|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB04', 'ÇÑ±¹À½¾Ç|/hanstyle/sympathyplace/sympathyplace.jsp?strCate=HB06'];

//////
linksub9_1 = ["·Î±×ÀÎ|/header/login/login.jsp", "¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã£±â|/header/find/find_idpwd.jsp"];
linksub9_2 = ["ÅëÇÕ°Ë»ö|/search/srch_result.jsp"];
linksub9_3 = ["È¸¿ø½Ç¸í È®ÀÎ|/header/member/member_certificate.jsp", "È¸¿ø°¡ÀÔ ÀÔ·Â|/header/member/member_form.jsp"];
linksub9_4 = ["°³ÀÎÁ¤º¸ °ü¸®|/header/mypage/mypage_form.jsp", "³ªÀÇ ¸¶ÀÏ¸®Áö|/header/mypage/mypage_mileage.jsp", "È¸¿øÅ»Åð|/header/mypage/mypage_seced.jsp","½ºÅ©·¦|/header/mypage/mypage_scrap.jsp","2009Á¤±âÀÌº¥Æ®|/header/mypage/mypage_event.jsp"];
linksub9_5 = ["»çÀÌÆ®¸Ê|/header/sitemap/sitemap.jsp"];
linksub9_9 = ["µµ¿òÁÖ½Å ºÐµé|/bottom/etc/thanksto.jsp", "°³ÀÎÁ¤º¸º¸È£ Á¤Ã¥|/bottom/etc/privacy_policy.jsp", "ÀúÀÛ±Ç Á¤Ã¥|/bottom/etc/copyright_policy.jsp", "ÀÌ¸ÞÀÏ ¼öÁý °ÅºÎ|/bottom/etc/email_policy.jsp", "Contact us|/bottom/etc/contactus.jsp"];


linksub10 = ["ÀÌº¥Æ®|/event/200704/event_01.jsp", "ÀÌº¥Æ®|/event/200704/event_02.jsp"];
//////
menuPos1 = [31, 200, 280, 294, 200, 200, 200, 200, 200];
menuPos2 = [10, 10, 60, 180, 330, 200, 200, 575, 200, 200];
menuPos3 = [10, 70, 120, 220, 330, 200, 578, 200, 200, 200];
menuPos4 = [0, 50, 130, 340, 200, 200, 576, 200, 200, 200];
menuPos5 = [5, 5, 80, 200, 200, 200, 573, 200, 200, 200];
menuPos6 = [0, 130, 160, 200, 200, 565, 200, 200, 200, 200];
menuPos7 = [5, 5, 260, 200, 200, 200, 200, 200, 200, 200];
////
easeInSine = function (t, b, c, d) {
	return ((((-c)*Math.cos((t/d)*Math.PI/2))+c)+b);
};
easeOutSine = function (t, b, c, d) {
	return ((c*Math.sin((t/d)*Math.PI/2))+b);
};
easeInOutSine = function (t, b, c, d) {
	return ((((-c)/2)*(Math.cos((Math.PI*t)/d)-1))+b);
};
easeOutBack = function (t, b, c, d, s) {
	if (s == undefined) {
		s = 1.70158;
	}
	return ((c*(((((t=(t/d)-1))*t)*(((s+1)*t)+s))+1))+b);
};
//
var _this = this;
var tmp_n = 0;
overTime = "";
//¸Þ´º¿À¹ö
alphaTime = "";
alphaControl = function (m, n) {
	clearTimeout(alphaTime);
	m.style.filter = 'alpha(opacity:0)';
	m.style.top = 15;
	var tmp = Number(m.style.filter.substr(14, m.style.filter.lastIndexOf(")")-14));
	distance = n-tmp;
	//	return true
	var t = 0;
	var val2;
	var val1;
	ap = function () {
		t++;
		val1 = easeOutSine(t, 0, 100, 20);
		val2 = easeOutBack(t, 15, 7, 20);
		//alert(val)
		m.style.filter = "alpha(opacity:"+Math.round(val1)+")";
		m.style.top = val2;
		if (t == 20) {
			clearTimeout(alphaTime);
		} else {
			alphaTime = setTimeout("ap()", 10);
		}
	};
	ap();
};
/////
overM = function (n) {
	clearTimeout(overTime);
	if (tmp_n != n) {
		if (document.getElementById("menuS"+n)) {
			document.getElementById("menuS"+n).style.display = "block";
			alphaControl(document.getElementById("menuS"+n), 100);
		}
		document.getElementById("menuM"+n+"_over").style.display = "block";
		document.getElementById("menuM"+n+"_out").style.display = "none";
		if (document.getElementById("menuM"+tmp_n+"_over")) {
			if (document.getElementById("menuS"+tmp_n)) {
				document.getElementById("menuS"+tmp_n).style.display = "none";
				document.getElementById("menuS"+tmp_n).style.filter = 'alpha(opacity:0)';
			}
			document.getElementById("menuM"+tmp_n+"_over").style.display = "none";
			document.getElementById("menuM"+tmp_n+"_out").style.display = "block";
		}
		tmp_n = n;
	}
};
overMM = function (n) {
	clearTimeout(overTime);
	if (document.getElementById("menuS"+tmp_n)) {
		document.getElementById("menuS"+tmp_n).style.display = "none";
		document.getElementById("menuS"+tmp_n).style.filter = 'alpha(opacity:0)';
	}
	if (document.getElementById("menuM"+tmp_n+"_over")) {
		document.getElementById("menuM"+tmp_n+"_over").style.display = "none";
		document.getElementById("menuM"+tmp_n+"_out").style.display = "block";
	}
};
overS = function (n, n1) {
	clearTimeout(overTime);
	if (document.getElementById("menuS"+n+"_"+n1+"_out")) {
		document.getElementById("menuS"+n+"_"+n1+"_over").style.display = "block";
		document.getElementById("menuS"+n+"_"+n1+"_out").style.display = "none";
	}
};
outS = function (n, n1) {
	document.getElementById("menuS"+n+"_"+n1+"_over").style.display = "none";
	document.getElementById("menuS"+n+"_"+n1+"_out").style.display = "block";
	outM();
};
overLS = function (n) {
	clearTimeout(overTime);
	if (document.getElementById("menuLS"+n+"_out")) {
		document.getElementById("menuLS"+n+"_over").style.display = "block";
		document.getElementById("menuLS"+n+"_out").style.display = "none";
	}
};
outLS = function (n) {
	document.getElementById("menuLS"+n+"_over").style.display = "none";
	document.getElementById("menuLS"+n+"_out").style.display = "block";
	//outM();
};
//¸Þ´º¾Æ¿ô
outM = function () {
	clearTimeout(overTime);
	if (mainA == 0 || (subA == 0 && subB == 0)) {
		overTime = setTimeout("outMB()", 300);
	} else {
		overTime = setTimeout("outMA()", 300);
	}
};
outMA = function () {
	overM(subA);
};
outMB = function () {
	overMM(subA);
};

//¿ÞÂÊ¸Þ´º¸¸µé±â
setLeftMenu = function (obj) {

	if (mainA == 0) {
		var arr1 = _this["linksub9_"+subA];
		mainB = 9;

		if (subA == 3) {
			var arr1 = new Array(_this["linksub9_"+subA][subB-1]);
			//alert("linksub9_"+subA+', ' +subB-1);
			subB = 1;
		}
	} else {
		var arr1 = _this["linksub"+main+"_"+subA];
		//alert("linksub"+main+"_"+subA);
		mainB = main;
	}
	
	//alert('mainA = ' + mainA + ', mainB = ' + mainB + ', subA = ' + subA + ', subB = '+ subB + ', pgGubun = '+ pgGubun);

	if (!arr1) {
		return true;
	}

	var htm = "<table width='196' border='0'  cellspacing='0' cellpadding='0'>";
        htm += "<tr>";
        htm += "  <td width='196'><img src='http://www.han-style.com/image/btn/left/left_menu_top_"+mainB+"_"+subA+".gif' width='196' height='55' alt='' /></td>";
        htm += "</tr>";
	
	// Ä®·³,ÀÎÅÍºä,°ø°¨¸¶´ç
	if (pgGubun == "specialist" || pgGubun == "interview" || pgGubun == "sympathyplace") {
		if (pgGubun == "interview") {
			htm += "<tr>";
			htm += "  <td><img src='/image/btn/left/left_menu_t_2.gif' width='196' height='36' alt='' /></td>";
			htm += "</tr>";
			var arr1 = _this["linksub1_6"];
		}else if (pgGubun == "specialist") {
			htm += "<tr>";
			htm += "  <td><img src='/image/btn/left/left_menu_t_1.gif' width='196' height='36' alt='' /></td>";
			htm += "</tr>";
	  }
		
		var len = arr1.length;
		for (i=0; i<len; i++) {
			var k = i+1;
			
			if(k==5) k=6;
			else if(k==6) k=5;
			if(mainB == 5) mainA = 6;
			else if(mainB == 6) mainA = 5;
				
			var arr = arr1[i].split("|");
			if (k == mainA) {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"'><div id='menuLS"+k+"_out'><img src='/image/btn/left/down/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'   alt='"+arr[0]+"' border='0'></td></tr>";
			} else {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"' onMouseOver='overLS("+k+");' onfocus='overLS("+k+");' onMouseOut='outLS("+k+")' onblur='outLS("+k+")'><div id='menuLS"+k+"_out'>";
				htm += "<img src='/image/btn/left/out/btn_topSub"+mainB+"_"+subA+"_"+k+".gif' alt='' border='0'></div><div id='menuLS"+k+"_over' style='display:none;'>";
				htm += "<img src='/image/btn/left/over/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'  alt='"+arr[0]+"'  border='0' border='0'></div></a></td></tr>";
			}
		}
	// Æ÷·³
	}else if (pgGubun == "forum") {
		var len = arr1.length;
		for (i=0; i<len; i++) {
			var k = i+1;
			
			if(k==6) k=7;
			else if(k==7) k=6;
			if(mainB == 6) mainA = 7;
			else if(mainB == 7) mainA = 6;
				
			var arr = arr1[i].split("|");
			if (k == subB) {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"'><div id='menuLS"+k+"_out'><img src='/image/btn/left/down/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'   alt='"+arr[0]+"' border='0'></td></tr>";
			} else {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"' onMouseOver='overLS("+k+");' onfocus='overLS("+k+");' onMouseOut='outLS("+k+")' onblur='outLS("+k+")'><div id='menuLS"+k+"_out'>";
				htm += "<img src='/image/btn/left/out/btn_topSub"+mainB+"_"+subA+"_"+k+".gif' alt='' border='0'></div><div id='menuLS"+k+"_over' style='display:none;'>";
				htm += "<img src='/image/btn/left/over/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'  alt='"+arr[0]+"'  border='0' border='0'></div></a></td></tr>";
			}
		}
		
	// ÇÑ½ºÅ¸ÀÏ ¼Ò°³
	}else	if (mainA == 1 && pgGubun == "intro") {
		htm += "<tr>";
		htm += "  <td><img src='/image/btn/left/left_menu_t_3.gif' width='196' height='36' alt='' /></td>";
		htm += "</tr>";

    var arr1 = _this["linksub1_1"];
    var len = arr1.length;
		for (i=0; i<len; i++) {
			var k = i+1;
			var arr = arr1[i].split("|");
			if (k == subB) {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"'><div id='menuLS"+k+"_out'><img src='/image/btn/left/down/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'   alt='"+arr[0]+"' border='0'></td></tr>";
			} else {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"' onMouseOver='overLS("+k+");' onfocus='overLS("+k+");' onMouseOut='outLS("+k+")' onblur='outLS("+k+")'><div id='menuLS"+k+"_out'>";
				htm += "<img src='/image/btn/left/out/btn_topSub"+mainB+"_"+subA+"_"+k+".gif' alt='' border='0'></div><div id='menuLS"+k+"_over' style='display:none;'>";
				htm += "<img src='/image/btn/left/over/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'  alt='"+arr[0]+"'  border='0' border='0'></div></a></td></tr>";
			}
		}
	}else	if (mainA == 1 && pgGubun == "guide") {
		htm += "<tr>";
		htm += "  <td><img src='/image/btn/left/left_menu_t_4.gif' width='196' height='36' alt='' /></td>";
		htm += "</tr>";
		var arr2 = _this["linksub1_2"];
    var len = arr2.length;
		for (i=0; i<len; i++) {
			var k = i+1;
			var arr = arr2[i].split("|");
			if (k == subB) {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"'><div id='menuLS"+k+"_out'><img src='/image/btn/left/down/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'   alt='"+arr[0]+"' border='0'></td></tr>";
			} else {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"' onMouseOver='overLS("+k+");' onfocus='overLS("+k+");' onMouseOut='outLS("+k+")' onblur='outLS("+k+")'><div id='menuLS"+k+"_out'>";
				htm += "<img src='/image/btn/left/out/btn_topSub"+mainB+"_"+subA+"_"+k+".gif' alt='' border='0'></div><div id='menuLS"+k+"_over' style='display:none;'>";
				htm += "<img src='/image/btn/left/over/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'  alt='"+arr[0]+"'  border='0' border='0'></div></a></td></tr>";
			}
		}
	}else{
		var len = arr1.length;
		for (i=0; i<len; i++) {
			var k = i+1;
			var arr = arr1[i].split("|");
			if (k == subB) {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"'><div id='menuLS"+k+"_out'><img src='http://www.han-style.com/image/btn/left/down/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'   alt='"+arr[0]+"' border='0'></td></tr>";
			} else {
				htm += "<tr><td align='center' ><a href='"+arr[1]+"' onMouseOver='overLS("+k+");' onfocus='overLS("+k+");' onMouseOut='outLS("+k+")' onblur='outLS("+k+")'><div id='menuLS"+k+"_out'>";
				htm += "<img src='http://www.han-style.com/image/btn/left/out/btn_topSub"+mainB+"_"+subA+"_"+k+".gif' alt='' border='0'></div><div id='menuLS"+k+"_over' style='display:none;'>";
				htm += "<img src='http://www.han-style.com/image/btn/left/over/btn_topSub"+mainB+"_"+subA+"_"+k+".gif'  alt='"+arr[0]+"'  border='0' border='0'></div></a></td></tr>";
			}
		}
	}


	htm += "</table>";
	
	

	obj.innerHTML = htm;
};

//¸Þ´ºÅÃ½ºÆ®¸¸µé±â
setTXTMenu = function (obj) {
	var tarr = ["Ã¹¹øÂ°", "µÎ¹øÂ°", "¼¼¹øÂ°", "³×¹øÂ°", "´Ù¼¸¹øÂ°", "¿©¼¸¹øÂ°", "ÀÏ°ö¹øÂ°", "¾ÆÈ©¹øÂ°", "¿­¹øÂ°", "¿­ÇÑ¹øÂ°", "¿­µÎ¹øÂ°", "¿­¼¼¹øÂ°", "¿­³×¹øÂ°"];
	var arr1 = _this["linkMain"+main];
	var len1 = arr1.length;
	var htm = "<font size=-7>";
	if (mainA != 0) {
		if (_this["linksub"+main+"_"+subA] != null) {
			htm += "ÇöÀç "+arr1[subA-1].split("|")[0]+"¸Þ´º ÀÇ "+_this["linksub"+main+"_"+subA][subB-1].split("|")[0]+" ÆäÀÌÁö¸¦ º¸°í °è½Ê´Ï´Ù.   ";
		} else {
			if (code.substr(2, 4) == "0000") {
				htm += "ÇöÀç "+linkMainA[main-1].split("|")[0]+"¸ÞÀÎ ÆäÀÌÁö¸¦ º¸°í °è½Ê´Ï´Ù.   ";
			} else {
				htm += "ÇöÀç "+arr1[subA-1].split("|")[0]+"  ÆäÀÌÁö¸¦ º¸°í °è½Ê´Ï´Ù.   ";
			}
		}
	} else {
		if (subA == 10) {
			htm += "<font size=-7>ÇöÀç "+_this["linksub10"][subB-1].split("|")[0]+"  ÆäÀÌÁö¸¦ º¸°í °è½Ê´Ï´Ù.   ";
		} else {
			htm += "<font size=-7>ÇöÀç "+_this["linksub9_"+subA][subB-1].split("|")[0]+"  ÆäÀÌÁö¸¦ º¸°í °è½Ê´Ï´Ù.   ";
		}
	}
	if (arr1) {
		for (i=0; i<len1; i++) {
			var k = i+1;
			var tmp_arr = arr1[i].split("|");
			var arr2 = _this["linksub"+main+"_"+k];
			if (arr2) {
				htm += tarr[i]+" ¸Þ´ºÀÎ <a href='"+tmp_arr[1]+"'> "+tmp_arr[0]+"</a>¿¡´Â";
				var len2 = arr2.length;
				for (j=0; j<len2; j++) {
					var kk = j+1;
					var tmp_arr = arr2[j].split("|");
					htm += "<a href='"+tmp_arr[1]+"'> "+tmp_arr[0]+"</a>   ,";
				}
				if (i != len1-1) {
					htm += "ÇÏÀ§ ¸Þ´º°¡ ÀÖ°í,  ";
				} else {
					htm += "ÇÏÀ§ ¸Þ´º°¡ ÀÖ½À´Ï´Ù,  ";
				}
			} else {
				htm += tarr[i]+" ¸Þ´º´Â  <a href='"+tmp_arr[1]+"'> "+tmp_arr[0]+" </a> ÀÔ´Ï´Ù.";
			}
		}
	}
	htm += "</font>";
	//alert(htm)
	obj.innerHTML = htm;
};
///¸ÞÀÎ¸Þ´º±×¸®±â
setMenu = function (obj) {
	var arr1 = _this["linkMain"+main];
	var len1 = arr1.length;
	var htm = "<table cellpadding=0 cellspacing=0 border=0 width=680 ><tr>";
	for (i=0; i<len1; i++) {
		var arr = arr1[i].split("|");
		var k = i+1;
		htm += "<td align='center' ><a href='"+arr[1]+"' onMouseOver='overM("+k+");' onfocus='overM("+k+");' onMouseOut='outM()' onblur='outM()'><div id='menuM"+k+"_out'>";
		htm += "<img src='/images/btn/main/out/btn_top"+main+"_"+k+".gif' alt='"+arr[0]+"' id='imgM"+k+"'></div><div id='menuM"+k+"_over' style='display:none;'>";
		htm += "<img src='/images/btn/main/over/btn_top"+main+"_"+k+".gif' alt='"+arr[0]+"'></div></a></td>";
	}
	htm += "</tr></table>";
	for (i=0; i<len1; i++) {
		var k = i+1;
		var arr2 = _this["linksub"+main+"_"+k];
		var pos = _this["menuPos"+main];
		if (arr2) {
			htm += "<div id='menuS"+k+"' style='position:absolute;display:none; left:"+pos[i]+"px; top:20px; z-index:"+k+";filter:alpha(opacity=0)'></div>";
		}
	}
	obj.innerHTML = htm;
	setSubMenu();
};
//¼­ºê¸Þ´º¸¸µé±â
setSubMenu = function () {
	var arr1 = _this["linkMain"+main];
	var len1 = arr1.length;
	for (i=0; i<len1; i++) {
		var k = i+1;
		obj = document.getElementById("menuS"+k);
		var htm = "<table cellpadding=0 cellspacing=0 border=0 ><tr>";
		var arr2 = _this["linksub"+main+"_"+k];
		if (arr2) {
			var len2 = arr2.length;
			for (j=0; j<len2; j++) {
				var kk = j+1;
				var arr = arr2[j].split("|");
				if (subA == k && subB == kk && mainA != 0) {
					htm += "<td align='center' ><a href='"+arr[1]+"' onMouseOver='overS("+k+","+kk+");' onfocus='overS("+k+","+kk+");'><div id='menuS"+k+"_"+kk+"_over'>";
					htm += "<img src='/images/btn/sub/over/btn_topSub"+main+"_"+k+"_"+kk+".gif'  alt='"+arr[0]+"'></div></a></td>";
				} else {
					htm += "<td align='center' ><a href='"+arr[1]+"' onMouseOver='overS("+k+","+kk+");' onfocus='overS("+k+","+kk+");' onMouseOut='outS("+k+","+kk+");' onblur='outS("+k+","+kk+");'><div id='menuS"+k+"_"+kk+"_out'>";
					htm += "<img src='/images/btn/sub/out/btn_topSub"+main+"_"+k+"_"+kk+".gif' alt='"+arr[0]+"'></div><div id='menuS"+k+"_"+kk+"_over' style='display:none;'>";
					htm += "<img src='/images/btn/sub/over/btn_topSub"+main+"_"+k+"_"+kk+".gif'  alt='"+arr[0]+"'></div></a></td>";
				}
				if (j != len2-1) {
					htm += "<td><img src='/images/btn/sub/line.gif' alt=''></td>";
				}
			}
			htm += "</tr></table>";
			obj.innerHTML = htm;
		}
	}
	if (mainA == 0 || (subA == 0 && subB == 0)) {
		outMB();
	} else {
		outMA();
	}
};

//##############--------- ¸µÅ©ÁÖ¼ÒÄÁÆ®·Ñ
function goLink() {
	var arg = arguments;
	var a = arg[0].split("|");
	var len = a.length;
	var linkA = "link"+a[0];
	for (i=1; i<len; i++) {
		linkA = linkA+"_"+a[i];
	}
	var link = _this[linkA].split("|");
	var href = link[1];
	//ÇÁ·ÎÁ§Æ® ¶Ù¿ì±â
	if (a[0] == 3 && a[1] == 1) {
		project(0);
		//return false
	} else if (a[0] == 5 && !a[1]) {
		//Ä¿¹Â´ÏÆ¼ ¶Ù¿ì±â
		login(0);
		//return true;
	} else {
		if (href != "") {
			location.href = href;
		} else {
			alert("¼­ºñ½º ÁØºñ ÁßÀÔ´Ï´Ù.");
		}
	}
}
///»õÃ¢¶Ù¿ì±â
function popup(url, cw, ch, scroll, resize) {
	//»õÃ¢ÀÇ Å©±â
	//½ºÅ©¸°ÀÇ Å©±â
	var sw = screen.availWidth;
	var sh = screen.availHeight;
	//¿­ Ã¢ÀÇ Æ÷Áö¼Ç
	var px = (sw-cw)/2;
	var py = (sh-ch)/2;
	//Ã¢À» ¿©´ÂºÎºÐ
	window.open(''+url+'', 'dongil', 'left='+px+',top='+py+',width='+cw+',height='+ch+',toolbar=no,menubar=no,status=no,scrollbars='+scroll+',resizable='+resize);
}
//Ä¿¹Â´ÏÆ¼ ·Î±×ÀÎÈ­¸é
function login() {
	window.open("/community/login.asp", "new", "fullscreen");
	// url, Å¸°Ù, ¿É¼Ç
}
// ÇÁ·ÎÁ§Æ®
function project(n) {
	popup("http://211.56.224.7/Flash/project/project.asp?selM="+n, 1000, 794, "no", "no");
}
