
/****************************************************************
 *  location set
 ****************************************************************/
	function location_name(name){
	
		if(typeof(document.all['location_name'])!='undefined' && name != "" && typeof(name) !='undefined') {
			document.getElementById("location_name").innerHTML = "<img src='/images/portal/_button/icon_arrow01.gif' width='8' height='7' align='absmiddle'> " + name;
		}
		
	}
	
/****************************************************************
 *  ´ã´çÀÚÁ¤º¸ set
 ****************************************************************/
	function menu_owner(dept, owner, tel,fax,email){
    	
    	if(typeof(document.all['menu_owner'])!='undefined') {
    		if (dept.length > 0) {
    		    document.getElementById("menu_owner").innerHTML = 
    		    	"<span align=center><table width='550' border='0' cellspacing='5' cellpadding='0' align=center>" +
			        "<tr> " +
			        "  <td class='menu_admin'>¸Þ´º°ü¸®ÀÚ : </td>" +
			        "  <td class='menu_admin'><font color='5a5a5a'>" + dept + ", " + owner + " ÀüÈ­: " + tel + " ÀÌ¸ÞÀÏ: " + email + "</font></td>" +
			        "</tr>" +
		            "</table></span>";
    		}
    		else {
    		    document.getElementById("menu_owner").innerHTML = 
    		    	"<span align=center><table width='550' border='0' cellspacing='5' cellpadding='0' align=center>" +
			        "<tr> " +
			        "  <td class='menu_admin'>¸Þ´º°ü¸®ÀÚ : </td>" +
			        "  <td class='menu_admin'><font color='5a5a5a'>" +
			        "    º¸°Çº¹ÁöºÎ ÀüÃ¼ Á÷¿øÀ» °Ë»öÇÏ½Ã·Á¸é Á÷¿ø°Ë»ö ¹öÆ°À» Å¬¸¯ ÇØÁÖ¼¼¿ä. </font>" +
			        "    <a href=javascript:GoUrl('P_05_04_03')><img src='/images/portal/_button/btn_member.gif' alt=Á÷¿ø°Ë»ö width=56 height=18 border=0 align=absmiddle></a> " +
			        "</td>" +
			        "</tr>" +
			        "</table></span>";
			}
			
    	}
	}
	
/****************************************************************
 *  ENGLISH ´ã´çÀÚÁ¤º¸ set
 ****************************************************************/
	function menu_owner_english(dept, owner, tel, fax, email)
	{
    	if(typeof(document.all['menu_owner'])!='undefined')
    	{
    		if (dept.length > 0)
    		{
    		    document.getElementById("menu_owner").innerHTML = 
    		    	"<span align=center><table width='550' border='0' cellspacing='5' cellpadding='0' align=center>" +
			        "<tr> " +
			        "  <td class='menu_admin'>Menu Admin : </td>" +
			        "  <td class='menu_admin'><font color='5a5a5a'>" + dept + ", " + owner + " Tel: " + tel + " E-mail: " + email + "</font></td>" +
			        "</tr>" +
		            "</table></span>";

    		} else {

    		    document.getElementById("menu_owner").innerHTML = 
    		    	"<span align=center><table width='525' border='0' cellspacing='5' cellpadding='0'>" +
			        "<tr> " +
			        "  <td width='82' valign='top' class='menu_admin'>Menu Admin : </td>" +
			        "  <td class='menu_admin'><font color='5a5a5a'>Please click on &quot;Search Staff&quot; button in order to look up through all staffs." +
			        "    <a href=javascript:GoUrl('E_01_06')><img src='/images/english/_button/btn_member.gif' alt='Search Staff' width='78' height='18' vspace='3' border='0' align='absmiddle'></a></font> " +
			        "</td>" +
			        "</tr>" +
			        "</table></span>";
			}
    	}
	}


