/**************************************************************************
*	메뉴관련 링크 및 Location 관련
**************************************************************************/

var menuArr = new Array();
var m = 0;

// Home
menuArr[m++] = new Array('00', 'Home','/eng/index.jsp', '');



// POSCO Asia Fellowships
menuArr[m++] = new Array('01', 'POSCO Asia Fellowship','/eng/asia/index.jsp', '');

menuArr[m++] = new Array('0101', 'Supporting Asian Students','/eng/asia/stu/overview.jsp', '');
menuArr[m++] = new Array('010101', 'Purpose','/eng/asia/stu/overview.jsp', '');
menuArr[m++] = new Array('010102', 'Selection Procedure','/eng/asia/stu/selection.jsp', '');
menuArr[m++] = new Array('010103', 'This Year&rsquo;s Fellows','/eng/asia/stu/fellow.jsp', '');
menuArr[m++] = new Array('010104', 'Scholarship Presentation Ceremony','/eng/asia/stu/ceremony_2007.jsp', '');
menuArr[m++] = new Array('010105', 'Messages from Fellows','/eng/asia/stu/story_01.jsp', '');

menuArr[m++] = new Array('0102', 'Nurturing Korean Experts on Asia','/eng/asia/pro/overview.jsp', '');
menuArr[m++] = new Array('010201', 'Purpose','/eng/asia/pro/overview.jsp', '');
menuArr[m++] = new Array('010202', 'Master and Doctoral Sponsorships','/eng/asia/pro/junior/selection.jsp', '');
menuArr[m++] = new Array('01020201', 'Application & Selection','/eng/asia/pro/junior/selection.jsp', '');
menuArr[m++] = new Array('01020202', 'This Year&rsquo;s Fellows','/eng/asia/pro/junior/fellow.jsp', '');
menuArr[m++] = new Array('010203', 'Research Funding for Professors','/eng/asia/pro/senior/selection.jsp', '');
menuArr[m++] = new Array('01020301', 'Application & Selection','/eng/asia/pro/senior/selection.jsp', '');
menuArr[m++] = new Array('01020302', 'This Year&rsquo;s Fellows','/eng/asia/pro/senior/fellow.jsp', '');

menuArr[m++] = new Array('0103', 'Networking with Asian Universities','/eng/asia/univ/overview.jsp', '');
menuArr[m++] = new Array('010301', 'Purpose','/eng/asia/univ/overview.jsp', '');
menuArr[m++] = new Array('010302', 'Participating Universities','/eng/asia/univ/network.jsp', '');
menuArr[m++] = new Array('010303', 'Scholarship Presentation Ceremony','/eng/asia/univ/ceremony_2007.jsp', '');

menuArr[m++] = new Array('0104', 'Supporting Research in Asia','/eng/asia/research/overview.jsp', '');
menuArr[m++] = new Array('010401', 'Purpose','/eng/asia/research/overview.jsp', '');
menuArr[m++] = new Array('010402', 'Application Procedure','/eng/asia/research/selection.jsp', '');
menuArr[m++] = new Array('010403', 'This Year&rsquo;s Research Projects','/eng/asia/research/fellow.jsp', '');

menuArr[m++] = new Array('0105', 'POSCO Asia Forum','/eng/asia/forum/overview.jsp', '');
menuArr[m++] = new Array('010501', 'Purpose','/eng/asia/forum/overview.jsp', '');
menuArr[m++] = new Array('010502', 'POSCO Asia Forum more information','/eng/asia/forum/forum_2009.jsp', '');

menuArr[m++] = new Array('0106', 'Literary Journal, ASIA','/eng/asia/zine/overview.jsp', '');
menuArr[m++] = new Array('010601', 'Purpose','/eng/asia/zine/overview.jsp', '');
menuArr[m++] = new Array('010602', 'Past Publications','/eng/asia/zine/zineview.jsp', '');
menuArr[m++] = new Array('010603', 'Publisher&rsquo;s message','/eng/asia/zine/writer_01.jsp', '');



// POSCO TJ Park Prize
menuArr[m++] = new Array('02', 'POSCO TJ Park Prize','/eng/prize/overview.jsp', '');

menuArr[m++] = new Array('0201', 'Purpose of the Prize','/eng/prize/overview.jsp', '');

menuArr[m++] = new Array('0202', 'Selection Procedure','/eng/prize/selection.jsp', '');

menuArr[m++] = new Array('0203', 'Prize Committee','/eng/prize/organization.jsp', '');

menuArr[m++] = new Array('0204', 'Candidate Recommendation','/eng/prize/recommand.jsp', '');

