function home()
{
    location.href = UrlThis + "/main.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/about.html";
            break;
        //Guide > What is K.O.S.?
        case "1_1_1" :
            location.href = UrlThis + "/guide/about.html";
            break;
        //Guide > Backdrop
        case "1_1_2" :
            location.href = UrlThis + "/guide/Backdrop.html";
            break;
        //Guide > Setup
        case "1_2_1" :
            location.href = UrlThis + "/guide/Setup.html";
            break;

         //Guide > interface
        case "1_2_2" :
            location.href = UrlThis + "/guide/interface.html";
            break;
        //Guide > controls
        case "1_2_3" :
            location.href = UrlThis + "/guide/controls.html";
            break;            
        //Guide > maps
        case "1_3_1" :
            location.href = UrlThis + "/guide/maps.html";
            break;
        //Guide > modes
        case "1_3_2" :
            location.href = UrlThis + "/guide/modes.html";
            break;
        //Guide > characters
        case "1_3_3" :
            location.href = UrlThis + "/guide/characters.html";
            break;  
        //Guide > weapons
        case "1_3_4" :
            location.href = UrlThis + "/guide/weapons.html";
            break;                      
        //Guide > skills
        case "1_4_1" :
            location.href = UrlThis + "/guide/skills.html";
            break;        
        //Guide > multikill
        case "1_4_2" :
            location.href = UrlThis + "/guide/multikill.html";
            break;     
        //Guide > al system
        case "1_4_3" :
            location.href = UrlThis + "/guide/ai.html";
            break;                   
        //Guide > pro system
        case "1_4_4" :
            location.href = UrlThis + "/guide/pro.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" :
            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 + "/clan/board.html";
            break;                    
        //Community > disband clan           
        case "2_2_4" :
            location.href = UrlThis + "/clan/clan_closeform.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 > overall rank
		case "3_1_1" :
            location.href = UrlThis + "/ranking/overall_rank.html";
            break;
		
        //Ranking > individual(weekly)
        case "3_2_1" :
            location.href = UrlThis + "/ranking/ranking.html?RankingType=WEEK";
            break;            
        //Ranking > individual(overall)
        case "3_3_1" :
            location.href = UrlThis + "/ranking/ranking.html?RankingType=ALL";
            break;                             
        //Ranking > clan(weekly)
        case "3_4_1" :
            location.href = UrlThis + "/clanranking/ranking.html?RankingType=WEEK";
            break;            
        //Ranking > clan(overall)
        case "3_5_1" :
            location.href = UrlThis + "/clanranking/ranking.html?RankingType=ALL";
            break;            
		
		

        //Downloads > game/driver
        case "4_1_1" :
            location.href = UrlThis + "/downloads/driver.html";
            break;
        //Downloads > wallpapers
        case "4_2_1" :
            location.href = UrlThis + "/downloads/wallpapers.html";
            break;
            break;
        //Downloads > movies
        case "4_3_1" :
            location.href = UrlThis + "/downloads/movies.html";
            break;
        //Downloads > screenshots
        case "4_4_1" :
            location.href = UrlThis + "/downloads/screenshots.html";
             break;
  
  

       //Gun shop > gun shop main
        case "5_1_1" :
            location.href = UrlSealShop + "/mall/Category.html?CateID=1";
            break;
        //Gun shop >weaponry
        case "5_1_2" :
            location.href = UrlSealShop + "/mall/Category.html?CateID=2";
            break;     
        //Gun shop > initialize
        case "5_1_3" :
            location.href = UrlSealShop + "/mall/Category.html?CateID=3";
            break;     
        //Gun shop > slot
        case "5_1_4" :
            location.href = UrlSealShop + "/mall/Category.html?CateID=4";
            break;                
        //Gun shop > character
        case "5_3_1" :
            location.href = UrlSealShop + "/mall/Purchased_items.html";
            break;

        //Gun shop > funcion
        case "5_5_1" :
            location.href = UrlSealShop + "/redeem/coupon.html";
            break;     
        //Gun shop > miisc.
        case "5_4_1" :
            location.href = UrlSealShop + "/gift/gift_box.html";
            break;     
        
        case "5_2_1" :
            location.href = UrlSealShop + "/guide/shop_guide.html";
            break;     

        //etc
        default :
            alert("coming soon!");
            break;
    }    
}
function showSub()
{
    if(subMenu.style.display == 'none'){subMenu.style.display = ''}
    else{subMenu.style.display = 'none';}
}