/****************************************************************
 *  portal top menu link
 ****************************************************************/
 	function jsPortalTopmenu(fid) {
 		
 		//È¨
 		if (fid == 1) {
 			top.location.href = '/';
 			return;
 		}
 		
 		//È¸¿ø°¡ÀÔ
 		if (fid == 2) {
 			location.href = '/user.tdf?a=user.member.MemberApp&c=1001&mc=P_08_01';
 			return;
 		}
 		
 		//·Î±×ÀÎ
 		if (fid == 3) {
 			location.href = '/user.tdf?a=user.login.LoginApp&c=3001&mc=P_08_02';
 			return;
 		}
 		
 		//È¸¿øÁ¤º¸¼öÁ¤
 		if (fid == 4) {
 			location.href = '';
 			return;
 		}
 		
 		//·Î±×¾Æ¿ô
 		if (fid == 5) {
 			location.href = '/user.tdf?a=user.login.LoginApp&c=1003&mc=P_08_02';
 			return;
 		}
 		
 		//»çÀÌÆ®¸Ê
 		if (fid == 6) {
 			location.href = '/user.tdf?a=user.portal.sitemap.SitemapApp&c=1002&mc=P_11&fn=sitemap.htm';
 			return;
 		}
 		
 		//¾î¸°ÀÌ
 		if (fid == 7) {
 			//location.href = '/user.tdf?a=user.child.index.IndexApp&c=1001';
            top.location.href = 'http://kid.mohw.go.kr';
 			return;
 		}
 		
 		//¿©¼º
 		if (fid == 8) {
 			//location.href = '/user.tdf?a=user.woman.index.IndexApp&c=1001';
            top.location.href = 'http://women.mohw.go.kr';
 			return;
 		}
 		
 		//³ëÀÎ
 		if (fid == 9) {
 			window.open('/silver.cafe');
 			return;
 		}
 		
 		//¿µ¹®
 		if (fid == 10) {
 			//location.href = '/user.tdf?a=user.portal.eng.index.IndexApp&c=1001';
            top.location.href = 'http://english.mohw.go.kr';
 			return;
 		}
 		
 	}


/****************************************************************
 *  Portal_eng top menu link
 ****************************************************************/
 	function jsEnglishTopmenu(fid) 
 	{
 		//HOME
 		if (fid == 1) {
 			//location.href = '/user.tdf?a=user.portal.eng.index.IndexApp&c=1001';
            top.location.href = 'http://english.mohw.go.kr';
 			return;
 		}
 		
 		//JOIN US
 		if (fid == 2) {
	 		location.href = '/user.tdf?a=user.english.member.MemberApp&c=1003&mc=E_07_01';
 			return;
 		}
 		
 		//LOGIN
 		if (fid == 3) {
 			location.href = '/user.tdf?a=user.english.login.LoginApp&c=1001&mc=E_07_02';
 			return;
 		}
 		
 		//LOGOUT
 		if (fid == 9) {
 			location.href = '/user.tdf?a=user.english.login.LoginApp&c=1003&mc=E_07_02';
 			return;
 		}
 		
 		//SITEMAP
 		if (fid == 4) {
 			location.href = '/user.tdf?a=user.portal.eng.sitemap.SitemapApp&c=1002&mc=E_12&fn=sitemap.htm';
 			return;
 		}
 		
 		//Korean
 		if (fid == 5) {
	 		//location.href = '/user.tdf?a=user.portal.index.IndexApp&c=1001';
            top.location.href = 'http://www.mohw.go.kr';
 			return;
 		}
 		
 		//Kid
 		if (fid == 6) {
	 		//location.href = '/user.tdf?a=user.child.index.IndexApp&c=1001';
            top.location.href = 'http://kid.mohw.go.kr';
 			return;
 		}
 		
 		//Women
 		if (fid == 7) {
	 		//location.href = '/user.tdf?a=user.woman.index.IndexApp&c=1001';
            top.location.href = 'http://women.mohw.go.kr';
 			return;
 		}
 		
 		//Silver
 		if (fid == 8) {
 			window.open('http://www.mohw.go.kr/silver.cafe');
 			return;
 		}

 	}



