function home()
{
    location.href = UrlThis + "/indexdev.html";
}
function needLogin()
{
    alert("please login!");
}
function menuGo(menu)
{


    switch(menu)
    {        
        
        
        case "home" :
            location.href = UrlThis + "/main.html";
            break;
        //guide  
        case "guide1":
            //NewWindow('/guide/main/m_guide2.html','viewScenario',400, 600,'scrollbars=no,resizable=no','center')
            NewWindow('/guide/pops/20081203/gpop_20081203.html','viewMainGuide20081203',659, 530,'scrollbars=no,resizable=no','center')
            break;
        case "guide2":
            NewWindow('/guide/main/m_guide1.html','viewScenario',400, 600,'scrollbars=no,resizable=no','center')
            break;
         //¸¶ÀÌ ÆäÀÌÁö
        case "myPage" :
            //location.href = DOMAIN_SECURE + "/member/change/mstep1.html";
            //top.window.redirectAuths(DOMAIN_SECURE + "/member/change/mstep1.html",false);
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                viewMyPage();
            break;
         //PC¹æ
        //Guide >intro 
        case "1_1_1" :
            location.href = UrlThis + "/guide/info_features.html";
            break;
        //Guide > What is K.O.S.?
        case "1_2_1" :
            location.href = UrlThis + "/guide/item_race.html";
            break;
        //Guide > Backdrop
        case "1_3_1" :
            location.href = UrlThis + "/guide/started_control.html";
            break;
  

        //Community > Announcements
        case "2_1_1" :
            location.href = UrlThis + "/community/Announcements_list.html";
            break; 
        //Community > Events
        case "2_1_2" :
            location.href = UrlThis + "/community/Event_list.html";
            break;           
        //Community > clan search
         case "2_2_1" :
            window.open( UrlThis + "/forum_action.asp");
			//location.href = UrlThis + "/community/page/g_pro.html";
            break;    
		
		/*case "2_2_1" :
            location.href = UrlThis + "/clan/clan_info.html";
            break;                    
          //Community > form clan
        case "2_2_2" :
            location.href = UrlThis + "/clan/clan_make.html";
            break;                    
        //Community > disband clan
        case "2_2_3" :
            location.href = UrlThis + "/community/page/g_pro.html";
            break;                    
        //Community > disband clan           
        case "2_2_4" :
            location.href = UrlThis + "/community/page/g_pro.html";
            break;                    
        
		//Community > forum       
        case "2_3_1" :
            window.open("http://kos.dontblynk.com/forum_action.asp");
			//location.href = UrlThis + "/community/page/g_pro.html";
            break;                    
		*/
   
        //Ranking > individual(weekly)
		case "3_1_1" :
            location.href = UrlThis + "/ranking/overall_rank.html";
            break;
		
        
		//Ranking > individual(overall)
        case "3_2_1" :
            location.href = UrlThis + "/ranking/personal_rank.html";
            break;            

        
		//Ranking > overall rank
		case "3_3_1" :
            location.href = UrlThis + "/ranking/crash_downs.html";
            break;
		
        //Ranking > individual(weekly)
        case "3_4_1" :
            location.href = UrlThis + "/ranking/time_attack.html";
            break;            
       
		
		

        //Downloads > game/driver
        case "4_1_1" :
            location.href = UrlThis + "/download/game_driver.html";
            break;
        //Downloads > wallpapers
        case "4_2_1" :
            location.href = UrlThis + "/download/media.html";
            break;
            break;
     

/*
        //Gun shop > gun shop main
        case "5_1_1" :
            location.href = UrlThis + "/clan/web/index.html";
            break;
        //Gun shop >weaponry
        case "5_2_1" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/make.html";
            break;     
        //Gun shop > initialize
        case "5_2_2" :
            location.href = UrlThis + "/clan/web/match/list.html";
            break;     
        //Gun shop > slot
        case "5_2_3" :
            location.href = UrlThis + "/clan/web/ints/list.html";
            break;                
        //Gun shop > character
        case "5_2_4" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/close.html";
            break;

        //Gun shop > funcion
        case "5_2_5" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/make.html";
            break;     
        //Gun shop > miisc.
        case "5_2_6" :
            location.href = UrlThis + "/clan/web/match/list.html";
            break;     
        //Gun shop > shop guide
        case "5_3_1" :
            location.href = UrlThis + "/clan/web/ints/list.html";
            break;                
        //Gun shop > purchased items
        case "5_4_1" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/close.html";
            break;
        //Gun shop > purchased items
        case "5_4_1" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/close.html";
            break;
        //Gun shop > redeem code
        case "5_5_1" :
            if(UserID=="")
                top.window.redirectAuths(document.location.href,false);
            else
                location.href = UrlThis + "/clan/web/close.html";
            break;
*/

        //etc
        default :
            alert("coming soon");
            break;
    }    
}
function showSub()
{
    if(subMenu.style.display == 'none'){subMenu.style.display = ''}
    else{subMenu.style.display = 'none';}
}