menuArr[m++] = new Array('0205', 'Former Awardees','/eng/prize/winner_2009.jsp', '');

menuArr[m++] = new Array('0206', 'Prize Presentation Ceremony','/eng/prize/ceremony_2009.jsp', '');

menuArr[m++] = new Array('0207', 'Prize Awardee’s Special Lectures','/eng/prize/lecture_2007.jsp', '');



// TJ Park Bessemer Science Scholarship
menuArr[m++] = new Array('03', 'TJ Park Science Fellowship','/eng/bessemer/purpose.jsp', '');

menuArr[m++] = new Array('0301', 'TJ Park Ph.D Scholarship','#', '');
menuArr[m++] = new Array('0302', 'TJ Park Postdoc scholarship','#', '');
menuArr[m++] = new Array('0303', 'TJ Park Professor Fellowship','#', '');
menuArr[m++] = new Array('0304', 'Purpose','/eng/bessemer/purpose.jsp', '');
menuArr[m++] = new Array('0305', 'Eligibility','/eng/bessemer/eligibility.jsp', '');
menuArr[m++] = new Array('0306', 'Selection Procedure','/eng/bessemer/procedure.jsp', '');
menuArr[m++] = new Array('0307', 'Interviews','/eng/bessemer/interviews.jsp', '');
menuArr[m++] = new Array('0308', 'Press Release','/eng/bessemer/pressreleases.jsp', '');



// POSCO New Star / Vision Scholarship
menuArr[m++] = new Array('04', 'POSCO  Regional Scholarships','/eng/schol/star/overview.jsp', '');

menuArr[m++] = new Array('0401', 'POSCO New Star Scholarship','/eng/schol/star/overview.jsp', '');
menuArr[m++] = new Array('040101', 'Purpose','/eng/schol/star/overview.jsp', '');
menuArr[m++] = new Array('040102', 'Recipients of the Scholarship','/eng/schol/star/winner_2008.jsp', '');
menuArr[m++] = new Array('040103', 'Messages from Students','/eng/schol/star/story_01.jsp', '');
menuArr[m++] = new Array('0402', 'POSCO New Vision Scholarship','/eng/schol/vision/overview.jsp', '');
menuArr[m++] = new Array('040201', 'Purpose','/eng/schol/vision/overview.jsp', '');
menuArr[m++] = new Array('040202', 'Recipients of the Scholarship','/eng/schol/vision/winner_2008.jsp', '');
menuArr[m++] = new Array('040203', 'Messages from Students','/eng/schol/vision/story_01.jsp', '');



// POSCO Caregiving
menuArr[m++] = new Array('05', 'POSCO Caregiving','/eng/care/overview.jsp', '');

menuArr[m++] = new Array('0501', 'About the project','/eng/care/overview.jsp', '');

menuArr[m++] = new Array('0502', 'Photos','/eng/care/scene.jsp', '');

menuArr[m++] = new Array('0503', 'Essays of Caretakers','/eng/care/story_01.jsp ', '');



// POSCO NGO Fellowships
menuArr[m++] = new Array('06', 'POSCO NGO Fellowships','/eng/ngo/ngo.jsp', '');

menuArr[m++] = new Array('0601', 'Purpose','/eng/ngo/overview.jsp', '');

menuArr[m++] = new Array('0602', 'Conference','/eng/ngo/conference_2007.jsp', '');

menuArr[m++] = new Array('0603', 'NGO Fellows','/eng/ngo/fellow_2007.jsp', '');
menuArr[m++] = new Array('060301', '2007 NGO Fellows','/eng/ngo/fellow_2007.jsp', '');
menuArr[m++] = new Array('060302', '2006 NGO Fellows','/eng/ngo/fellow_2006.jsp', '');

menuArr[m++] = new Array('0604', 'Essays of NGO Fellows','/eng/ngo/story_01.jsp', '');



// POSCO Steel Art Award
menuArr[m++] = new Array('07', 'POSCO Steel Art Award','/eng/art/overview.jsp', '');
menuArr[m++] = new Array('0701', 'Purpose','/eng/art/overview.jsp', '');
menuArr[m++] = new Array('0702', 'Participation Procedure','/eng/art/selection.jsp', '');



// About us
menuArr[m++] = new Array('08', 'POSCO TJ Park Foundation','/eng/about/overview.jsp', '');

menuArr[m++] = new Array('0801', 'Chairman&rsquo;s Message','/eng/about/overview.jsp', '');

menuArr[m++] = new Array('0802', 'Vision and Mission','/eng/about/object.jsp', '');