/****************************************************************
 *  woman top menu link
 ****************************************************************/
 	function jsWomanTopmenu(fid) 
 	{
 		//È¨
 		if (fid == 1) {
 			//location.href = '/user.tdf?a=user.woman.index.IndexApp&c=1001';
            top.location.href = 'http://women.mohw.go.kr';
 			return;
 		}
 		
 		//È¸¿ø°¡ÀÔ
 		if (fid == 2) {
 			location.href = '/user.tdf?a=user.member.MemberApp&c=1001&mc=P_08_01';
 			return;
 		}
 		
 		//·Î±×ÀÎ
 		if (fid == 3) {
	 		location.href = '/user.tdf?a=user.login.LoginApp&c=1001&mc=P_08_02';
 			return;
 		}
 		
 		//·Î±×¾Æ¿ô
 		if (fid == 4) {
 			location.href = '/user.tdf?a=user.login.LoginApp&c=1003&mc=P_08_02';
 			return;
 		}
 		
 		//°ü·Ã±â°ü
 		if (fid == 5) {
 			location.href = '/user.tdf?a=user.woman.orglink.OrgLinkApp&c=5001&mc=W_11_01&tcode=T200505061';
 			return;
 		}
 		
 		//»çÀÌÆ®¸Ê
 		if (fid == 6) {
	 		location.href = '/user.tdf?a=user.woman.sitemap.SitemapApp&c=1002&mc=W_12_01&fn=sitemap.htm';
 			return;
 		}
 		
 		//¿©¼º ¿µ¹® È¨ÆäÀÌÁö
 		if (fid == 7) {
 			//location.href = '/user.tdf?a=user.woman.eng.index.IndexApp&c=1001';
 			top.location.href = '/user.tdf?a=user.woman.eng.index.IndexApp&c=1001';
 			return;
 		}
 		
 		//¾î¸°ÀÌ È¨ÆäÀÌÁö
 		if (fid == 8) {
 			//location.href = '/user.tdf?a=user.child.index.IndexApp&c=1001';
            top.location.href = 'http://kid.mohw.go.kr';
 			return;
 		}
 		
 		//³ëÀÎ È¨ÆäÀÌÁö(»õÃ¢)
 		if (fid == 9) {
 			window.open('http://www.mohw.go.kr/silver.cafe');
 			return;
 		}
 		
 		//º¹ÁöºÎ È¨
 		if (fid == 10) {
	 		//location.href = '/user.tdf?a=user.portal.index.IndexApp&c=1001';
            top.location.href = 'http://www.mohw.go.kr';
 			return;
 		}

 	}

/****************************************************************
 *  woman_eng top menu link
 ****************************************************************/
 	function jsWomanEngTopmenu(fid) 
 	{
 		//HOME
 		if (fid == 1) {
	 		location.href = '/user.tdf?a=user.woman.eng.index.IndexApp&c=1001';
 			return;
 		}
 		
 		//SITEMAP
 		if (fid == 2) {
 			location.href = '/user.tdf?a=user.woman.eng.sitemap.SitemapApp&c=1002&mc=X_12&fn=sitemap.htm';
 			return;
 		}
 		
 		//KOREAN
 		if (fid == 3) {
 			//location.href = '/user.tdf?a=user.woman.index.IndexApp&c=1001';
            top.location.href = 'http://women.mohw.go.kr';
 			return;
 		}
 		
 		//Kid
 		if (fid == 4) {
 			//location.href = '/user.tdf?a=user.child.index.IndexApp&c=1001';
            top.location.href = 'http://kid.mohw.go.kr';
 			return;
 		}
 		
 		//Silver
 		if (fid == 5) {
 			window.open('http://www.mohw.go.kr/silver.cafe');
 			return;
 		}
 		
 		//Main Home
 		if (fid == 6) {
 			//location.href = '/user.tdf?a=user.portal.index.IndexApp&c=1001';
            top.location.href = 'http://www.mohw.go.kr';
 			return;
 		}

 	}


