/******************************************************************************************
' ÇÁ·Î±×·¥ ID : menuUrl.js
' ÇÁ·Î±×·¥ ¸í : °øÅë¸Þ´º
' ÀÛ   ¼º  ÀÚ : ¾Æ¹«³ª
' ¼ö   Á¤  ÀÚ :
' ÃÖÃÊ ÀÛ¼ºÀÏ : 2003.12.30
' ÃÖÁ¾ ÀÛ¼ºÀÏ :
' ³»¿ë¼³¸í    : format / Form Element / string / Cookie / check /µî¿¡ ´ëÇÑ ±âº» °øÅëÇÔ¼öµé
' Âü °í »ç Ç× :
*************************************** ÇÔ¼ö list ***************************************/

function isEventPeriod() {
	var dtNow = new Date();
	var dtStart  = new Date(2004,8,12,22,00);  // Month : 0~11... !!!!!!!
	var dtEnd    = new Date(2004,8,12,22,30);  // Month : 0~11... !!!!!!!
	if ( dtNow < dtStart ){return 1;}
	else if ( dtStart <= dtNow && dtNow <= dtEnd){return 2;}
	else {return 3;}
}
                          
function funTopMenuUrl(MainGubun, subGubun) {
    var l_szUrl = "";
    var l_szWinGb = "N";
    
    if( MainGubun == "M000") {          //ÃÖ»ó´Ü¸Þ´º
        if( subGubun            == "S010" ) {          
            //È¨
            l_szUrl = "http://www.seoul.go.kr/";
            l_szWinGb = "T";
        } else if ( subGubun    == "S020" ) {  
            //ÀÌ¿ë¾È³»
            l_szUrl = "http://www.seoul.go.kr/siteuseguide/guide.html";
        } else if ( subGubun    == "S030" ) {  

            //ÀüÀÚ¿ìÆí

            l_szUrl = "http://citizen.seoul.kr/";
            l_szWinGb = "T";
			//window.open('http://www.seoul.go.kr/org/organ/main_admin/em_email/1212695_5189.html','email','resizable=no,width=410, height=440,left=20,top=20');
	    //return true;
        } else if ( subGubun    == "S040" ) {  
            //»çÀÌÆ® Áöµµ
            l_szUrl = "http://www.seoul.go.kr/siteuseguide/sitemap.html";
        } else if ( subGubun    == "S050" ) {  
            //Àå¾ÖÀÎ
            l_szUrl = "http://friend.metro.seoul.kr";
        } else if ( subGubun    == "S060" ) {  
            //¾î¸°ÀÌ
            l_szUrl = "http://kid.metro.seoul.kr";
        } else if ( subGubun    == "S070" ) {  
            //¿©¼º½Ã´ë
            l_szUrl = "http://women.seoul.go.kr";
        } else if ( subGubun    == "S080" ) {  
            //English
            l_szUrl = "http://www.e-seoul.go.kr/";
            l_szWinGb = "Y";
        } else if ( subGubun    == "S090" ) {  
            //ÀÏº»¾î
            l_szUrl = "http://japanese.seoul.go.kr/";
            l_szWinGb = "Y";
        } else if ( subGubun    == "S100" ) {  
            //Áß¹®
            l_szUrl = "http://chinese.seoul.go.kr/";
            l_szWinGb = "Y";
        } 
    } else if( MainGubun == "M001") {          //¼­¿ï Æ¯º°½Ã
        if( subGubun            == "S000" ) {          
            //¼­¿ï Æ¯º°½Ã
            l_szUrl = "http://www2.seoul.go.kr/focus/seoul/mayor/index.html";
        } else if( subGubun            == "S010" ) {          
            //½ÃÀå½Ç
            l_szUrl = "http://www2.seoul.go.kr/focus/seoul/mayor/index.html";
        } else if ( subGubun    == "S020" ) {  
            //¼­¿ï¼Ò°³
            l_szUrl = "http://www.seoul.go.kr/org/introduction/symbol/index.html";
        } else if ( subGubun    == "S030" ) {  
            //¼­¿ïÀÇ Åë°è
            l_szUrl = "http://www.seoul.go.kr/org/introduction/stat/index.html";
        } else if ( subGubun    == "S040" ) {  
            //ÇàÁ¤Á¶Á÷
            l_szUrl = "http://www.seoul.go.kr/org/organ/organguide/index.html";
        }else if ( subGubun    == "S050" ) {  
            //ÀÚÄ¡¹ý±Ô ´º Ã¢À¸·Î
            l_szUrl = "http://legal.seoul.go.kr/main/html/index.php";
        } else if ( subGubun    == "S060" ) {  
            //°£Çà¹°
            l_szUrl = "http://www2.seoul.go.kr/focus/index2.html";
        } else if ( subGubun    == "S070" ) {  
            //½ÃÃ»¾È³»
            l_szUrl = "http://www.seoul.go.kr/org/guidance/location/index.html";
        }
    } else if (MainGubun == "M002") {   //½ÃÁ¤Á¤º¸
        if( subGubun            == "S000" ) {          
            //½ÃÁ¤Á¤º¸
            l_szUrl = "http://www.seoul.go.kr/info/index.html";
        } else if( subGubun     == "S010" ) {          
            //½ÃÁ¤´º½º
            l_szUrl = "http://www.seoul.go.kr/org/organ/main_admin/top_majornews/index.html";
        } else if ( subGubun    == "S020" ) {  
            //ÁÖ¿ä½ÃÃ¥
            l_szUrl = "http://www.seoul.go.kr/info/mayorpolicy/index.html";
        } else if ( subGubun    == "S030" ) {  
            //ºÐ¾ßº°Á¤º¸
            l_szUrl = "http://www.seoul.go.kr/info/themainfo/category/index.html";
        } else if ( subGubun    == "S040" ) {  
            //½ÃÁ¤ÁÖ¿äÀÏÁö
            l_szUrl = "http://www2.seoul.go.kr/focus/civicinfo/datapool/diary/";
        } else if ( subGubun    == "S050" ) {  
            //ÇàÁ¤Á¤º¸°øÇ¥
            l_szUrl = "http://www.seoul.go.kr/info/adlawinfo/index.html";
        } else if ( subGubun    == "S060" ) {  
            //ÇàÁ¤Á¤º¸°øÇ¥
            l_szUrl = "http://www.seoul.go.kr/info/budget/2004/budget_info/index.html";
        } 


		
        
    } else if (MainGubun  == "M003") {   //ÀüÀÚ¹Î¿ø
        if( subGubun            == "S000" ) {
            //ÀüÀÚ¹Î¿ø
            l_szUrl = "http://www.seoul.go.kr/affair/index.html";
        } else if( subGubun            == "S010" ) {
            //ÀÌ¿ë¾È³»
            l_szUrl = "http://www.seoul.go.kr/affair/index.html";
        } else if ( subGubun    == "S020" ) {
            //¹Î¿ø½ÅÃ»
            l_szUrl = "http://www.seoul.go.kr/affair/apply/index.html";
        } else if ( subGubun    == "S030" ) {
            //»ó´ã/½Å°í
            l_szUrl = "http://www.seoul.go.kr/affair/counsel/index.html";
        } else if ( subGubun    == "S040" ) {
            //ÇàÁ¤Á¤º¸°ø°³Ã»±¸
            l_szUrl = "http://www.seoul.go.kr/affair/admin/index.html";
        } else if ( subGubun    == "S050" ) {
            //¹Î¿øÃ³¸®°ø°³
            l_szUrl = "http://www.seoul.go.kr/affair/minwon/index.html";
        } else if ( subGubun    == "S060" ) {
            //½Ã¹Î°¨»ç¿ÈºÎÁî¸¸
            l_szUrl = "http://www.seoul.go.kr/affair/citizen/index.html";
        } else if ( subGubun    == "S070" ) {
            //Ã»·Å°è¾à¿ÈºÎÁî¸¸
            l_szUrl = "http://www.seoul.go.kr/affair/integrity/index.html";
        } else if ( subGubun    == "S080" ) {
            //FAQ
            l_szUrl = "http://www.seoul.go.kr/affair/faq/index.html";
        }
    } else if (MainGubun == "M004") {//½Ã¹ÎÂü¿©
        if( subGubun            == "S000" ) {
            //½Ã¹ÎÂü¿©
            l_szUrl = "http://seoul.go.kr/participation/index.html";
            //l_szUrl = "http://forum-app.seoul.go.kr/forum_new/main.html";
        } else if( subGubun     == "S010" ) {
            //Á¤Ã¥Åä·Ð¹æ
            l_szUrl = "http://forum-app.seoul.go.kr/forum_new/main.html";
        } else if ( subGubun    == "S020" ) {
            //ÀÚÀ¯Åä·Ð¹æ
            l_szUrl = "http://www.seoul.go.kr/seoul/jsp/conn/ConnectToAllSV.jsp?kind=BBS0002";
        } else if ( subGubun    == "S030" ) {
            //ÀÚÀ¯°Ô½ÃÆÇ
            l_szUrl = "http://php-app1.seoul.go.kr/freeboard/main.html";
        } else if ( subGubun    == "S040" ) {
            //Ã¢¾È/Á¦¾È¸¶´ç
            l_szUrl = "http://seoul.go.kr/participation/jean/jean.html";
        } else if ( subGubun    == "S050" ) {
            //¿Â¶óÀÎ¿©·ÐÁ¶»ç
            l_szUrl = "http://210.90.46.46/parti/poll_list.asp";
        } else if ( subGubun    == "S060" ) {
            //½Ã¹Î¿¹»êÂü¿©
            l_szUrl = "http://www.seoul.go.kr/seoul/jsp/conn/ConnectToAllSV.jsp?kind=BBS0005";
        } else if ( subGubun    == "S070" ) {
            //À¥µ¿È£È¸
            l_szUrl = "http://club.seoul.go.kr/";
            l_szWinGb = "N";
        } 
    } else if (MainGubun == "M005") {//¼­¿ï¶óÀÌÇÁ
        if( subGubun            == "S000" ) {
            //¼­¿ï¶óÀÌÇÁ
            l_szUrl = "http://www.seoul.go.kr/life/index.html";
        } else if( subGubun     == "S010" ) {
            //¶óÀÌÇÁ ÀÌº¥Æ®
            l_szUrl = "http://www.seoul.go.kr/life/event/index.html";
        } else if ( subGubun    == "S020" ) {
            //»ýÈ°ÀÇ ¹ß°ß
            l_szUrl = "http://www.seoul.go.kr/life/life/index.html";
        } else if ( subGubun    == "S030" ) {
            //´ë»óº° Á¤º¸
            l_szUrl = "http://www.seoul.go.kr/life/info/index.html";
        } else if ( subGubun    == "S040" ) {
            //¿¹¾à/½ÅÃ» ¼­ºñ½º
            l_szUrl = "http://www.seoul.go.kr/life/service/index.html";
        } else if ( subGubun    == "S050" ) {
            //»ê¾÷/°æÁ¦
            l_szUrl = "http://econo1.seoul.go.kr/econo/support/ct/ct1.jsp";
            l_szWinGb = "N";
        } 
    } else if (MainGubun == "M006") {//¹®È­°ü±¤
        if( subGubun            == "S000" ) {
            //¹®È­°ü±¤
			//call_main_popup('040708','1212686','440','410','20','20');
			l_szUrl = "http://www.visitseoul.net/korean_new/index.htm";
        } else if( subGubun     == "S010" ) {
            //¼­¿ï¼­¿ï
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/about_main.htm";
        } else if ( subGubun    == "S020" ) {
            //¼­¿ï¸í¼Ò
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/see_main.htm";
        } else if ( subGubun    == "S030" ) {
            //¼­¿ïÅ½¹æ
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/visit_main.htm";
        } else if ( subGubun    == "S040" ) {
            //¼­¿ï¹®È­
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/culture_main.htm";
        } else if ( subGubun    == "S050" ) {
            //¼­¿ï¿©ÇàÁ¤º¸
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/tour_main.htm";
        } else if ( subGubun    == "S060" ) {
            //ÀÚ·á½Ç
            l_szUrl = "http://www.visitseoul.net/korean_new/sub_main/dataroom_main.htm";
			//call_main_popup('040708','1212686','440','410','20','20');
        } 
    }
    
    //¸µÅ©
    if( l_szWinGb == "Y") {
        var win =window.open(l_szUrl, "differWindows", "toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes, resizable=yes");
        win.location.href=l_szUrl;
    } else if (l_szWinGb == "C") {
        //alert("ÁØºñÁßÀÔ´Ï´Ù. 2004³â01¿ù10ÀÏ¿¡ ¿ÀÇÂÇÕ´Ï´Ù.");
        alert("¼­ºñ½º ÀÏ½Ã ÁßÁöÁßÀÔ´Ï´Ù.");
    } else if( l_szWinGb == "D") {
        var win =window.open(l_szUrl, "differWindows", "toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=auto, resizable=no, width=400,height=530");
        win.location.href=l_szUrl;
    } else if ( l_szWinGb =="T") {
        parent.parent.parent.location.href= l_szUrl;
    } else  {
        document.location.href= l_szUrl;
    } 
}