menuArr[m++] = new Array('0803', 'News & Notice','/eng/about/notice_list.jsp', '');
menuArr[m++] = new Array('08030101', 'News & Notice','/eng/about/notice_list.jsp', '');
menuArr[m++] = new Array('08030201', 'Photo News','/eng/about/photo_list.jsp', '');

menuArr[m++] = new Array('0804', 'History','/eng/about/history.jsp', '');

menuArr[m++] = new Array('0805', 'Programs','/eng/about/business.jsp', '');

menuArr[m++] = new Array('0806', 'Organization','/eng/about/organization.jsp', '');

menuArr[m++] = new Array('0807', 'Download','/eng/about/application/down.jsp', '');
menuArr[m++] = new Array('080701', 'Forms','/eng/about/application/down.jsp', '');
menuArr[m++] = new Array('080702', 'Online Application','/eng/about/application/login.jsp', '');
menuArr[m++] = new Array('08070201', 'name/password','/eng/about/application/login.jsp', '');
menuArr[m++] = new Array('08070202', 'Sponsorship of research in the liberal arts and social sciences of Asia','/eng/about/application/research_input.jsp', '');

menuArr[m++] = new Array('0808', 'Location','/eng/about/contact.jsp', '');
menuArr[m++] = new Array('080801', 'Seoul Office','/eng/about/contact.jsp', '');
menuArr[m++] = new Array('080802', 'Pohang Office','/eng/about/contact_pohang.jsp', '');



// Others
menuArr[m++] = new Array('09', 'Others','/eng/others/pds_a_list.jsp', '');

menuArr[m++] = new Array('0901', 'Archive','/eng/others/pds_a_list.jsp', '');

menuArr[m++] = new Array('0902', 'newsletter','/eng/others/newsletter.jsp', '');

menuArr[m++] = new Array('0903', 'FAQ','/eng/others/faq_list.jsp', '');

menuArr[m++] = new Array('0904', 'Sitemap','/eng/others/sitemap.jsp', '');



// ASIANET
menuArr[m++] = new Array('10', 'Asia NET', '/asianet/', '');



/**************************************************************************
*	메뉴 링크
**************************************************************************/
function menuLink(str)
{
	for (i=0; i<str.length; i=i+2)
	{
		for (j=0; j<menuArr.length; j++)
		{
			if (str==menuArr[j][0])
			{
				if(menuArr[j][2]=="#")
				{
					alert("Coming Soon")
					return;
				}
				else
				{
					window.location.href=menuArr[j][3] + menuArr[j][2];
					break;
				}
			}
		}
	}
}

/**************************************************************************
*	Location
**************************************************************************/
function dispLinemap(MenuCode)
{
	var c_no = 0;

	for (i=0; i<MenuCode.length; i=i+2)
	{
		SubCode = MenuCode.substring(0, i+2);
		for (j=0; j<menuArr.length; j++)
		{
			if (menuArr[j][0]==SubCode)
			{
				if (c_no == 0)
				{
					document.write("<a HREF='"+menuArr[i][2]+"' class='a_location'>Home</a>");
					c_no = c_no + 1;
				}

				if ((MenuCode!=SubCode) && (menuArr[j][2].length > 0))
				{
					document.write(" > ");
					document.write("<a href='"+menuArr[j][2]+"' class='a_location'>"+menuArr[j][1]+"</a>");
				}
				else
				{
					document.write(" > ");
					document.write("<span class='location_here'>"+menuArr[j][1]+"</span>");
				}
				break;
			}
		}
	}
}


/**************************************************************************
*	toggle
**************************************************************************/
function Toggle(id){
	var i;
	var cur_display;
	var cur_ele;
	var ele;
	idL = id.length;
	ida = id.substring(0,2);
	idb = id.substring(2,2);

	cur_ele = document.all["sub" + id];
	cur_display = cur_ele.style.display;

	for (i = 1; i < 20; i++){
		if(idL > 2){
			if (i > 9){
				ele = document.all["sub" + ida + i];
			} else {
				ele = document.all["sub" + ida + "0" + i];
			}
		} else {
			if (i > 9){
				ele = document.all["sub" + i];
			} else {
				ele = document.all["sub" + "0" + i];
			}
		}
		if (ele != null)	{
			if ("0" + i != id){
				ele.style.display = "none";
			}
		}
	}

	if (cur_display == "none"){
		cur_ele.style.display = "";
	} else {
		cur_ele.style.display = "none";
	}
}


/**************************************************************************
*	selectedMenu
**************************************************************************/
function selectedMenu()
{
		imageName = eval("document.images.navi"+dispNum.substring(0,8));
		imageName.src = "/static/images/4depthNavi/"+dispNum.substring(0,8)+"_.gif";
}
