//ÁÂÃø ³×ºñ°ÔÀÌ¼Ç¹Ù
function changeMenu( index )
{
  var tempType;

  // È®ÀåµÈ Æ®¸® ¼±ÅÃ ½Ã Æ®¸®¸¦ ÁÙÀÎ´Ù.
  if( eval( "MenuExpand" + index ).style.display == "block" )
  {
    eval( "MenuExpand" + index ).style.display = "none";
    eval( "MenuShrink" + index ).style.display = "block";
  } else
  {
    //È®ÀåµÈ Æ®¸®¸¦ ¸ðµÎ ´Ý°í ¼±ÅÃÇÑ Æ®¸®¸¦ È®ÀåÇÑ´Ù.
    for( var i = 1; i < 24; i++ )
    {
      eval( "tempType = typeof( MenuExpand" + i + " );" );
      if( tempType == "object" )
      {
        eval( "MenuExpand" + i ).style.display = "none";
        eval( "MenuShrink" + i ).style.display = "block";
      }
    }
    eval( "MenuExpand" + index ).style.display = "block";
    eval( "MenuShrink" + index ).style.display = "none";
  }
}


//°øÅëÀÌµ¿ÇÔ¼ö
function go( destWord )
{
//  var homeURL = "http://www.baeoom.com";
  var homeURL = "";

  switch( destWord.toLowerCase() )
  {
  case "home":
    document.location.href = '/';//homeURL;
    break;

  case "home.notice":        //°øÁö»çÇ×
    document.location.href = homeURL + "/NewsList.asp";
    break;

  case "home.hotnews":       //¿À´ÃÀÇ ÇÖ´º½º
    document.location.href = homeURL + "/HotNews/NewsList.asp";
    break;

  case "home.lecture.all":   //ÀüÃ¼°­ÁÂ
    document.location.href = homeURL + "/allclass/LectureListAll.asp";
    break;

  case "home.lecture.new":   //½Å±Ô°­ÁÂ
    document.location.href = homeURL + "/allclass/new.asp";
    break;

  case "home.lecture.theme": //Å×¸¶°­ÁÂ
    alert( "ÀÛ¾÷ÁßÀÔ´Ï´Ù." );
    //document.location.href = homeURL + "/allclass/LectureListTheme.asp";
    break;

  case "home.lecture.free":  //¹«·á°­ÁÂ
    alert( "¹«·á°­ÁÂ ¼­ºñ½º´Â 11¿ù 1ÀÏ ºÎ·Î Áß´ÜµÇ¾ú½À´Ï´Ù." );
    //document.location.href = homeURL + "/allclass/LectureListFree.asp";
    break;


  //³ªÀÇ °­ÀÇ½Ç ¸Þ´º
  case "mybaeoom.myinfo":    //È¸¿øÁ¤º¸°ü¸®
    document.location.href = homeURL + "/mybaeoom/memb-infor-change.asp";
    break;

  case "mybaeoom.mylecture": //³ªÀÇ ÇÐ½À
    document.location.href = homeURL + "/mybaeoom/mstudy-state.asp";
    break;

  case "mybaeoom.myselect":  //³»°¡ ÂòÇÑ °­ÁÂ
    document.location.href = homeURL + "/mybaeoom/selst.asp";
    break;


  //È¸»ç¼Ò°³
  case "intro.aboutus":      //¹è¿ò´åÄÄ¼Ò°³
    document.location.href = homeURL + "/introdution/aboutus.asp";
    break;

  case "intro.cooper":       //»ç¾÷Á¦ÈÞ
    document.location.href = homeURL + "/introdution/cooper.asp";
    break;

  case "intro.adver":        //±¤°í¹®ÀÇ
    document.location.href = homeURL + "/introdution/adver.asp";
    break;

  case "intro.contactus":    //Contact Us
    document.location.href = homeURL + "/introdution/contactus.asp";
    break;

  case "intro.agree":        //ÀÌ¿ë¾à°ü
    document.location.href = homeURL + "/introdution/agree.asp";
    break;

  case "intro.rule":         //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
    document.location.href = homeURL + "/introdution/rule.asp";
    break;

  case "intro.employ":       //Ã¤¿ëÁ¤º¸
    document.location.href = homeURL + "/introdution/employ.asp";
    break;



  case "language":
    document.location.href = homeURL + "/language";
    break;

  case "technology":
    document.location.href = homeURL + "/technology";
    break;

  case "exam":
    document.location.href = homeURL + "/exam";
    break;

  case "business":
    document.location.href = homeURL + "/business";
    break;

  case "culture":
    document.location.href = homeURL + "/culture";
    break;

  case "teenteen":
    document.location.href = homeURL + "/teenteen";
    break;

  case "sitemap":
    document.location.href = homeURL + "/introdution/Sitemap.asp";
    break;

  case "kids":
    document.location.href = homeURL + "/kids";
    break;

  case "fun":
    document.location.href = "http://fun.baeoom.com";
    break;

  case "pass":
    document.location.href = "http://www.baeoompass.com";
    break;

  case "career":
    document.location.href = "http://career.baeoom.com";
    break;

  case "esuccess":
    document.location.href = "http://www.esuccess.co.kr";
    break;



  case "cs.program":
    document.location.href = homeURL + "/client/setgu-prog.asp";
    break;

  case "cs.first":
    document.location.href = homeURL + "/client/first.asp";
    break;

  case "cs.1on1":
    document.location.href = "http://help.baeoom.com/erms/self/Main.jsp?_param=QUESTION_ADD_PAGE&site=100000";
    break;

  case "cs.faq":
    document.location.href = "http://help.baeoom.com/erms/self/Main.jsp?_param=FAQ_LIST_TOP_HANDLER&site=100000";
    break;



  case "beready":
    alert( "¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù." );
    break;

  case "mainevent":
    document.location.href = homeURL + "/event/0920_main.asp";
    break;

  case "themeevent1":
    alert( "ÀÌº¥Æ® ±â°£ÀÌ Á¾·áµÇ¾ú½À´Ï´Ù." );
    break;

  case "themeevent2":
    alert( "ÀÌº¥Æ® ±â°£ÀÌ Á¾·áµÇ¾ú½À´Ï´Ù." );
    break;



  default :
    document.location.href = '/';//homeURL;
  }
}
