/************************************************************************************************/
/* Define Menu Object                                                                           */
/* tle : Title / lnk : Link URL / tDir : Link Target / child : Sub Object / opt : Popup Option  */
/* tDir : 0-_top, 1-_self, 2-popup, 3-_blank                                                    */
/************************************************************************************************/
function mnuObj(tle, lnk, tDir, child, opt) {
	this.tle = tle;
	this.lnk = lnk;
	this.tDir = tDir;
	this.child = child;
	this.opt = opt;
}


/************************************************************************************************/
/* Define Top Menu Object                                                                       */
/************************************************************************************************/
var topMenu = new Array(

	new mnuObj("HOME", "/index.asp", 1)
	,new mnuObj("¼Ò°³", "/Introduction/greeting.asp", 1,
		new Array(
			new mnuObj("ÀÎ»ç¸»", "/Introduction/greeting.asp", 1)
			,new mnuObj("±³À°¸ñÇ¥", "/Introduction/eduPP.asp", 1)
			,new mnuObj("¿¬Çõ", "/Introduction/history.asp", 1)
			,new mnuObj("Á¶Á÷¹×¾÷¹«", "/Introduction/group.asp", 1)
			,new mnuObj("±³Á÷¿ø¾È³»", "/Introduction/Faculty01List.asp", 1)
		)
	)

	,new mnuObj("±³°ú¾È³»/ÇÐºÎ", "/Curriculum/Defartment/introMC.asp", 1,
		new Array(
			new mnuObj("°ú¸ñ±ºÆ®¸®", "/Curriculum/Department/TreeD.asp", 3,"","scrollbars=yes,width=1010,height=700")
			,new mnuObj("Á¹¾÷¿ä°Ç", "/Curriculum/Department/Graduation.asp", 1)
			//,new mnuObj("Á¹¾÷¿¬±¸", "/Curriculum/Department/ReseartPR.asp", 1)
			,new mnuObj("Ã¢ÀÇ¿¬±¸", "/Curriculum/Department/IdeaPR.asp", 1)
			,new mnuObj("CEO°­ÁÂ", "/Curriculum/Department/CEO.asp", 1)
		)
	)

	,new mnuObj("ÇÐ»ç¾È³»/ÇÐºÎ", "/University/Defartment/Plan.asp", 1,
		new Array(
			new mnuObj("ÇÐ»çÀÏÁ¤Ç¥", "/University/Department/Plan.asp", 1)
			,new mnuObj("ÀåÇÐ±Ý¾È³»", "/University/Department/Scholarship.asp", 1)
			,new mnuObj("ºÐ¹Ý¾È³»", "/University/Department/PartClass.asp", 1)
			
		)
	)
	
	,new mnuObj("¿¬±¸È°µ¿", "/Research/center.asp", 1,
		new Array(
			new mnuObj("¿¬±¸¼Ò/¿¬±¸¼¾ÅÍ ¾È³»", "/Research/center.asp", 1)
			,new mnuObj("¿¬±¸½Ç¾È³»", "/Research/Laboratory.asp", 1)
			,new mnuObj("ÁÖ¿ä¿¬±¸¼º°ú", "/Research/research.PDF", 3)
			
		)
	)

	,new mnuObj("Ä¿¹Â´ÏÆ¼", "/Community/club.asp", 1,
		new Array(
			new mnuObj("µ¿¾Æ¸®", "/Community/club.asp", 1)
			,new mnuObj("µ¿Ã¢È¸", "/Community/schoolmate.asp", 1)
			,new mnuObj("ÇÐ¿ìÈ¸", "/Community/schoolfellow.asp", 1)
			
		)
	)

	,new mnuObj("Á¤º¸¸¶´ç", "/Information/NoticeList.asp", 1,
		new Array(
			new mnuObj("°øÁö»çÇ×", "/Information/NoticeList.asp", 1)
			,new mnuObj("ÀÚÀ¯°Ô½ÃÆÇ", "/Information/FreeBoardList.asp", 1)
			,new mnuObj("Ãë¾÷Á¤º¸", "/Information/JobList.asp", 1)
			,new mnuObj("ÀÚ·á½Ç", "/Information/DataList.asp", 1)
			,new mnuObj("FAQ", "/Information/faq.asp", 1)
		)
	)

	,new mnuObj("±³°ú¾È³»/´ëÇÐ¿ø", "/Curriculum/Graduate/ORG.asp", 1,
		new Array(
			new mnuObj("±¸¼º°ú°úÁ¤", "/Curriculum/Graduate/ORG.asp", 1)
			,new mnuObj("±³°ú¸ñ ¾È³»", "/Curriculum/Graduate/trans.asp", 1)
//			,new mnuObj("ºÐ¾ß¼Ò°³", "/Curriculum/Graduate/DetailSP.asp", 1)
			
		)
	)
	,new mnuObj("ÇÐ»ç¾È³»/´ëÇÐ¿ø", "/University/Graduate/Schedule.asp", 1,
		new Array(
			new mnuObj("ÀÔÇÐ¾È³»", "/University/Graduate/Schedule.asp", 1)
			,new mnuObj("ÇÐ°ú³»±Ô", "/University/Graduate/Knowledge.asp", 1)
			,new mnuObj("ÀåÇÐ±Ý¾È³»", "/University/Graduate/Scholarship.asp", 1)

		)
	)
);


/************************************************************************************************/
/* Go Top Link Function                                                                         */
/************************************************************************************************/
function goTopMenu(idx, idy) {
	var tempIdx, tempLink, tempOption;
//	alert(idx+":"+idy);
//	return;
	if (idy != null) {
		tempIdx = topMenu[idx].child[idy].tDir;
		tempLink = topMenu[idx].child[idy].lnk;
		if (tempIdx == 2) tempOption = topMenu[idx].child[idy].opt;
	} else {
		tempIdx = topMenu[idx].tDir;
		tempLink = topMenu[idx].lnk;
		if (tempIdx == 2) tempOption = topMenu[idx].opt;
	}
	goLink(tempIdx, tempLink, tempOption);
}

/************************************************************************************************/
/* Go Sejong Link Function                                                                      */
/************************************************************************************************/
function goLink(tidx, tlnk, topt) {
	var arrTemp;
	switch (tidx) {
		case 0 :
			window.top.document.location.href = tlnk;
			break;
		case 1 :
			document.location.href = tlnk;
			break;
		case 2 :
			arrTemp = topt.split(",");

			popWin(tlnk,'',arrTemp[0],arrTemp[1],arrTemp[2],arrTemp[3],arrTemp[4])
//			var popWin = window.open(tlnk,'',topt);
//			popWin.focus();
			break;
		case 3 :
			window.open(tlnk);
			break;
	}
}