/****************************************************************
 *  Child top menu link
 ****************************************************************/
 	function jsChildTopmenu(fid) 
 	{
 		//º¸°Çº¹ÁöºÎ ¾î¸°ÀÌ È¨
 		if (fid == 1) {
	 		//location.href = '/user.tdf?a=user.child.index.IndexApp&c=1001';
            top.location.href = 'http://kid.mohw.go.kr';
 			return;
 		}
 		
 		//»çÀÌÆ® ¸Ê
 		if (fid == 2) {
 			location.href = '/user.tdf?a=user.child.sitemap.SitemapApp&c=1002&mc=C_12&fn=sitemap.htm';
 			return;
 		}
 		
 		// E-Card
 		if (fid == 4) {
	 		location.href = '/user.tdf?a=user.board.BoardApp&c=2001&mc=C_07_01&board_id=c_a1_ecard';
 			return;
 		}
 		
 		//¿©¼º È¨ÆäÀÌÁö
 		if (fid == 5) {
 			//location.href = '/user.tdf?a=user.woman.index.IndexApp&c=1001';
            top.location.href = 'http://women.mohw.go.kr';
 			return;
 		}
 		
 		// ³ëÀÎ È¨ÆäÀÌÁö(»õÃ¢)
 		if (fid == 6) {
 			window.open('http://www.mohw.go.kr/silver.cafe');
 			return;
 		}
 		
 		// º¸°Çº¹ÁöºÎ È¨ÆäÀÌÁö
 		if (fid == 7) {
 			//location.href = '/user.tdf?a=user.portal.index.IndexApp&c=1001';
            top.location.href = 'http://www.mohw.go.kr';
 			return;
 		}

 	}

 	
/****************************************************************
 *  portal footer menu link
 ****************************************************************/
 	function jsPortalFootermenu(fid) {
 		
 		//°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
 		if (fid == 1) {
 			location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_04&fn=info04.htm';
 			return;
 		}
 		
 		//ÀúÀÛ±ÇÁ¤Ã¥
 		if (fid == 2) {
 			location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_05&fn=info05.htm';
 			return;
 		}
 		
 		//È¨ÆäÀÌÁöÀÌ¿ë¾È³»
 		if (fid == 3) {
 			location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_01&fn=info01.htm';
 			return;
 		}
 		
 		//Ã£¾Æ¿À½Ã´Â±æ
 		if (fid == 4) {
 			location.href = '/user.tdf?a=user.portal.intro.IntroApp&c=1002&mc=P_05_06&fn=intro06_03.htm';
 			return;
 		}
 		
 		//È¨ÆäÀÌÁöÀÇ°ßÁ¢¼ö
 		if (fid == 5) {
 			location.href = '/user.tdf?a=user.board.BoardApp&c=2001&mc=P_09_03&board_id=p_m9_home';
 			return;
 		}
 		
 		//Á¢¼ÓÅë°è
 		if (fid == 6) {
 			window.open('/count/cnt_main.jsp','','');
 			return;
 		}
 		 		
 	}

 	
/****************************************************************
 *  woman footer menu link
 ****************************************************************/
 	function jsWomanFootermenu(fid) 
 	{
 		//°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
 		if (fid == 1)
 		{
            location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_04&fn=info04.htm';
 			return;
 		}
 		
 		//ÀúÀÛ±ÇÁ¤Ã¥
 		if (fid == 2)
 		{
 		    location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_05&fn=info05.htm';
 			return;
 		}
 		
 		//È¨ÆäÀÌÁöÀÌ¿ë¾È³»
 		if (fid == 3)
 		{
 		    location.href = '/user.tdf?a=user.portal.info.InfoApp&c=1002&mc=P_09_01&fn=info01.htm';
 			return;
 		}
 		
 		//Ã£¾Æ¿À½Ã´Â±æ
 		if (fid == 4)
 		{
 		    location.href = '/user.tdf?a=user.portal.intro.IntroApp&c=1002&mc=P_05_06&fn=intro06_03.htm';
 			return;
 		}
 		
 		//È¨ÆäÀÌÁöÀÇ°ßÁ¢¼ö
 		if (fid == 5)
 		{
 		    location.href = '/user.tdf?a=user.board.BoardApp&c=2001&mc=P_09_03&board_id=p_m9_home';
 			return;
 		}
 	}





	