// ¼öÁ¤/±èÀÏÅÂ/0002/20060104/ÆË¾÷ ¸Þ´º¿¡¼­ ¸ÞÀÏ º¸³»±â ¸ñ·Ï ÀüºÎ Á¦°Å
var gArrCachedAxMenu = new Array();

///// MenuInfo Class /////
function CAxMenuInfo(strMenuName, strDivCode, strParam, strSubMenuName, chNotLoginExec)
{
  this.menuName = strMenuName;
  this.divCode = strDivCode;
  this.param = strParam;
  this.subMenu = strSubMenuName;
  this.notLoginExec = chNotLoginExec; // E : ½ÇÇà, L : ·Î±×ÀÎ ·¹ÀÌ¾î, ³ª¸ÓÁö : ¼û±è

  //this.setData = CAxMenuInfo_setData;
  this.showData = CAxMenuInfo_showData;
}
/*
function CAxMenuInfo_setData(strMenuName, strDivCode, strParam, strSubMenuName)
{
  this.menuName = strMenuName;
  this.divCode = strDivCode;
  this.param = strParam;
  this.subMenu = strSubMenuName;
}
*/
function CAxMenuInfo_showData()
{
  alert(this.menuName+','+this.divCode+','+this.param+','+this.subMenu); // for DEBUG
}

///// MenuInfo Control /////
function getDynamicMenuFromArray(arrMenuData)
{
  var arrCurMenu = new Array(); 
  var midx = 0;
  for(var i=0; i<arrMenuData.length; i+=4)
  {
    arrCurMenu[midx++] = new CAxMenuInfo(arrMenuData[i], arrMenuData[i+1], arrMenuData[i+2], arrMenuData[i+3]);
  }
  return arrCurMenu;
}

// ¸ðµç ¸Þ´º´Â ÀÌ°÷¿¡ µî·ÏÇØµÎ°í »ç¿ë
function getDynamicMenu(arrMenuCode)/*{{{*/
{
  var arrCurMenu = new Array(); 
  var midx = 0;
  for(var i=0; i<arrMenuCode.length; i++)
  {
    switch(arrMenuCode[i])
    {
      case "gohompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("È¨ÇÇ", "gohompy", "", "", "E");
        break;
      case "eartalk" :
        arrCurMenu[midx++] = new CAxMenuInfo("±Ó¼Ó¸»", "eartalk", "", "");
        break;
      case "whoone" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÀÚ Á¤º¸", "whoone", "", "", "E");
        break;
      case "whoonepmang" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÀÚ Á¤º¸", "whoonepmang", "", "", "E");
        break;
      case "guestbook":
        arrCurMenu[midx++] = new CAxMenuInfo("¹æ¸í·Ï º¸±â", "guestbook", "", "", "E");
        break;
			case "memosend" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÂÊÁö º¸³»±â", "memosend", "", "", "L");
        break;
			case "memosend_hompy" :      // È¨ÇÇ¿¡¼­ gen_pa »ç¿ë½Ã ·Î±×ÀÎ ÆäÀÌÁö ÀÌµ¿À» _top¿¡¼­ by ±èÅÂ¿ì
        arrCurMenu[midx++] = new CAxMenuInfo("ÂÊÁö º¸³»±â", "memosend_hompy", "", "", "L");
        break;
      case "smssend" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹®ÀÚ º¸³»±â", "smssend", "", "", "L");
        break;
//      case "mailnew" :
//        arrCurMenu[midx++] = new CAxMenuInfo("¸ÞÀÏ º¸³»±â",  "", "", "L");
//        break;
      case "talk" :
        arrCurMenu[midx++] = new CAxMenuInfo("´ëÈ­ÇÏ±â", "talk", "", "", "L");
        break;
      case "talk_hompy" :       // È¨ÇÇ¿¡¼­ gen_pa »ç¿ë½Ã ·Î±×ÀÎ ÆäÀÌÁö ÀÌµ¿À» _top¿¡¼­ by ±èÅÂ¿ì
        arrCurMenu[midx++] = new CAxMenuInfo("´ëÈ­ÇÏ±â", "talk_hompy", "", "", "L");
        break;
      case "friendadd" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä£±¸·Î Ãß°¡", "", "", "gArrFriendList");
        break;
      case "ditto" :
        arrCurMenu[midx++] = new CAxMenuInfo("µðÅä ±Û º¸±â", "ditto", "", "", "E");
        break;
      case "character" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä³¸¯ÅÍÀÚ¶û º¸±â", "character", "", "", "E");
        break;
      case "teentalk" :
        arrCurMenu[midx++] = new CAxMenuInfo("Æ¾Åå ±Û º¸±â", "teentalk", "", "", "E");
        break;

      case "cjtalk" :
        arrCurMenu[midx++] = new CAxMenuInfo("CJÅå", "cjtalk", "", "", "E");
        break;
      case "blacklistadd" :
        arrCurMenu[midx++] = new CAxMenuInfo("ºí·¢¸®½ºÆ® Ãß°¡", "blacklistadd", "", "");
        break;
      case "friendinfo" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä£±¸¸Þ¸ð", "friendinfo", "", "");
        break;
      case "friendlist" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä£±¸¿¡¼­ Á¦¿Ü", "friendlist", "", "");
        break;
      case "couplelist" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä£±¸¿¡¼­ Á¦¿Ü", "friendlist", "", "");
 
      case "denyinfo" :
        arrCurMenu[midx++] = new CAxMenuInfo("ºí·¢¸®½ºÆ®Á¤º¸", "denyinfo", "", "");
        break;
      case "eartalk" :
        arrCurMenu[midx++] = new CAxMenuInfo("±Ó¼Ó¸»", "eartalk", "", "");
        break;
      case "delingroup" :
        arrCurMenu[midx++] = new CAxMenuInfo("±×·ì¿¡¼­ Á¦¿Ü", "delingroup", "", "");
        break;
      case "newbm" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹æ¼Ûµè±â", "newbm", "", "");
        break;
      case "enterchat" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹æ¼Û¹æ°¡±â", "enterchat", "", "");
        break;
      case "movefriend" :
        arrCurMenu[midx++] = new CAxMenuInfo("±×·ìÀÌµ¿", "movefriend", "", "gArrGroupList");
        break;
      case "deletebm" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹æ¼Û±¹»èÁ¦", "deletebm", "", "");
        break;
      case "changemood" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ç¥Á¤ ¹Ù²Ù±â", "", "", "axMenu12_1");
        break;
      case "styleshopping" :
        arrCurMenu[midx++] = new CAxMenuInfo("Çì¾î½ºÅ¸ÀÏ ¹Ù²Ù±â", "styleshopping", "", "");
        break;
      case "saymallshopping" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä³¸¯ÅÍ ¾ÆÀÌÅÛ ¼îÇÎ", "saymallshopping", "", "");
        break;
      case "mychest" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ ¿ÊÀå", "mychest", "", "");
        break;
      case "chat_mychest" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ ¿ÊÀå", "chat_mychest", "", "");
        break;
      case "myalbum" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ ¾Ù¹ü", "myalbum", "", "");
        break;
      case "myitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ ¾ÆÀÌÅÛ", "myitem", "", "");
        break;
      case "hompymanage" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ È¨ÇÇ °ü¸®", "hompymanage", "", "");
        break;
      case "gomyhompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ È¨ÇÇ °¡±â", "gomyhompy", "", "");
        break;
      case "myprofile" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ »ç¿ëÀÚ Á¤º¸", "myprofile", "", "");
        break;
      case "myprofilepmang" :     // ÇÇ¸Á¿ë
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ »ç¿ëÀÚ Á¤º¸", "myprofilepmang", "", "");
        break;
		  case "changemood_1" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹«Ç¥Á¤", "changemood", ",1&", "");
        break;
      case "changemood_2" :
        arrCurMenu[midx++] = new CAxMenuInfo("¿ô´ÂÇ¥Á¤", "changemood", ",2&", "");
        break;
      case "changemood_3" :
        arrCurMenu[midx++] = new CAxMenuInfo("¿ì´ÂÇ¥Á¤", "changemood", ",3&", "");
        break;
      case "changemood_4" :
        arrCurMenu[midx++] = new CAxMenuInfo("È­³­Ç¥Á¤", "changemood", ",4&", "");
        break;
      case "changemood_5" :
        arrCurMenu[midx++] = new CAxMenuInfo("È²´çÇÑÇ¥Á¤", "changemood", ",5&", "");
        break;
      case "layerforward" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÑ´Ü°è ¾ÕÀ¸·Î", "layerforward", "", "");
        break;
      case "layerbackward" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÑ´Ü°è µÚ·Î", "layerbackward", "", "");
        break;
      case "eliminate" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÃ·¹ÀÌ·ë¿¡¼­ »©±â", "eliminate", "", "");
        break;
      case "insertplayroom" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÃ·¹ÀÌ·ë¿¡ ³Ö±â", "insertplayroom", "", "");
        break;
      case "insertplayroomitem" :  // ÃßÈÄ ÀÌ·±°æ¿ì´Â paramÀ» ÀÌ¿ë¹Ù¶÷
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÃ·¹ÀÌ·ë¿¡ ³Ö±â", "insertplayroomitem", "", "");
        break;
      case "showinfohompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "showinfohompy", "", "");
        break;
      case "sellthishompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("µÇÆÈ±â", "sellthishompy", "", "");
        break;
      case "giftthishompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "giftthishompy", "", "");
        break;
      case "delitemhompy2" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â(»èÁ¦)", "delitemhompy2", "", "");
        break;
      case "useskin" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "useskin", "", "");
        break;
      case "use_cafeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "use_cafeitem", "", "");
        break;
      case "del_cafeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â", "del_cafeitem", "", "");
        break;
      case "stop_cafeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÁßÁö", "stop_cafeitem", "", "");
        break;
      case "info_cafeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "info_cafeitem", "", "");
        break;
      case "view_cafeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "view_cafeitem", "", "");
        break;
      case "use_myfont" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "use_myfont", "", "");
        break;
      case "gift_myfont" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "gift_myfont", "", "");
        break;
      case "del_myfont" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â", "del_myfont", "", "");
        break;
      case "info_myfont" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "info_myfont", "", "");
        break;
      case "previewskin" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "previewskin", "", "");
        break;
      case "giftthishompyetc" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "giftthishompyetc", "", "");
        break;
      case "delitemhompy" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â", "delitemhompy", "", "");
        break;
      case "showinfo2" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸º¸±â", "showinfo2", "", "");
        break;
      case "del_denylist" :
        arrCurMenu[midx++] = new CAxMenuInfo("ºí·¢¸®½ºÆ®¿¡¼­ Á¦¿Ü", "del_denylist", "", "");
        break;
      case "usebubble" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "usebubble", "", "");
        break;
      case "d_preview" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "d_preview", "", "");
        break;
      case "d_detail" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸", "d_detail", "", "");
        break;
      case "d_buy" :
        arrCurMenu[midx++] = new CAxMenuInfo("±¸¸Å", "d_buy", "", "");
        break;
      case "d_gift" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°", "d_gift", "", "");
        break;
      case "##LINE##" :
        arrCurMenu[midx++] = new CAxMenuInfo("##LINE##", "", "", "");
        break;
      case "d_buy_styleplus" :
        arrCurMenu[midx++] = new CAxMenuInfo("½ºÅ¸ÀÏ¹Ù²Ù±â+¿°»ö", "d_buy", "", "");
        break;
      case "coupleinfo" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä¿ÇÃ Á¤º¸", "coupleinfo", "", "");
        break;
      case "delincouple" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ä¿ÇÃ¿¡¼­ Á¦¿Ü", "delincouple", "", "");
        break;
      case "gochatting" :
        arrCurMenu[midx++] = new CAxMenuInfo("Ã¤ÆÃ", "gochatting", "", "");
        break;
      case "goschoolting" :
        arrCurMenu[midx++] = new CAxMenuInfo("½ºÄðÆÃ", "goschoolting", "", "");
        break;
      case "gokkting" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÄôÄôÆÃ", "gokkting", "", "");
        break;
      case "gonoraeting" :
        arrCurMenu[midx++] = new CAxMenuInfo("³ë·¡ÆÃ", "gonoraeting", "", "");
        break;
      case "showinfo" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "showinfo", "", "");
        break;
      case "showinfopmang" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "showinfopmang", "", "");
        break;
      case "sellthis" :
        arrCurMenu[midx++] = new CAxMenuInfo("µÇÆÈ±â", "sellthis", "", "");
        break;
      case "giftthis" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "giftthis", "", "");
        break;
      case "donate" :
        arrCurMenu[midx++] = new CAxMenuInfo("¾Æ¸§´Ù¿î°¡°Ô±âÁõ", "donate", "", "");
        break;
      case "delitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â(»èÁ¦)", "delitem", "", "");
        break;
      case "delfreeitem" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹þ±â", "delfreeitem", "", "");
        break;
      case "delitempmang" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â(»èÁ¦)", "delitempmang", "", "");
        break;
      case "takeoff" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹þ±â", "takeoff", "", "");
        break;
      case "takeon" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÀÔ±â", "takeon", "", "");
        break;
      case "chchest" :
        arrCurMenu[midx++] = new CAxMenuInfo("¿ÊÀåÀÌµ¿", "", "", "gArrChestList");
        break;
      case "chpetchest" :
        arrCurMenu[midx++] = new CAxMenuInfo("¿ÊÀåÀÌµ¿", "", "", "gArrPetChestList");
        break;
      case "usedeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "usedeco", "", "");
        break;
      case "usedecofont" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "usedecofont", "", "");
        break;
      case "stopdecofont" :
        arrCurMenu[midx++] = new CAxMenuInfo("±âº»ÆùÆ®»ç¿ë", "stopdecofont", "", "");
        break;
      case "stopskin" :
        arrCurMenu[midx++] = new CAxMenuInfo("±âº»½ºÅ²»ç¿ë", "stopskin", "", "");
        break;
      case "previewdeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "previewdeco", "", "");
        break;
      case "sendowndeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "sendowndeco", "", "");
        break;
      case "deldeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â", "deldeco", "", "");
        break;
      case "showinfodeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸º¸±â", "showinfodeco", "", "");
        break;
      case "rmvdeco" :
        arrCurMenu[midx++] = new CAxMenuInfo("½ºÆ¼Ä¿/Æ÷½ºÆ®ÀÕ ¶¼±â", "rmvdeco", "", "");
        break;
      case "hp_sd_foremost" :
        arrCurMenu[midx++] = new CAxMenuInfo("¸Ç¾ÕÀ¸·Î", "hp_sd_foremost", "", "");
        break;
      case "hp_sd_forward" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÑ´Ü°è ¾ÕÀ¸·Î", "hp_sd_forward", "", "");
        break;
      case "hp_sd_backward" :
        arrCurMenu[midx++] = new CAxMenuInfo("ÇÑ´Ü°è µÚ·Î", "hp_sd_backward", "", "");
        break;
      case "hp_sd_last" :
        arrCurMenu[midx++] = new CAxMenuInfo("¸ÇµÚ·Î", "hp_sd_last", "", "");
        break;
      case "hp_sd_rm_p" :
        arrCurMenu[midx++] = new CAxMenuInfo("Æ÷½ºÆ®ÀÕ ¶¼±â", "hp_sd_rm_p", "", "");
        break;
      case "hp_sd_rm_s" :
        arrCurMenu[midx++] = new CAxMenuInfo("½ºÆ¼Ä¿ ¶¼±â", "hp_sd_rm_s", "", "");
        break;
      case "putcube" :
        arrCurMenu[midx++] = new CAxMenuInfo("¸ÅÁ÷Å¥ºê ³Ö±â", "putcube", "", "");
        break;
      case "popcube" :
        arrCurMenu[midx++] = new CAxMenuInfo("¸ÅÁ÷Å¥ºê »©±â", "popcube", "", "");
        break;
      case "infomagic":
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "infomagic", "", "");
        break;
      case "usemagic":
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "usemagic", "", "");
        break;
      case "delmagic":
        arrCurMenu[midx++] = new CAxMenuInfo("Áö¿ì±â", "delmagic", "", "");
        break;
      case "magiccubemagic":
        arrCurMenu[midx++] = new CAxMenuInfo("¸ÅÁ÷Å¥ºê³Ö±â", "magiccubemagic", "", "");
        break;
      case "sendownmagic":
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°ÇÏ±â", "sendownmagic", "", "");
        break;
      case "resaleownmagic":
        arrCurMenu[midx++] = new CAxMenuInfo("µÇÆÈ±â", "resaleownmagic", "", "");
        break;
      case "birthdaymemo":
        arrCurMenu[midx++] = new CAxMenuInfo("»ýÀÏÃàÇÏ ÂÊÁö º¸³»±â", "birthdaymemo", "", "", "L");
        break;
      case "giftsaymall":
        arrCurMenu[midx++] = new CAxMenuInfo("¼¼ÀÌ¸ô ¼±¹°ÇÏ±â", "giftsaymall", "", "");
        break;
      case "giftgamemall":
        arrCurMenu[midx++] = new CAxMenuInfo("°ÔÀÓ¸ô ¼±¹°ÇÏ±â", "giftgamemall", "", "");
        break;
      case "removebubble":
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "removebubble", "", "");
        break;
      case "changeeffect":
        arrCurMenu[midx++] = new CAxMenuInfo("È¿°úÁÖ±â", "changeeffect", "", "");
        break;
      case "delwishbox":
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇÂò»óÇ°¿¡¼­ »èÁ¦", "delwishbox", "","");
        break;
      case "addwishbox":
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇÂò»óÇ°¿¡ ³Ö±â", "addwishbox", "","");
        break;
      case "previewthis":
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "previewthis", "","");
        break;
      case "receivethis":
        arrCurMenu[midx++] = new CAxMenuInfo("¼±¹°¹Þ±â", "receivethis", "","");
        break;
      case "buythis":
        arrCurMenu[midx++] = new CAxMenuInfo("±¸¸ÅÇÏ±â", "buythis", "","");
        break;
      case "goodsinfo":
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "goodsinfo", "","");
        break;
      case "searchpreviewthis":
        arrCurMenu[midx++] = new CAxMenuInfo("¹Ì¸®º¸±â", "searchpreviewthis", "","");
        break;
      case "scratch":
        arrCurMenu[midx++] = new CAxMenuInfo("»Ì±â»ç¿ë", "scratch", "","");
        break;
      case "usedecotab":
        arrCurMenu[midx++] = new CAxMenuInfo("»ç¿ëÇÏ±â", "usedecotab", "","");
        break;
      case "stopdecotab":
        arrCurMenu[midx++] = new CAxMenuInfo("±âº»ÅÇ»ç¿ë", "stopdecotab", "","");
        break;
      case "stopcafedeco":
        arrCurMenu[midx++] = new CAxMenuInfo("½ºÆ¼Ä¿/Æ÷½ºÆ®ÀÕ¶¼±â", "stopcafedeco", "","");
        break;
      case "charbattle":
        arrCurMenu[midx++] = new CAxMenuInfo("Ä³¸¯ÅÍ ¹èÆ² ÃÊ´ë", "charbattle", "","");
        break;
			// ÇÇ¸ÁÈ¨ ¸®´º¾ó¿¡¼­ Ãß°¡µÇ´Â »çÇ×µé..
      case "myaccount":
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ °èÁÂ", "myaccount", "","");
        break;
      case "myfriends":
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇ Ä£±¸µé", "myfriends", "","");
        break;
      case "lovemachine":
        arrCurMenu[midx++] = new CAxMenuInfo("»Ì±â»ç¿ë", "lovemachine", "", "");
        break;
      // ÀÌº¥Æ®¿ëÀ¸·Î Ãß°¡
      case "jjimroom":
        arrCurMenu[midx++] = new CAxMenuInfo("µå·¹½º·ëÀ¸·Î ÀÌµ¿", "jjimroom", "", "");
        break;
      case "deletejjim":
        arrCurMenu[midx++] = new CAxMenuInfo("¸ñ·Ï¿¡¼­ »èÁ¦", "deletejjim", "", "");
        break;
      // ¼¼ÀÌ¸ô¸®´º¾ó(07.08.07)
      case "todaytojjim":
        arrCurMenu[midx++] = new CAxMenuInfo("³ªÀÇÂò»óÇ°À¸·Î ÀÌµ¿", "todaytojjim", "", "");
        break;
      case "todayviewdesc":
        arrCurMenu[midx++] = new CAxMenuInfo("»ó¼¼Á¤º¸ º¸±â", "todayviewdesc", "", "");
        break;
      case "todaydelete":
        arrCurMenu[midx++] = new CAxMenuInfo("¸ñ·Ï¿¡¼­ »èÁ¦", "todaydelete", "", "");
        break;
      case "addmystar":
        arrCurMenu[midx++] = new CAxMenuInfo("³» ½ºÅ¸·Î Ãß°¡", "addmystar", "", "");
        break;

      // insert your menu
      /*
      case "" :
        arrCurMenu[midx++] = new CAxMenuInfo("", "", "", "");
        break;
      */
    }
  }

  return arrCurMenu;
}/*}}}*/

function getMenuData(strMenuName)/*{{{*/
{
  if( gArrCachedAxMenu[strMenuName] )
    return gArrCachedAxMenu[strMenuName];

  var arrMenuCode;
  switch(strMenuName)
  {
    case "axMenu1" : //Ä£±¸¸ñ·Ï°ú ºí·¢¸®½ºÆ®¿¡ ¸ðµÎ ¾øÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","memosend","smssend","talk","friendadd","blacklistadd");
      break;
    case "axMenu2" : // Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","friendinfo","memosend","smssend","talk","friendlist","blacklistadd");
      break;
    case "axMenu3" : // ºí·¢¸®½ºÆ®¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","memosend","smssend","talk","denyinfo","del_denylist");
      break;
    case "axMenu4" : // ³ª ÀÚ½Å
      arrMenuCode = new Array("whoone","gohompy","memosend");
      break;
    case "axMenu5" : // Âü°¡ÀÚ ¾ø´Â¹æ¿¡¼­ ´ëÈ­¸í Ç¥½Ã¿ë
      arrMenuCode = new Array("whoone","gohompy","memosend","talk", "friendadd");
      break;
    case "axMenu6" :
      arrMenuCode = new Array("whoone","gohompy","eartalk","memosend","smssend","talk");
      break;
    case "axMenu7" : // ±×·ì¿¡ ¼ÓÇØ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","friendinfo","memosend","smssend","talk","friendlist","delingroup");
      break;
    case "axMenu8" :
      arrMenuCode = new Array("newbm","enterchat");
      break;
    case "axMenu9" : // Ä£±¸¸®½ºÆ®¿¡¼­¸¸ ¾²ÀÓ -  Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","friendinfo","memosend","smssend","talk","movefriend","friendlist");
      break;
    case "axMenu10" : // Ä£±¸¸®½ºÆ®¿¡¼­¸¸ ¾²ÀÓ - ±×·ì¿¡ ¼ÓÇØ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","friendinfo","memosend","smssend","talk","movefriend","friendlist","delingroup");
      break;
    case "axMenu11" :
      arrMenuCode = new Array("newbm","enterchat","deletebm");
      break;
    case "axMenu12" : //Ä³¸¯ÅÍ charimglink_wide ÀÎ°æ¿ìÀÇ ¸Þ´º
      arrMenuCode = new Array("changemood","styleshopping","saymallshopping","mychest","myalbum","hompymanage","gomyhompy","myprofile");
      break;
    case "axMenu12_1" :
    case "axMenu28": // ÇÇ¸Á¿ë ÀÇ»ó Âø¿ëÇÏ±â¿¡ ´ëÇÑ ¸Þ´º
    case "axMenu29": // ³ªÀÇÂò»óÇ°ÂÊÁö Ç¥Á¤º¯°æ¿¡ ´ëÇÑ ¸Þ´º
      arrMenuCode = new Array("changemood_1", "changemood_2", "changemood_3", "changemood_4", "changemood_5");
      break;
    case "axMenu13" : // ÃßÃµÃ¤ÆÃ»ó´ë : Ä£±¸¸ñ·Ï°ú ºí·¢¸®½ºÆ®¿¡ ¸ðµÎ ¾øÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","memosend","smssend","talk","friendadd");
      break;
    case "axMenu14" : // ÃßÃµÃ¤ÆÃ»ó´ë : Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","friendinfo","memosend","smssend","talk","friendadd");
      break;
    case "axMenu15" : //ÇÃ·¹ÀÌ·ë ²Ù¹Ì±â ÇÒ ¶§ ¾ÆÀÌÅÛ ¾ÕµÚ·Î ¿òÁ÷ÀÌ°í »©±â
      arrMenuCode = new Array("layerforward","layerbackward","eliminate");
      break;
    case "axMenu16" : //ÇÃ·¹ÀÌ·ë ²Ù¹Ì±â ÇÒ ¶§ ¾ÆÀÌÅÛ À§·Î ¿Ã¸®°í ±×·±°Å
      arrMenuCode = new Array("insertplayroom","showinfohompy","sellthishompy","giftthishompy","delitemhompy2");
      break;
    case "axMenu17" :
      arrMenuCode = new Array("whoone","gohompy","memosend","smssend","talk");
      break;
    case "axMenu18" :
      arrMenuCode = new Array("useskin","giftthishompyetc","delitemhompy","showinfo2");
      break;
    case "axMenu19" :
      arrMenuCode = new Array("usebubble","giftthishompyetc","delitemhompy2","showinfo2");
      break;
    case "axMenu20" :
      arrMenuCode = new Array("useskin","delitemhompy","showinfo2");
      break;
    case "axMenu21" :
      arrMenuCode = new Array("usebubble","delitemhompy","showinfo2");
      break;
    case "axMenu22" :
      arrMenuCode = new Array("d_preview","d_detail","d_buy","d_gift");
      break;
    case "axMenu23" :
      arrMenuCode = new Array("changemood_1", "changemood_2", "changemood_3", "changemood_4", "changemood_5","##LINE##","mychest","myalbum","myitem");
      break;
    case "axMenu24" :
      arrMenuCode = new Array("d_preview","d_detail","d_buy_styleplus","d_gift");
      break;
    case "axMenu25" : // Ä¿ÇÃ¸®½ºÆ®¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","coupleinfo","memosend","smssend","talk","delincouple");
      break;
    case "axMenu26" : // ÃßÃµÃ¤ÆÃ»ó´ë : Ä¿ÇÃ¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("whoone","gohompy","coupleinfo","memosend","smssend","talk","couplelist");
      break;
    case "axMenu27" : // ÇÇ¸Á¿ë ³ªÀÇ Ä³¸¯ÅÍ¿¡ ´ëÇÑ ¸Þ´º
      arrMenuCode = new Array("whoonepmang", "guestbook", "changemood", "myaccount", "mychest", "myfriends");
//      arrMenuCode = new Array("changemood_1", "changemood_2", "changemood_3", "changemood_4", "changemood_5","mychest");
      break;
    case "axMenu30" : //ÇÃ·¹ÀÌ·ë ÄÁÆ®·ÑÀ» À§ÇÑ ¸Þ´º
      arrMenuCode = new Array("insertplayroomitem","showinfohompy","sellthishompy","giftthishompy","delitemhompy2");
      break;
    case "axMenu31" : // »ó¼¼º¸±â¸¸ °¡´ÉÇÑ ¼¼ÀÌÆË¾÷ (±â°£Á¦¿ë)
      arrMenuCode = new Array("showinfohompy");
      break;
    case "axMenu32" : // »ó¼¼º¸±â¸¸ °¡´ÉÇÑ ¼¼ÀÌÆË¾÷ (±â°£Á¦¿ë)
      arrMenuCode = new Array("gochatting","goschoolting","gokkting","gonoraeting");
      break;
    case "axMenu33" : //È¨ÇÇ´ä±Û ¿¡¼­ »ç¿ëÇÏ´Â ºÎºÐ
      arrMenuCode = new Array("whoone","gohompy","memosend","friendadd");
      break;
    case "axMenu34" : //½Ç¸íÈ­ÀÛ¾÷¿¡¼­ »ç¿ëÇÏ´Â ¸Þ´º
      arrMenuCode = new Array("showinfo","sellthis","giftthis","delitem");
      break;
    case "axMenu35" :
      arrMenuCode = new Array("showinfo","delitem");
      break;  
    //mypage-mycharacter - chest
    case "axMenu36" : 
      arrMenuCode = new Array("takeoff","showinfo","chchest");//wearing
      break;
    case "axMenu37" :
      arrMenuCode = new Array("takeon","sellthis","giftthis","donate","showinfo","delitem","chchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu38" :
      arrMenuCode = new Array("takeon","showinfo","delitem","chchest");//not wearing, not giftable,dispcnt>0
      break;
     case "axMenu39" :
      arrMenuCode = new Array("showinfo","chchest");//not wearing, giftable,dispcnt=0
      break;
    //mypage-mycharacter - pet
    case "axMenu40" :
      arrMenuCode = new Array("takeoff","showinfo","chpetchest");//wearing
      break;
    case "axMenu41" :
      arrMenuCode = new Array("takeon","sellthis","giftthis","showinfo","delitem","chpetchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu42" :
      arrMenuCode = new Array("takeon","showinfo","delitem","chpetchest");//not wearing, not giftable, discnt>0
      break;
    case "axMenu43" :
      arrMenuCode = new Array("showinfo","chpetchest");//not wearing, giftable, dispcnt=0
      break;
    case "axMenu44" ://my deco
      //arrMenuCode = new Array("usedeco","previewdeco","sendowndeco","deldeco","showinfodeco");
      arrMenuCode = new Array("usedeco","sendowndeco","deldeco","showinfodeco");
      break;
    case "axMenu45" ://my deco
      arrMenuCode = new Array("rmvdeco","showinfodeco");
      break;
    case "axMenu46" ://my deco
      arrMenuCode = new Array("usedeco","deldeco","showinfodeco");
      break;
    case "axMenu47" ://hompy skindeco sticker
      arrMenuCode = new Array("hp_sd_foremost","hp_sd_forward","hp_sd_backward","hp_sd_last","hp_sd_rm_s");
      break;
    case "axMenu48" ://hompy skindeco postit
      arrMenuCode = new Array("hp_sd_foremost","hp_sd_forward","hp_sd_backward","hp_sd_last","hp_sd_rm_p");
      break;
    case "axMenu49" ://magic i/u/d/s/r
      arrMenuCode = new Array("usemagic", "resaleownmagic", "sendownmagic", "infomagic", "delmagic");
      break;
    case "axMenu50" ://magic i/u/d/s
      arrMenuCode = new Array("usemagic", "sendownmagic", "infomagic", "delmagic");
      break;
    case "axMenu51" ://magic i/u/d/r
      arrMenuCode = new Array("usemagic", "resaleownmagic", "infomagic", "delmagic");
      break;
    case "axMenu52" ://magic i/u/d
      arrMenuCode = new Array("usemagic", "infomagic", "delmagic");
      break;
    case "axMenu53" ://magic i/d/s/r
      arrMenuCode = new Array("resaleownmagic", "sendownmagic", "infomagic", "delmagic");
      break;
    case "axMenu54" ://magic i/d/s
      arrMenuCode = new Array("sendownmagic", "infomagic", "delmagic");
      break;
    case "axMenu55" ://magic i/d/r
      arrMenuCode = new Array("resaleownmagic", "infomagic", "delmagic");
      break;
    case "axMenu56" ://magic i/d
      arrMenuCode = new Array("infomagic", "delmagic");
      break;
    case "axMenu57" ://magic i
      arrMenuCode = new Array("infomagic");
      break;
    case "axMenu58" ://in cube
      arrMenuCode = new Array("popcube");
      break;
    //pmang mypage-mycharacter - chest
    case "axMenu59" : 
      arrMenuCode = new Array("takeoff","showinfopmang","chchest");//wearing
      break;
    case "axMenu60" :
      arrMenuCode = new Array("takeon","sellthis","giftthis","showinfopmang","delitempmang","chchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu61" :
      arrMenuCode = new Array("takeon","showinfopmang","delitempmang","chchest");//not wearing, not giftable,dispcnt>0
      break;
     case "axMenu62" :
      arrMenuCode = new Array("showinfopmang","chchest");//not wearing, giftable,dispcnt=0
      break;
    //pmang mypage-mycharacter - pet
    case "axMenu63" :
      arrMenuCode = new Array("takeoff","showinfopmang","chpetchest");//wearing
      break;
    case "axMenu64" :
      arrMenuCode = new Array("takeon","sellthis","giftthis","showinfopmang","delitempmang","chpetchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu65" :
      arrMenuCode = new Array("takeon","showinfopmang","delitempmang","chpetchest");//not wearing, not giftable, discnt>0
      break;
    case "axMenu66" :
      arrMenuCode = new Array("showinfopmang","chpetchest");//not wearing, giftable, dispcnt=0
      break;
    //basic wear&pet, only takeon and takeoff
    case "axMenu67" :
      arrMenuCode = new Array("takeon");
      break;
    case "axMenu68" :
      arrMenuCode = new Array("takeoff");
      break;
    //my-page style has no other menu
    case "axMenu69" :
      arrMenuCode = new Array("takeon","showinfo","delitem","chchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu70" :
      arrMenuCode = new Array("takeon","delitem","chpetchest");//not wearing, giftable, dispcnt>0
      break;
    //pmang my-page style has no other menu
    case "axMenu71" ://getpmangegg Ãß°¡ : ÇÇ¸Á ÀÇ»ó¼ÒÁø ÀÌº¥Æ®¿ë..	2005.08.30 nexus11@ || ÀÇ»ó¼ÒÁøÀÌº¥Æ®Á¾·á 2005.11.01
      arrMenuCode = new Array("takeon","showinfo","delitem","chchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu72" :
      arrMenuCode = new Array("takeon","showinfo","delitem","chpetchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu73" :
      arrMenuCode = new Array("birthdaymemo","giftsaymall","giftgamemall");
      break;
    case "axMenu81" : //Ã¤ÆÃ¹æ¿¡¼­ Ä£±¸¸ñ·Ï°ú ºí·¢¸®½ºÆ®¿¡ ¸ðµÎ ¾øÀ» ¶§
      arrMenuCode = new Array("eartalk", "gohompy","memosend","smssend","talk","friendadd","blacklistadd", "whoone");
      break;
    case "axMenu82" : //Ã¤ÆÃ¹æ¿¡¼­ Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("eartalk", "gohompy","friendinfo","memosend","smssend","talk","friendlist","blacklistadd", "whoone");
      break;
    case "axMenu83" : //Ã¤ÆÃ¹æ¿¡¼­  ºí·¢¸®½ºÆ®¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("eartalk", "gohompy","memosend","smssend","talk","denyinfo","del_denylist", "whoone");
      break;
    case "axMenu84" : // È¨ÇÇ½ºÅ² »ó¼¼Á¤º¸
      arrMenuCode = new Array("showinfo2");
      break;
    case "axMenu85" : //Ã¤ÆÃ¹æ¿¡¼­ Ä³¸¯ÅÍ charimglink_wide ÀÎ°æ¿ìÀÇ ¸Þ´º
      arrMenuCode = new Array("changemood","chat_mychest","gomyhompy","myprofile");
      break;
    case "axMenu86" : //±âº» ¸»Ç³¼± »ç¿ë
      arrMenuCode = new Array("removebubble");
      break;
    case "axMenu87" : //È¿°úÁÖ±â ¼±ÅÃ
      arrMenuCode = new Array("changeeffect","showinfohompy","sellthishompy","giftthishompy","delitemhompy2");
      break;
    case "axMenu90" : //¿î¿µÀÚ - ºñ»ç¿ëÁßÀÎ ¾ÆÀÌÅÛº¸±â
      arrMenuCode = new Array("use_cafeitem", "view_cafeitem", "info_cafeitem", "del_cafeitem");
      break;
    case "axMenu91" : //¿î¿µÀÚ - »ç¿ëÁßÀÎ ¾ÆÀÌÅÛº¸±â 
      arrMenuCode = new Array("stop_cafeitem", "info_cafeitem", "del_cafeiem");
      break;
    case "axMenu92" : // È¸¿ø - ºñ»ç¿ëÁßÀÎ ¾ÆÀÌÅÛº¸±â
      arrMenuCode = new Array("info_cafeitem");
      break;
    case "axMenu99" : // ¸¶ÀÌ¼¼ÀÌ¸ô>¸¶ÀÌÆùÆ® ºñ»ç¿ëÁß ¼±¹°
      arrMenuCode = new Array("use_myfont", "del_myfont", "info_myfont");
      break;
    case "axMenu100" : // ¸¶ÀÌ¼¼ÀÌ¸ô>¸¶ÀÌÆùÆ® ºñ»ç¿ëÁß
      arrMenuCode = new Array("use_myfont", "gift_myfont", "del_myfont", "info_myfont");
      break;
    case "axMenu101" : // ¸¶ÀÌ¼¼ÀÌ¸ô>¸¶ÀÌÆùÆ® »ç¿ëÁß
      arrMenuCode = new Array("info_myfont", "del_myfont");
      break;
    case "axMenu102" ://my deco
      arrMenuCode = new Array("usedecofont","deldeco","showinfodeco");
      break;
    case "axMenu110" : // ¸¶ÀÌ¼¼ÀÌ¸ô>³ªÀÇÂò»óÇ°
      arrMenuCode = new Array("delwishbox", "goodsinfo");
      break;
    case "axMenu111" : // ¼¼ÀÌ¸ô catalog item
      arrMenuCode = new Array("previewthis","goodsinfo");
      break;
    case "axMenu112" : // ¼¼ÀÌ¸ô search item
      arrMenuCode = new Array("searchpreviewthis","goodsinfo");
      break;
    case "axMenu113" : // È¨ÇÇ µ¥ÄÚÆùÆ®
      arrMenuCode = new Array("stopdecofont","showinfodeco");
      break;
    case "axMenu114" : // È¨ÇÇ ½ºÅ² »ó¼¼º¸±â, »ç¿ë ÁßÁö
      arrMenuCode = new Array("stopskin","showinfo2");
      break;
    case "axMenu115" : // ÀÚ½ÅÀÇ »ç¿ëÀÚÁ¤º¸Ã¢ : menuµéÀº »õ window ·Î ¶ç¿ò
      arrMenuCode = new Array("changemood","styleshopping","saymallshopping","chat_mychest","myalbum","hompymanage","gomyhompy","myprofile");
      break;
    case "axMenu116" :
      arrMenuCode = new Array("takeon","scratch");
      break;
    case "axMenu117" :
      arrMenuCode = new Array("takeoff","scratch");
      break;
    case "axMenu118" :	//getpmangegg Ãß°¡ : ÇÇ¸Á ÀÇ»ó¼ÒÁø ÀÌº¥Æ®¿ë..	2005.08.30 nexus11@ || ÀÇ»ó¼ÒÁøÀÌº¥Æ®Á¾·á 2005.11.01
      arrMenuCode = new Array("takeon","showinfopmang","delitempmang","chpetchest");//not wearing, giftable, dispcnt>0
      break;
    case "axMenu119" : //µ¥ÄÚÅÇ
      arrMenuCode = new Array("usedecotab","deldeco", "showinfodeco");
      break;
    case "axMenu120" : //±âº»µ¥ÄÚÅÇ»ç¿ë
      arrMenuCode = new Array("stopdecotab", "showinfodeco");
      break;
    case "axMenu121" : //¿î¿µÀÚ - »ç¿ëÁßÀÎ ¾ÆÀÌÅÛº¸±â  , Ä«Æä ½ºÆ¼Ä¿/Æ÷½ºÆ®ÀÕ °ü·Ã
      arrMenuCode = new Array("stopcafedeco", "info_cafeitem");
      break;
    case "axMenu122" : //Ä³¸¯ÅÍ¹èÆ² µî·Ï´ë±âÀÚ list °ü·Ã
      arrMenuCode = new Array("charbattle", "gohompy", "whoone");
      break;
    case "axMenu123" : //¿î¿µÀÚ - ºñ»ç¿ëÁßÀÎ ¾ÆÀÌÅÛº¸±â
      arrMenuCode = new Array("use_cafeitem", "info_cafeitem", "del_cafeitem");
      break;
		case "axMenu124" : //Ä£±¸¸ñ·Ï°ú ºí·¢¸®½ºÆ®¿¡ ¸ðµÎ ¾øÀ» ¶§(ÇÇ¸Á¿ë)
      arrMenuCode = new Array("whoonepmang","guestbook", "memosend","talk","friendadd","blacklistadd");
      break;
    case "axMenu125" : // Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§(ÇÇ¸Á¿ë)
      arrMenuCode = new Array("whoonepmang","guestbook", "friendinfo","memosend","talk","friendlist","blacklistadd");
      break;
    case "axMenu126" : // ºí·¢¸®½ºÆ®¿¡ ÀÖÀ» ¶§(ÇÇ¸Á¿ë)
      arrMenuCode = new Array("whoonepmang","guestbook", "memosend","talk","denyinfo","del_denylist");
      break;
    case "axMenu127" : // ³ª ÀÚ½Å(ÇÇ¸Á¿ë)
      arrMenuCode = new Array("whoonepmang","guestbook", "gohompy","memosend");
      //arrMenuCode = new Array("whoonepmang", "guestbook", "myaccount", "mychest", "myfriends");
      break;
    case "axMenu128" : // Ä£±¸¸®½ºÆ®¿¡¼­¸¸ ¾²ÀÓ -  Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§(ÇÇ¸Á¿ë-my_friends.nwz)
      arrMenuCode = new Array("whoonepmang","guestbook","friendinfo","memosend","talk","movefriend","friendlist");
      break;
    case "axMenu129" : // Ä£±¸¸®½ºÆ®¿¡¼­¸¸ ¾²ÀÓ - ±×·ì¿¡ ¼ÓÇØ ÀÖÀ» ¶§(ÇÇ¸Á¿ë-my_friends.nwz)
      arrMenuCode = new Array("whoone","guestbook","friendinfo","memosend","talk","movefriend","friendlist","delingroup");
      break;
    case "axMenu130" :  //Ä³¸¯ÅÍ charimglink_wide ÀÎ°æ¿ìÀÇ ¸Þ´º(ÇÇ¸Á¿ë-my_character.nwz)
      arrMenuCode = new Array("changemood","styleshopping","saymallshopping","chat_mychest","myalbum","hompymanage","gomyhompy","myprofilepmang");
      break;
		case "axMenu131" : // ÀÚ½ÅÀÇ »ç¿ëÀÚÁ¤º¸Ã¢ : menuµéÀº »õ window ·Î ¶ç¿ò (ÇÇ¸Á¿ë)
      arrMenuCode = new Array("changemood","styleshopping","saymallshopping","chat_mychest","myalbum","hompymanage","gomyhompy","myprofilepmang");
      break;
    case "axMenu132" :
      arrMenuCode = new Array("takeon", "lovemachine");
      break;
    case "axMenu133" : // È¨ÇÇ¿¡¼­ gen_pa »ç¿ë½Ã(·Î±×ÀÎÆäÀÌÁö ÀÌµ¿À» _topÀ¸·Î) by ±èÅÂ¿ì
      arrMenuCode = new Array("whoone","gohompy","memosend_hompy","talk_hompy", "friendadd");
      break;
    case "axMenu134" : // ·¹ÀÌ½ÃÆ¼¿¡¼­ gen_pa »ç¿ë½Ã
      arrMenuCode = new Array("memosend","friendadd");
      break;
    case "axMenu135" : // ÀÌº¥Æ®¿¡¼­ gen_pa »ç¿ë½Ã: ÁÖ¼®¿¡ ±â°£À» ¸í½ÃÇÏ°í Á¾·áµÈ ÀÌº¥Æ®ÀÎ °æ¿ì ¼öÁ¤ÇÏ¸ç, ÁøÇàÁßÀÎ ÀÌº¥Æ®ÀÎ °æ¿ì Ãß°¡ÇÑ´Ù.
                       // ¼¼ÀÌ¸ô ÀÌº¥Æ® ³ªµµ ÄÚµð³×ÀÌÅÍ ( 07.6.5 ~ 07.7.5 )
      arrMenuCode = new Array("jjimroom","deletejjim");
      break;
    case "axMenu136" : // ¼¼ÀÌ¸ô¸®´º¾ó(¿À´Ãº»»óÇ°¿¡¼­ gen_pa »ç¿ë)
      arrMenuCode = new Array("todaytojjim","todayviewdesc","todaydelete");
      break;
    case "axMenu137" : // µðÅä - Ä£±¸ ¾Æ´Ò  ¶§  
      arrMenuCode = new Array("ditto","whoone","memosend","friendadd");
      break;
    case "axMenu138" : // µðÅä - Ä£±¸ÀÏ ¶§ 
      arrMenuCode = new Array("ditto","whoone","memosend","talk","friendlist");
      break;
    case "axMenu139" ://magic i/u
      arrMenuCode = new Array("usemagic","infomagic");
      break;
    case "axMenu140" : // Ä³¸¯ÅÍÀÚ¶û- Ä£±¸ ¾Æ´Ò  ¶§  
      arrMenuCode = new Array("character","whoone","memosend","friendadd");
      break;
    case "axMenu141" : // Ä³¸¯ÅÍÀÚ¶û - Ä£±¸ÀÏ ¶§ 
      arrMenuCode = new Array("character","whoone","memosend","talk","friendlist");
      break;
    case "axMenu142" : // Æ¾Åå- Ä£±¸ ¾Æ´Ò  ¶§  
      arrMenuCode = new Array("teentalk","whoone","memosend","friendadd");
      break;
    case "axMenu143" : // Æ¾Åå - Ä£±¸ÀÏ ¶§ 
      arrMenuCode = new Array("teentalk","whoone","memosend","talk","friendlist");
      break;
    case "axMenu151" : //Ä£±¸¸ñ·Ï°ú ºí·¢¸®½ºÆ®¿¡ ¸ðµÎ ¾øÀ» ¶§
      arrMenuCode = new Array("cjtalk","whoone","gohompy","memosend","smssend","talk","friendadd","blacklistadd");
      break;
    case "axMenu152" : //Ä£±¸¸ñ·Ï¿¡ ÀÖÀ» ¶§
      arrMenuCode = new Array("cjtalk","whoone","gohompy","friendinfo","memosend","smssend","talk","friendlist","blacklistadd");
      break;
    case "axMenu154" : // ³ªÀÚ½Å 
      arrMenuCode = new Array("cjtalk","whoone","gohompy","memosend");
      break;
    case "axMenu155" : //axMenu1 ¿¡¼­ ³»½ºÅ¸·Î Ãß°¡Ç×¸ñ Ãß°¡
      arrMenuCode = new Array("whoone","addmystar","gohompy","memosend","smssend","talk","friendadd","blacklistadd");
      break;
    case "axMenu156" : //axMenu1 ¿¡¼­ ³»½ºÅ¸·Î Ãß°¡Ç×¸ñ Ãß°¡
      arrMenuCode = new Array("delfreeitem");
      break;

// insert your menu
    /*
    case "" :
      arrMenuCode = new Array("");
      break;
    */
  }

  if( arrMenuCode && arrMenuCode.length > 0 )
  {
    gArrCachedAxMenu[strMenuName] = getDynamicMenu(arrMenuCode);
    return gArrCachedAxMenu[strMenuName];
  }

  arrMenuCode = new Array();
  return arrMenuCode;
}/*}}}*/

////// excute code /////
function execSayMenu( strFuncName , strQuery )
{
  var strKey = strFuncName + "=";/*{{{*/
  var arrParams = new Array();
  var nArrIdx = 0;
  var virtualBaseUrl = "http://"+document.location.hostname+"/global/virtual/";
  var bLoginStatus = checkLogin4SayPopup();

  var nStartTokenPos = strQuery.indexOf( strKey , 1 );
  if ( nStartTokenPos <= 0 ) {return;}
  else nStartTokenPos += strKey.length;
  var nEndTokenPos = nStartTokenPos; 

  var nEndQueryPos = strQuery.indexOf( "&" , nStartTokenPos );
  if ( nEndQueryPos <= nStartTokenPos ) nEndQueryPos = strQuery.length - 1;

  do
  {
    nEndTokenPos = strQuery.indexOf( "," , nStartTokenPos ) ;
    if ( ( nEndTokenPos <= 0 ) || ( nEndTokenPos > nEndQueryPos ) ) 
      {
          nEndTokenPos = nEndQueryPos;
      }
    arrParams[ nArrIdx++ ] = strQuery.substring( nStartTokenPos , nEndTokenPos );
    nStartTokenPos = nEndTokenPos + 1;
  }
  while ( nStartTokenPos < nEndQueryPos );

  var arrStr = arrParams[0].split(":");

  if (arrStr.length > 1)
  {
    var targetMsrl = arrStr[0];
    var targetid = arrStr[1];
    if(arrStr.length > 2)
      var targetNickname = arrStr[2];
  }
  else
  {
    var targetMsrl = '';
    var targetid = arrParams[0];
  }/*}}}*/

  if ( strFuncName == "whoone" )
  {
    var oops = open_win_noresizable( "http://hompy.sayclub.com/profile/profile_popup.nwz?targetmsrl="+targetMsrl+"&targetid="+targetid, '_whoone',468,513);
  }
  else if (strFuncName =="lovemachine")
  {
    window.open("http://saymall.sayclub.com/event/lovemachine/love.nwz", "lovemachine");
  }
  else if ( strFuncName == "whoonepmang" )    //ÇÇ¸Á¿ëÀ¸·Î Ãß°¡ 2006.06
  {
    var oops = open_win_noresizable( "http://pmang.sayclub.com/pmang_profile_popup.nwz?targetmsrl="+targetMsrl+"&targetid="+targetid, '_whoonepmang',468,513);
  }
  else if ( strFuncName == "guestbook" )    //¹æ¸í·Ï 2009.04
  {
    var oops = open_win_noresizable( "http://pmang.sayclub.com/pmang_profile_popup.nwz?method=guestbook&targetmsrl="+targetMsrl+"&targetid="+targetid, '_whoonepmang',468,513);
  }
	else if ( strFuncName == "myprofile" )
  {
    var oops = open_win_noresizable( "http://hompy.sayclub.com/profile/profile_popup.nwz?targetid=_myself", '_myownprofile',468,513);
  }
 	else if ( strFuncName == "myprofilepmang" )   //ÇÇ¸Á¿ëÀ¸·Î Ãß°¡ 2006.06
  {
    var oops = open_win_noresizable( "http://pmang.sayclub.com/pmang_profile_popup.nwz?targetid=_myself", '_myownprofilepmang',468,513);
  }
  else if ( strFuncName == "ditto" ) // Æ¯Á¤ »ç¿ëÀÚÀÇ ditto ±Û º¸±â 
  {
    window.open("http://saychatting.sayclub.com/ditto/ditto.nwz?msrl="+targetMsrl, "ditto");
  }
  else if ( strFuncName == "character" ) // Æ¯Á¤ »ç¿ëÀÚÀÇ Ä³¸¯ÅÍÀÚ¶û  ±Û º¸±â 
  {
    location.href = "http://saychatting.sayclub.com/sayteen/character.nwz?bserial=1&search="+targetid;
  }
  else if ( strFuncName == "teentalk" ) // Æ¯Á¤ »ç¿ëÀÚÀÇ Æ¾Åå  ±Û º¸±â 
  {
    location.href= "http://saychatting.sayclub.com/sayteen/talk_user.nwz?msrl="+targetMsrl;
  }
  else if ( strFuncName == "cjtalk" ) // Æ¯Á¤ »ç¿ëÀÚÀÇ cjtalk ±Û º¸±â 
  {
    openCJtalk(targetMsrl);
  }
	else if ( strFuncName == "gohompy" )
  {
    var oops;
    if(targetMsrl!="")
      oops = open_hompy2_srl( targetMsrl );
    else 
      oops = open_hompy2( targetid );
  }
  else if ( strFuncName == "gomyhompy" )
  {
    var oops = open_hompy2_srl("_myself")
  }
  else if ( strFuncName == "denyinfo")
  {
    if ( document.location.hostname.indexOf("pmang.") != -1 )
      var oops = open_win( "http://my.sayclub.com/denyinfo.nwz?targetMsrl="+targetMsrl+"&targetid="+targetid, '_denyinfo', 476,657);
    else
      var oops = open_win( "http://my.sayclub.com/friend/denyinfo.nwz?targetMsrl="+targetMsrl+"&targetid="+targetid, '_denyinfo', 476,657);
  }
  else if ( strFuncName == "whoru" )
  {
    var fri = open_win_noresizable( "http://hompy.sayclub.com/hompy.nwz?targetmsrl="+targetMsrl+"&targetid="+targetid, '_hompy', 892,565);
  }
  else if ( strFuncName == "hompymanage" ) /* ³ªÀÇ È¨ÇÇ °ü¸® */
  {
    if("undefined"!=typeof(parent.document))
    {
      parent.document.location.href= "javascript:openMyHompy('controlmenu=base');";
      return;
    }
    else 
      document.location.href= "javascript:openMyHompy('controlmenu=base');";
  }
  else if ( strFuncName == "smssend" ) 
  {
    if (bLoginStatus)
      open_win("http://mobile.sayclub.com/sms/smssend.nwz?toMsrl="+targetMsrl+"&toid="+targetid, "smspopup_"+targetid,500,376);
    else
      openLoginLayer("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
  }
  else if ( strFuncName == "talk" ) 
  {
    var dt;
    var talkwin;
    // ÀÚ±âÀÚ½Å¿¡°Ô ´ëÈ­½ÅÃ»ÇÒ °æ¿ì Ã³¸® (Ã¤ÆÃ¹æ¹®Á¦) 
    if("undefined" != typeof(chatMyOwnMsrl) && chatMyOwnMsrl == targetMsrl)
    {
      alert('ÀÚ±â ÀÚ½Å¿¡°Ô ´ëÈ­½ÅÃ»ÇÒ ¼ö ¾ø½À´Ï´Ù.');
    } else 
    {
      if (bLoginStatus)
      {
        dt = new Date();
        talkwin = open_win("http://saychatting.sayclub.com/chat/neotalk.nwz?targetMsrl="+targetMsrl+"&targetid="+targetid+"&guraarg="+gura_arg(), 'talk_'+targetid, 500, 500);
      }
      else
      {
        openLoginLayer("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
      }
    }
  }
  else if ( strFuncName == "talk_hompy" )   // È¨ÇÇ¿¡¼­ gen_pa»ç¿ë½Ã(_top ÆäÀÌÁö ÄÁÆ®·Ñ) by ±èÅÂ¿ì
  {
    var dt;
    var talkwin;
    // ÀÚ±âÀÚ½Å¿¡°Ô ´ëÈ­½ÅÃ»ÇÒ °æ¿ì Ã³¸® (Ã¤ÆÃ¹æ¹®Á¦) 
    if("undefined" != typeof(chatMyOwnMsrl) && chatMyOwnMsrl == targetMsrl)
    {
      alert('ÀÚ±â ÀÚ½Å¿¡°Ô ´ëÈ­½ÅÃ»ÇÒ ¼ö ¾ø½À´Ï´Ù.');
    } else 
    {
      if (bLoginStatus)
      {
        dt = new Date();
        talkwin = open_win("http://saychatting.sayclub.com/chat/neotalk.nwz?targetMsrl="+targetMsrl+"&targetid="+targetid+"&guraarg="+gura_arg(), 'talk_'+targetid, 500, 500);
      }
      else
      {
        openLoginLayer_Hompy("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
      }
    }
  }
  else if ( strFuncName == "memosend" )
  {
    if (bLoginStatus)
    {
      if (typeof(targetNickname)!='undefined' && targetNickname!='')
        var mm = open_win( "http://memo.sayclub.com/memosend.nwz?create=1&toMsrl="+targetMsrl+"&toid="+targetid+"&fw="+targetNickname, window_name ("memosend"),386,292);
      else 
        var mm = open_win( "http://memo.sayclub.com/memosend.nwz?create=1&toMsrl="+targetMsrl+"&toid="+targetid, window_name ("memosend"),386,292);
    }
    else
      openLoginLayer("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
  }
  else if ( strFuncName == "memosend_hompy" )    // È¨ÇÇ¿¡¼­ gen_pa»ç¿ë½Ã(_top ÆäÀÌÁö ÄÁÆ®·Ñ) by ±èÅÂ¿ì
  {
    if (bLoginStatus)
      var mm = open_win( "http://memo.sayclub.com/memosend.nwz?create=1&toMsrl="+targetMsrl+"&toid="+targetid, window_name ("memosend"),386,292);
    else
      openLoginLayer_Hompy("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
  }
  else if ( strFuncName == "friendadd" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"friend_virtual.nwz?act=friendadd&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "movefriend" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"group_virtual.nwz?act=movefriend&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "friendlist" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"friend_virtual.nwz?act=friendlist&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  //±×·ì¿¡¼­ Ä£±¸»èÁ¦
  else if ( strFuncName == "delingroup" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"group_virtual.nwz?act=delingroup&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "delincouple" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"group_virtual.nwz?act=delincouple&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "blacklistadd" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"friend_virtual.nwz?act=blacklistadd&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "del_denylist" )
  {
    var virtualDATA = virtualGET(virtualBaseUrl+"friend_virtual.nwz?act=del_denylist&targetMsrl="+targetMsrl+"&targetid="+targetid+"&ck_myhs="+myhs+"&ck_tm="+tm+"&gura_arg="+gura_arg());
    showSayModalPop(virtualDATA, "my", 300, 250);
  }
  else if ( strFuncName == "friendinfo" )
  {
    if ( document.location.hostname.indexOf("pmang.") != -1 )
      var fri = open_win( "http://my.sayclub.com/friend_info.nwz?type=friend&targetMsrl="+targetMsrl+"&targetid="+targetid, 'friendinfo',300, 260 );
    else
      var fri = open_win( "http://my.sayclub.com/friend/friend_info.nwz?type=friend&targetMsrl="+targetMsrl+"&targetid="+targetid, 'friendinfo',300, 260 );
  }
  else if ( strFuncName == "coupleinfo" )
  {
    var fri = open_win( "http://my.sayclub.com/friend_info.nwz?type=couple&targetMsrl="+targetMsrl+"&targetid="+targetid, 'coupleinfo',300, 260 );
  }
  else if ( strFuncName == "kill" )
  {
    var klluser = open_win("http://saychatting.sayclub.com/chat/kill.nwz?whoMsrl="+targetMsrl+"&who="+targetid, 'killuser',300,400);
  }
  else if ( strFuncName == "takeoff" )
  {
    MyDress_putOnItem(arrParams[7],arrParams[3],arrParams[4],arrParams[5],arrParams[6]);
  }
  else if ( strFuncName == "takeon" )
  {
    MyDress_putOnItem(arrParams[7],arrParams[3],arrParams[4],arrParams[5],arrParams[6]);
  }
  else if ( strFuncName == "chchest" )
  {
    MyDress_moveChest(arrParams[0]);
  }
  else if ( strFuncName == "showinfo" )
  {
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=detailOwn&cont_id="+arrParams[2]+"&act="+arrParams[5]+"&cat=n&own_id="+arrParams[0], "showinfo", 400, 520 );
  }
  else if ( strFuncName == "showinfopmang" )
  {
    open_win("http://saymall.sayclub.com/saymall_own_action_pmang.nwz?action=detailOwn&cont_id="+arrParams[2]+"&act="+arrParams[5]+"&cat=n&own_id="+arrParams[0], "showinfo", 400, 520 );
  }
  else if ( strFuncName == "eartalk" )
  {
     for(i=0;i<document.fo_cs.to.options.length;i++)
     {
       if(document.fo_cs.to.options[i].value == targetMsrl)
         document.fo_cs.to.selectedIndex = i;
     }
  }
  else if ( strFuncName == "showinfo2" )
  {
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=detailOwn&own_id="+arrParams[4], "showinfo", 400, 520 );
  }
  else if ( strFuncName == "showinfohompy" )
  {
    var temp_cont_id = item_srl[arrParams[0]];
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=detailOwn&own_id="+arrParams[4], "showinfo", 400, 520 );
  }
  else if ( strFuncName == "sellthis" )
  {
    if ( arrParams[3] == "g" )
      {
        var SayModal = open_alert("my", '¼±¹°¹ÞÀº ¾ÆÀÌÅÛÀº<br> ÆÇ¸Å°¡ ºÒ°¡´É ÇÕ´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    else if ( arrParams[3] == "t" )
      {
        var SayModal = open_alert("my", '±â°£Á¦ ¾ÆÀÌÅÛÀº<br> ÆÇ¸Å°¡ ºÒ°¡´É ÇÕ´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    if( arrParams[0] == 105292 )
    {
      alert('¼ö´É¹®Á¦Ç®ÀÌ ¸ÅÁ÷¾ÆÀÌÅÛÀº µÇÆÈ±â°¡ ºÒ°¡´É ÇÕ´Ï´Ù.');
    }
    else
    {
      open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=resaleOwn&gflag="+arrParams[5]+"&own_id="+arrParams[0]+"&cont_id="+arrParams[2]+"&act="+arrParams[5], "sell", 400, 300 );
    }
  }
  else if ( strFuncName == "sellthishompy" )
  {
    if ( arrParams[3] == "g" )
    {
      var SayModal = open_alert("my", '¼±¹°¹ÞÀº ¾ÆÀÌÅÛÀº<br> ÆÇ¸Å°¡ ºÒ°¡´É ÇÕ´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
      return;
    }
    else if ( arrParams[3] == "t" )
    {
      var SayModal = open_alert("my", '±â°£Á¦ ¾ÆÀÌÅÛÀº<br> ÆÇ¸Å°¡ ºÒ°¡´É ÇÕ´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
      return;
    }
    else
    {
      open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=resaleOwn&own_id="+arrParams[0]+"&gflag="+arrParams[5], "sell", 400, 300 );
    }
  }
  else if ( strFuncName == "giftthis" )
  {
    if ( arrParams[4] == "g" )
    {
      var SayModal = open_alert("my", '¼±¹°¹ÞÀº ¾ÆÀÌÅÛÀº<br> ´Ù½Ã ¼±¹° ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
      return;
    }
      open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=sendOwn&cont_id="+arrParams[2]+"&act="+arrParams[5]+"&my_gift=gift", "gift", 400, 348);
  }
  else if ( strFuncName == "donate" )
  {
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=donateOwnItem&cont_id="+arrParams[1]+"&act="+arrParams[2]+"&refresh=Y", "donate", 400, 348);
  }
  else if ( strFuncName == "giftthishompy" )
  {
    if ( arrParams[3] == "g" )
      {
        var SayModal = open_alert("my", '¼±¹°¹ÞÀº ¾ÆÀÌÅÛÀº<br> ´Ù½Ã ¼±¹° ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    else if ( arrParams[3] == "t" )
      {
        var SayModal = open_alert("my", '±â°£Á¦ ¾ÆÀÌÅÛÀº<br> ´Ù½Ã ¼±¹° ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    var temp_cont_id = item_srl[arrParams[0]];
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=sendOwn&cont_id="+temp_cont_id+"&gflag="+arrParams[3]+"&my_gift=gift&own_id="+arrParams[0], "gift", 400, 348);
  }
  else if ( strFuncName == "giftthishompyetc" )
  {
    if ( arrParams[3] == "g" )
      {
        var SayModal = open_alert("my", '¼±¹°¹ÞÀº ¾ÆÀÌÅÛÀº<br> ´Ù½Ã ¼±¹° ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    else if ( arrParams[3] == "t" )
      {
        var SayModal = open_alert("my", '±â°£Á¦ ¾ÆÀÌÅÛÀº<br> ´Ù½Ã ¼±¹° ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.' ,'³ªÀÇ ¾ÆÀÌÅÛ', 250, 210, "È®ÀÎ", 80, "", 1);
        return;
      }
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=sendOwn&own_id="+arrParams[4]+"&gflag="+arrParams[3]+"&my_gift=gift", "gift", 400, 348);
  }
  else if ( strFuncName == "delitem" )
  {
     if(arrParams[0]==-1)
    {
      alert('±âº»¾ÆÀÌÅÛÀº »èÁ¦ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
      return;
    }
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=deleteOwn&gflag="+arrParams[5]+"&own_id="+arrParams[0]+"&cont_id="+arrParams[2]+"&act="+arrParams[5], "sell", 410, 300 );
/*
    var itemsrl = openSelectOwncont(arrParams[2], arrParams[5], 'deleteOwn');
    if (!itemsrl) return;
    if ( !arrParams[3] ) var gflag = "";
    if (open_confirm("my",'¼±ÅÃÇÑ ¾ÆÀÌÅÛÀ» Á¤¸» Áö¿ì½Ã°Ú½À´Ï±î?',"³ªÀÇ ¿ÊÀå"))
    {
      var retStr = virtualGET(virtualBaseUrl+"char_virtual.nwz?itemsrl="+itemsrl+"&hs="+arrParams[6]+"&tm="+arrParams[7]+"&gflag="+arrParams[5]+"&own_id="+arrParams[0]); 
      if(retStr.length > 0)
      {
        eval(retStr);
      }
    }
    else
      return;
*/
  }
  else if ( strFuncName == "delfreeitem" )
  {
   //alert("http://saymall.sayclub.com/saymall_delete_free_item.nwz?own_id="+arrParams[0]+"&cont_id="+arrParams[2]+"&layer="+arrParams[3]);
   location.href="http://saymall.sayclub.com/saymall_delete_free_item.nwz?own_id="+arrParams[0]+"&cont_id="+arrParams[2]+"&layer="+arrParams[3];

  }
  else if ( strFuncName == "delitempmang" )
  {
     if(arrParams[0]==-1)
    {
      alert('±âº»¾ÆÀÌÅÛÀº »èÁ¦ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
      return;
    }
    open_win("http://saymall.sayclub.com/saymall_own_action_pmang.nwz?action=deleteOwn&gflag="+arrParams[5]+"&own_id="+arrParams[0]+"&cont_id="+arrParams[2]+"&act="+arrParams[5], "sell", 410, 300 );
  }
  else if (strFuncName == "delitemhompy")
  {
    if ( !arrParams[3] ) var gflag = "";
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=deleteOwn&gflag="+arrParams[3]+"&own_id="+arrParams[6]+"&cont_id="+arrParams[0]+"&act="+arrParams[5], "sell", 410, 300 );
  }
  else if (strFuncName == "delitemhompy2")
  {
    if ( !arrParams[3] ) var gflag = "";
    open_win("http://saymall.sayclub.com/saymall_own_action.nwz?action=deleteOwn&gflag="+arrParams[3]+"&own_id="+arrParams[0]+"&cont_id="+arrParams[0]+"&act="+arrParams[3], "sell", 410, 300 );
  }
  else if ( strFuncName == "showalbum" )
  {
    //var album = open_win("http://my.sayclub.com/my_album_post.nwz?act=show&imgsrl="+arrParams[0], 'album', 410, 330 );
    var album = open_win("http://hompy.sayclub.com/profile/album_solo_post.nwz?mode=mod&albumsrl="+arrParams[0], 'album', 410, 330 );
  }
else if ( strFuncName == "makesticker" )
  {
    open_window('./sticker/make_sticker.nwz?act=info&imgstr='+arrParams[0],'_post','width=548,height=615,toolbar=no,resizable=yes,scrollbars=yes,scrolling=auto');
    //open_win("http://my.sayclub.com/sticker/make_sticker.nwz?act=info&imgsrl="+arrParams[0], 'sticker', 527, 650 );
  }
  else if ( strFuncName == "maketail" )
  {
    if ( typeof sig_url != "undefined" )
      document.location.href=sig_url;
    else
      return;
  }
  else if ( strFuncName == "delalbum" )
  {
    delAlbumItem(arrParams[0], arrParams[1], arrParams[2], arrParams[6], arrParams[7] );
  }
  else if ( strFuncName == "showmsg" ) /* Çì¾î½ºÅ¸ÀÏ ¹Ù²Ù±â »ó¼¼Á¤º¸ 1 */
  {
    alert('d_preview ·Î ¹Ù²Ù¼¼¿ä');
    SaymallDress_putOnItem( arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4]);
  }
  else if ( strFuncName == "preview" ) /* Çì¾î½ºÅ¸ÀÏ ¹Ù²Ù±â »ó¼¼Á¤º¸ 1 */
  {
    alert('d_preview ·Î ¹Ù²Ù¼¼¿ä');
    SaymallDress_putOnItem( arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4]);
  }
  else if ( strFuncName == "changeall" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¾ó±¼ update */
  {
    alert('d_buy ·Î ¹Ù²Ù¼¼¿ä');
    open_win("http://saymall.sayclub.com/saymall_buy_product.nwz?saleinfo_id="+arrParams[0], 'change', 400, 280);
  }
  else if ( strFuncName == "showdye" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö  ¹Ù²Ù±â »ó¼¼Á¤º¸ */
  {
    alert('d_preview ·Î ¹Ù²Ù¼¼¿ä');
    SaymallDress_putOnItem( arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4]);
  }
  else if ( strFuncName == "changedye" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö update */
  {
    alert('d_buy ·Î ¹Ù²Ù¼¼¿ä');
    open_win("http://saymall.sayclub.com/saymall_buy_product.nwz?saleinfo_id="+arrParams[0], 'dye', 400, 280);
  }
  else if ( strFuncName == "d_preview" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö  ¹Ù²Ù±â »ó¼¼Á¤º¸ */
  {
    SaymallDress_putOnItem( arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4]);
  }
  else if ( strFuncName == "d_detail" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö  ¹Ù²Ù±â »ó¼¼Á¤º¸ */
  {
    window.open("http://saymall.sayclub.com/saymall_popup_product_info.nwz?&saleinfo_id="+arrParams[0], "_info");
  }
  else if ( strFuncName == "d_buy" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö  ¹Ù²Ù±â »ó¼¼Á¤º¸ */
  {
    open_win("http://saymall.sayclub.com/saymall_buy_product.nwz?saleinfo_id="+arrParams[0], 'buy', 410, 400);
  }
  else if ( strFuncName == "d_gift" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö  ¹Ù²Ù±â »ó¼¼Á¤º¸ */
  {
    open_win("http://saymall.sayclub.com/saymall_gift_product.nwz?saleinfo_id="+arrParams[0], 'gift', 410, 400);
  }
  else if ( strFuncName == "eartalk" ) /* Çì¾î½ºÅ¸ÀÏ°ú ¿°»ö update */
  {
    if ("function" == typeof(select_eartalk_target))
      select_eartalk_target (targetMsrl)
  }
  else if ( strFuncName == "saymallshopping" ) /* ³ªÀÇ ¸Þ´º¿¡¼­ Ä³¸¯ÅÍ¾ÆÀÌÅÛ ¼îÇÎ */
  {
    var url = "http://saymall.sayclub.com/saymall_catalog_character.nwz";

    if("undefined"!=typeof(arrParams[1]))
    {
      if (1==arrParams[1])
        parent.document.location.href = url;
      else if (2==arrParams[1])
        window.open(url);
      return;
    }
    if(document.location.href.indexOf('/memosend.nwz') > 0) {
      window.open(url);
    } else {
      document.location.href = url;
    }
  }
  else if ( strFuncName == "styleshopping" ) /* ³ªÀÇ ¸Þ´º¿¡¼­ Çì¾î½ºÅ¸ÀÏ ¹Ù²Ù±â */
  {
    var url = "http://saymall.sayclub.com/saymall_catalog_character.nwz?cat=1000000001_1000000052";

    if("undefined"!=typeof(arrParams[1]))
    {
      if (1==arrParams[1])
        parent.document.location.href = url;
      else if (2==arrParams[1])
        window.open(url);
      return;
    }
    if(document.location.href.indexOf('/memosend.nwz') > 0) {
      window.open(url);
    } else {
      document.location.href = url;
    }
    
  }
  else if ( strFuncName == "mychest" ) /* ³ªÀÇ ¸Þ´º¿¡¼­ ³ªÀÇ ¿ÊÀå */
  {
    if("undefined"!=typeof(parent.document))
    {
      if( (document.location+"").indexOf("pmang.sayclub.com") > 0 )
        window.open("http://pmang.sayclub.com/my_character.nwz");
        //parent.document.location.href= "http://pmang.sayclub.com/my_character.nwz";
      else if(document.location.href.indexOf('/memosend.nwz') > 0)
        window.open("http://saymall.sayclub.com/saymall_my_character.nwz");
      else 
        parent.document.location.href= "http://saymall.sayclub.com/saymall_my_character.nwz";
      return;
    }
    if("undefined"!=typeof(arrParams[0]) && 'pmang'==arrParams[0])
      document.location.href= "http://pmang.sayclub.com/my_character.nwz";
    else 
      document.location.href= "http://saymall.sayclub.com/saymall_my_character.nwz";
  }
  else if ( strFuncName == "chat_mychest" ) /* Ã¤ÆÃ¹æ ¸¶ÀÇ ¸Þ´º¿¡¼­ ³ªÀÇ ¿ÊÀå */
  {
    top.window.open("http://saymall.sayclub.com/saymall_my_character.nwz");
  }
  else if ( strFuncName == "myalbum" ) /* ¸¶ÀÇ ¸Þ´º¿¡¼­ ³ªÀÇ ¾Ù¹ü */
  {
    var url;
    if("undefined"!=typeof(arrParams[0]) && 'pmang'==arrParams[0])
      url = "http://pmang.sayclub.com/my_album.nwz";
    else 
      url = "http://saymall.sayclub.com/saymall_my_album.nwz";
    if(document.location.href.indexOf('/memosend.nwz') > 0) {
      window.open(url);
      return;
    }
    if("undefined"!=typeof(arrParams[1]) && 2==arrParams[1])
    {
      window.open(url);
      return;
    }
    if("undefined"!=typeof(parent.document))
    {
      parent.document.location.href = url;
      return;
    }
    if(document.location.href.indexOf('/memosend.nwz') > 0) {
      window.open(url);
      return;
    } 

    document.location.href = url;
  }
  else if ( strFuncName == "myitem" ) /* ¸¶ÀÇ ¸Þ´º¿¡¼­ ³ªÀÇ ¾Ù¹ü */
  {
    if("undefined"!=typeof(arrParams[1]) && 1==arrParams[1])
    {
      parent.document.location.href= "http://saymall.sayclub.com/saymall_my_magic.nwz";
      return;
    }
    document.location.href="http://saymall.sayclub.com/saymall_my_magic.nwz";
  }
  else if ( strFuncName == "changemood" ) /* ³ªÀÇ ¸Þ´º¿¡¼­ Ç¥Á¤¹Ù²Ù±â */
  {
    _exec_changemood(arrParams[1]);
  }
  else if (strFuncName == "changeshopmood")
  {
    SaymallDress_renderMood(arrParams[1]);
  }
  else if ( strFuncName == "changedusername" ) /* ¸¶ÀÇ ¸Þ´º¿¡¼­ º°¸í¹Ù²Ù±â */
  {
    open_win("http://my.sayclub.com/popup_dusername.nwz", 'dusername', 400, 280);
  }
  else if (strFuncName == "enterchat")
  {
    var getbminfo,bminfo;
    getbminfo = arrParams[0];
    var bmchannel,bmip,bmport,bmcategory;
    bminfo = getbminfo.split("-");
    tmpbmchannel=bminfo[0];
    tmpbmchannel=tmpbmchannel.split("_");
    bmchannel=tmpbmchannel[0];
    bmchannel=bmchannel.replace("*","#");
    bmchannel=unescape(bmchannel);
    bmcategory=bmchannel.substr(2,3);

    bmopts = "el=http://saycast.sayclub.com/chlist.nwz?category="+bmcategory;

    join_channel(bmchannel, bmopts );
  }
  else if (strFuncName == "newbm")
  {
    var getbminfo,bminfoi,bmurl;
    getbminfo = arrParams[0];
    var bmchannel,bmip,bmport,bmcategory;
    bminfo = getbminfo.split("-");
    //bmip=bminfo[1];
    //bmport=bminfo[2];
    bmurl=bminfo[1];
    window.location = "javascript:jukeon_play_saycast('http://"+bmurl+".saycast.com/listen.pls');";
  
  }
  else if (strFuncName == "deletebm")
  {
    var getbminfo,bminfo,bmchannel;
    getbminfo = arrParams[0];
    bminfo = getbminfo.split("-");
    bmchannel=bminfo[0];
    bmchannel=bmchannel.replace("*","#");
    open_win("http://saycast.sayclub.com/add_favor.nwz?mode=delete&channel_name="+bmchannel,"_bm",450,242);
  
  }
  else if (strFuncName == 'insertplayroom')
  {
    insert_playroom(arrParams[0], arrParams[1], arrParams[2], arrParams[3]);
    show_data();
  }
  else if(strFuncName == 'insertplayroomitem')   
  {
    insert_playroom_item(arrParams[0], arrParams[1], arrParams[2], arrParams[3])   
  } 
  else if (strFuncName == 'useskin')
  {
    preview(arrParams[0], arrParams[1], arrParams[2], arrParams[4]);
    //use_skin(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4]);
  }
  else if (strFuncName == 'use_cafeitem')
  {
    use_cafeitem(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5], arrParams[6]);
  }
  else if (strFuncName == 'del_cafeitem')
  {
    //+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+"
    del_cafeitem(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5], arrParams[6]);
  }
  else if (strFuncName == 'info_cafeitem')
  {
    info_cafeitem(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5], arrParams[6]);
  }
  else if (strFuncName == 'stop_cafeitem' || strFuncName == 'stopcafedeco')
  {
    stop_cafeitem(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5], arrParams[6]);
  }
  else if (strFuncName == 'view_cafeitem')
  {
    view_cafeitem(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5], arrParams[6]);
  }
  else if (strFuncName == 'use_myfont')
    use_myfont(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5]);
  else if (strFuncName == 'gift_myfont')
    gift_myfont(arrParams[0], arrParams[1]);
  else if (strFuncName == 'del_myfont')
    del_myfont(arrParams[0], arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5]);
  else if (strFuncName == 'info_myfont')
    info_myfont(arrParams[0]);
  else if (strFuncName == 'giftskin')
  {
     
  }
  else if (strFuncName == 'previewskin')
  {
    preview(arrParams[0], arrParams[1], arrParams[2], arrParams[3]);
  }
  else if (strFuncName == 'usebubble')
  {
    use_bubble(arrParams[0], arrParams[1], arrParams[2], arrParams[3]);
  }
  else if (strFuncName == 'delbubble')
  {
    alert('b');
  }
  else if (strFuncName == 'layerforward')
  {
    layerforward();
  }
  else if (strFuncName == 'layerbackward')
  {
    layerbackward();
  }
  else if (strFuncName == 'eliminate')
  {
    remove_item(arrParams[0], arrParams[1], arrParams[2], arrParams[3]);
  }
  else if (strFuncName == 'gochatting')
  {
    connect_ting_client('c',targetMsrl,targetid,targetNickname);
  }
  else if (strFuncName == 'goschoolting')
  {
    connect_ting_client('s',targetMsrl,targetid,targetNickname);
  }
  else if (strFuncName == 'gokkting')
  {
    connect_ting_client('k',targetMsrl,targetid,targetNickname);
  }
  else if (strFuncName == 'gonoraeting')
  {
    connect_ting_client('n',targetMsrl,targetid,targetNickname);
  }
  else if (strFuncName == 'usedeco')
  {
    own_id = arrParams[0];
    charge_id = arrParams[1];
    filename = arrParams[2];
    width = arrParams[3];
    height = arrParams[4];
    text_x = arrParams[5];
    text_y = arrParams[6];
    text_w = arrParams[7];
    text_h = arrParams[8];
    posx = arrParams[9];
    posy = arrParams[10];
    period_type = arrParams[11];
    period = arrParams[12];
    name = arrParams[13];
    enddate = arrParams[14];    
    deco_use(own_id, charge_id, filename, width, height, text_x, text_y, text_w, text_h, posx, posy, period_type, period, name, enddate);
  }
  else if (strFuncName == 'previewdeco')
  {
    charge_id = arrParams[0];
    hs = arrParams[1];
    tm = arrParams[2];
    deco_preview(charge_id);
  }
  else if (strFuncName == 'sendowndeco')
  {
    own_id = arrParams[0];
    hs = arrParams[1];
    tm = arrParams[2];
    deco_send_own(own_id);
  }
  else if (strFuncName == 'deldeco')
  {
    own_id = arrParams[0];
    cont_id = arrParams[1];
    hs = arrParams[2];
    tm = arrParams[3];
    act = arrParams[4];
    deco_delete(own_id, cont_id, hs, tm, act);
  }
  else if (strFuncName == 'showinfodeco')
  {
    own_id = arrParams[0];
    hs = arrParams[1];
    tm = arrParams[2];
    deco_show_info(own_id);
  }
  else if (strFuncName == 'rmvdeco')
  {
    own_id = arrParams[0];
    charge_id = arrParams[1];
    filename = arrParams[2];
    hs = arrParams[3];
    tm = arrParams[4];
    deco_remove(own_id, charge_id, filename);
  }
  else if (strFuncName == 'hp_sd_foremost')
  {
    SD_Foremost(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'hp_sd_forward')
  {
    SD_Forward(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'hp_sd_backward')
  {
    SD_Backward(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'hp_sd_last')
  {
    SD_Last(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'hp_sd_rm_s')
  {
    SD_Remove(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'hp_sd_rm_p')
  {
    SD_Remove(arrParams[0], arrParams[1]);
  }
  else if (strFuncName == 'infomagic')
  {
    magic_open_win('info', arrParams[0], arrParams[1], arrParams[2]);
  }
  else if (strFuncName == 'usemagic')
  {
    magic_open_win('use', arrParams[0], arrParams[1], arrParams[2]);
  }
  else if (strFuncName == 'delmagic')
  {
    magic_open_win('del', arrParams[0], arrParams[1], arrParams[2]);
  }
  else if (strFuncName == 'sendownmagic')
  {
    magic_open_win('sendown', arrParams[0], arrParams[1], arrParams[2]);
  }
  else if (strFuncName == 'resaleownmagic')
  {
    magic_open_win('resaleown', arrParams[0], arrParams[1], arrParams[2]);
  }
  else if (strFuncName == 'magiccubemagic')
  {
    //UserInsertCube('','','',arrParams[0], 'magic');
  }
  else if(strFuncName == 'putcube') 
  {
    var cOwncont_id, cCont_id, cAct;
    cOwncont_id = arrParams[0];
    cCont_id = arrParams[1];
    cAct = arrParams[2];
    //put in CubeData
    UserInsertCube(cOwncont_id, cCont_id, cAct,'','char');
  }
  else if(strFuncName =='popcube')
  {
    var cOwncont_id, cCont_id, cAct;
//    cOwncont_id = arrParams[0];
    cCont_id = arrParams[0];
    cAct = arrParams[1];
    UserRemoveCube(cCont_id, cAct);
  }
  else if(strFuncName == 'birthdaymemo' )
  {
    if (bLoginStatus)
      open_win("http://memo.sayclub.com/memosend.nwz?forceskin=Y&curskintype=H&curskincode=32&toMsrl="+targetMsrl+"&toid="+targetid,'birthdaymemo', 400, 280);
    else
      openLoginLayer("javascript:execSayMenu('"+strFuncName+"', '"+strQuery+"');");
  }
  else if(strFuncName == 'giftsaymall' )
  {
    window.open('http://saymall.sayclub.com','giftsaymall');
  }
  else if(strFuncName == 'giftgamemall' )
  {
    window.open('http://pmang.sayclub.com/mall_top.nwz?ssn=1','giftgamemall');
  }
  else if(strFuncName == 'removebubble' )
  {
    remove_bubble();
  }
  else if(strFuncName == 'changeeffect' )
  {
    change_effect(arrParams[4], arrParams[5]);
  }
  else if (strFuncName == 'usedecotab')
  {
    own_id = arrParams[0];
    charge_id = arrParams[1];
    filename = arrParams[2];
    deco_tab_use(own_id, charge_id, filename);
  }
  else if (strFuncName == 'stopdecotab')
  {
    own_id = arrParams[0];
    deco_tab_stop();
  }
  else if (strFuncName == 'usedecofont')
  {
    own_id = arrParams[0];
    charge_id = arrParams[1];
    filename = arrParams[2];
    area1 = arrParams[3];
    area2 = arrParams[4];
    area3 = arrParams[5];
    area4 = arrParams[6];
    area5 = arrParams[7];
    period_type = arrParams[8];
    period = arrParams[9];
    name = arrParams[10];
    enddate = arrParams[11];    
    deco_font_use(own_id, charge_id, filename, area1, area2, area3, area4, period_type, period, name, enddate);
  }
  else if (strFuncName == 'stopdecofont')
  {
    own_id = arrParams[0];
    deco_font_stop();
  }
  else if (strFuncName == 'stopskin')
  {
    own_id = arrParams[0];
    restore_skin(own_id);
  }
  else if (strFuncName =='buythis')
  {
     if('undefined'!=SaymallCatalog_openWinByAction)
      SaymallCatalog_openWinByAction('buy', arrParams[0], arrParams[1], arrParams[2], arrParams[3]);
  }
  else if (strFuncName =='delwishbox')
  {
    if('undefined'!=SaymallCatalog_openWinByAction)
      SaymallCatalog_openWinByAction('wishdel', arrParams[0]);
  }
  else if (strFuncName =='goodsinfo')
  {
    if('undefined'!=SaymallCatalog_openWinByAction)
      SaymallCatalog_openWinByAction('info', arrParams[1], '', arrParams[6], arrParams[0]);
  }
  else if (strFuncName =='previewthis')
  {
    if('undefined'!=Saymall_spAction)
      Saymall_spAction(strFuncName, arrParams);
  }
  else if (strFuncName =='searchpreviewthis')
  {
    var useType=arrParams[0];
    if(useType=='c' || useType=='d' || useType=='t' || useType=='h')
    {
      if('undefined'!=parent.SaymallDress_putOnItem)
        parent.SaymallDress_putOnItem(arrParams[1], arrParams[2], arrParams[3], arrParams[4], arrParams[5]);
    }
    else if(useType=='r')
    {
      alert('searchÀÔ´Ï´Ù. catalog¿Í ¸ÂÃçÁÖ¼¼¿ä.');
    }
  }
  else if (strFuncName =='scratch')
  {
    open_win('http://saymall.sayclub.com/saymall_scratch.nwz','saymall_scratch',610,830);
  }
  else if ( strFuncName == "charbattle" )/*{{{*/
  {
    var oops = open_win_noresizable( "http://saychatting.sayclub.com/battle/saymall_battle_wpopup.nwz?targetmsrl="+targetMsrl, '_charbattle',468,513);
  }
	else if ( strFuncName == "myaccount" )
	{
		//document.location.href = "http://pmang.sayclub.com/my_point.nwz";		
		window.open("http://pmang.sayclub.com/my_point.nwz");		
	}
	else if ( strFuncName == "myfriends" )
	{
		//document.location.href = "http://pmang.sayclub.com/my_friends.nwz";		
		window.open("http://pmang.sayclub.com/my_friends.nwz");		
	}
  else if ( strFuncName == "jjimroom" )  // ÀÌº¥Æ®¿ëÀ¸·Î Ãß°¡
  {
    document.a_room.srl.value = arrParams[1];
    document.a_room.act.value = 4;
    document.a_room.submit();
  }
  else if ( strFuncName == "deletejjim" ) // ÀÌº¥Æ®¿ëÀ¸·Î Ãß°¡
  {
    if (confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
    {
      document.a_room.srl.value = arrParams[1];
      document.a_room.act.value = 2;
      document.a_room.submit();
    }
  }
  else if ( strFuncName == "todaytojjim" )      // ¼¼ÀÌ¸ô¸®´º¾ó(¿À´Ãº»»óÇ°) - (07.08.07)
  {
    SaymallCatalog_openWinByAction('wishadd',arrParams[1],arrParams[2],arrParams[3],arrParams[4],arrParams[5]);
  }
	else if ( strFuncName == "todayviewdesc" )
	{
    SaymallCatalog_openWinByAction('info',arrParams[1],arrParams[2],arrParams[3],arrParams[4],arrParams[5],arrParams[6],arrParams[7]);
	}
	else if ( strFuncName == "todaydelete" )
	{
    SaymallCatalog_delTodayItem(arrParams[1]);
	}
  else if ( strFuncName == "addmystar" )      // ³»½ºÅ¸·Î Ãß°¡
  {
    if (typeof(addMyStar) != 'undefined') addMyStar();
  }
  else
  {
  }/*}}}*/
}

function _exec_changemood(mood)/*{{{*/
{
  var retVal = virtualGET("http://"+document.location.hostname+"/global/virtual/mood_virtual.nwz?new_mood="+mood+"&myhs="+myhs+"&tm="+tm);
  //var imgroot_file2 = "http://file.sayclub.co.kr/charimg/item_real2/";
  var imgroot_file2 = "http://filei.sayclub.kr/charimg/item_real2/";
  var arrcharinfo = retVal.split("!");
  var layer = arrcharinfo[0];  
  var imgname = arrcharinfo[1];

  if('undefined' != typeof(MyDress_renderMood))
  {
    if('undefined'!=typeof(MyCharacter))
    {
      MyDress_renderMood(mood);
      return;
    }
  }
  else if('undefined' != typeof(SaymallDress_renderMood))
  {
    if('undefined'!=typeof(CharList))
    {
      SaymallDress_renderMood(mood);
      return;
    }
  }

  //if(!imgname)
  // return ; 

  var prevface = '';
  var headlayer = '';

  if('object' != typeof(document.images["ImgChar1"]))
    return;

  if(imgroot_file2+"img_blank.gif"!=document.images["ImgChar1"].src)
  {
    prevface = document.images["ImgChar1"].src;
    document.images["ImgChar1"].src = prevface.substr(0, prevface.lastIndexOf("_"))+"_0"+mood+".gif";
    prevface = document.images["ImgChar13"].src;
    document.images["ImgChar13"].src = prevface.substr(0, prevface.lastIndexOf("_"))+"_0"+mood+".gif";
  }
  else
  {
    prevface = document.images["ImgChar5"].src;
    document.images["ImgChar5"].src = prevface.substr(0, prevface.lastIndexOf("_"))+"_0"+mood+".gif";
  }

  if(imgroot_file2+"img_blank.gif"!=document.images["ImgChar19"].src)
  {
    prevface = document.images["ImgChar19"].src;
    document.images["ImgChar19"].src = prevface.substr(0, prevface.lastIndexOf("_"))+"_0"+mood+".gif";
  }
  else if(imgroot_file2+"img_blank.gif"!=document.images["ImgChar18"].src)
  {
    prevface = document.images["ImgChar18"].src;
    document.images["ImgChar18"].src = prevface.substr(0, prevface.lastIndexOf("_"))+"_0"+mood+".gif";
  }
  //document.images["ImgChar"+layer].src = imgroot_file2 + imgname;
}/*}}}*/

function showSayModalPop(msgs, pmodulename, pwidth, pheight)/*{{{*/ 
{
  var modulename = "memo";
  var popwidth = "300";
  var popheight = "280";

  if(pmodulename != "" && typeof(pmodulename) != "undefined") modulename = pmodulename;
  if(pwidth != "" && typeof(pwidth) != "undefined") popwidth = pwidth;
  if(pheight != "" && typeof(pheight) != "undefined") popheight = pheight;

  if( msgs != "" && msgs.charAt(1) == ',')
  {
    if(msgs.charAt(0) == '1')
    {
      if ( pmodulename == "my" )
      {
        // ÇÇ¸Á°ú ¼¼ÀÌÅ¬·´ÀÇ ÆË¾÷ µðÀÚÀÎÀÌ ´Ù¸£´Ù
        if ( document.location.hostname.indexOf("pmang.") != -1 )
          open_alert(modulename,msgs.substring(2),"¼º°ø",popwidth,popheight,"´Ý±â",80,"",0);
        else
          openAlertNoIcon("member","¼º°ø",msgs.substring(2),popwidth,popheight);
      }
      else
      {
        if ( document.location.hostname.indexOf("pmang.") != -1 )
          open_alert(modulename,msgs.substring(2),"¼º°ø",popwidth,popheight,"´Ý±â",80,"",0);
        else
          openAlertNoIcon("common","¼º°ø",msgs.substring(2),popwidth,popheight);
      }


      if(document.location.pathname.indexOf("/friends.nwz") == 0 ||
         document.location.pathname.indexOf("/my_friends.nwz") == 0 ||
         document.location.pathname.indexOf("/blacklist.nwz") == 0 ||
         document.location.pathname.indexOf("/my_blacklist.nwz") == 0 ||
         document.location.pathname.indexOf("/friend/") == 0
         )
        document.location.reload();
    }
    else // 0
    {
      if ( pmodulename == "my" )
      {
        if ( document.location.hostname.indexOf("pmang.") != -1 )
          open_alert(modulename,msgs.substring(2),"¿À·ù",popwidth,popheight,"´Ý±â",80,"",0);
        else
          openAlertNoIcon("member","¿À·ù",msgs.substring(2),popwidth,popheight);
      }
      else
      {
        if ( document.location.hostname.indexOf("pmang.") != -1 )
          open_alert(modulename,msgs.substring(2),"¿À·ù",popwidth,popheight,"´Ý±â",80,"",0);
        else
          openAlertNoIcon("common","¿À·ù",msgs.substring(2),popwidth,popheight);
      }
    }
  }
}/*}}}*/

///// generate link /////

function gen_mymenu (strusrid, strmenu, strcontent, from)
{
  if('undefined' == typeof(from))
    var from = '';

  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?changemood=&styleshopping=&saymallshopping=&chat_mychest="+from+"&whoonepmang="+strusrid+"&guestbook="+strusrid+"&mychest="+from+"&myalbum="+from+"&hompymanage=&gomyhompy=&myprofile=&myprofilepmang=&myitem=&myaccount=&myfriends=&changeshopmood=\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',window.event,'"+strusrid+"')\">"+strcontent+"</a>";
}
function gen_myprofile(strusrid, strmenu, strcontent)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?styleshopping=,2&saymallshopping=,2&chat_mychest=,2&mychest=,2&myalbum=,2&hompymanage=&gomyhompy=&myprofile=&myprofilepmang=&myitem=&myaccount=&myfriends=&changeshopmood=&changemood=\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',window.event,'"+strusrid+"')\">"+strcontent+"</a>";
}
function gen_changeshopmood (strmenu, strcontent)
{
  document.write("<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?changeshopmood=\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',window.event)\">"+strcontent+"</a>");
}
function gen_pa_str (strusrid, strmenu, strcontent)
{
  var arrid = strusrid.split("|");
  if (arrid.length > 1) {
    var idngroupsn = strusrid; // ±×·ì¿¡¼­ »èÁ¦ÇÏ·Á¸é groupsnÀ» ³Ñ°Ü¾ß ÇÏ¹Ç·Î id|groupsn ÀÌ µ¥ÀÌÅÍº¸³¿
    strusrid = arrid[0];
  }

  var arrTemp = strusrid.split(":");
  if (arrTemp.length > 1)
    var IDStr = arrTemp[1];
  else
    var IDStr = strusrid;

  var etc;
  var ftitle = '';
  var arrcontent = strcontent.split("|");
  if (arrcontent.length > 1) {
    etc = arrcontent[1];
    if (etc.length > 0) {
      if (arrcontent[2] == 'couple')
        etc = "Ä¿ÇÃÁ¤º¸ : "+etc;
      else
        etc = "Ä£±¸Á¤º¸ : "+etc;

      ftitle = "title='"+etc+"'";
    }
    strcontent = arrcontent[0];
  }

  if (ftitle.length <= 0) {
    // º°¸í¸¸ Ç¥½ÃµÇ´Â °æ¿ì ÅøÆÁÀ¸·Î ¾ÆÀÌµð º¸¿©ÁÖ±â
    if (strcontent.lastIndexOf("\(") < 0 && strcontent.lastIndexOf("\<img") < 0)
      ftitle = "title='ID : "+IDStr+"'"; 
  }


  /* ÁÖÀÇ Ãß°¡Àü ²À ÀÐ¾îÁÖ¼¼¿ä  by saset
   * friendadd´Â ¸Ç ¸¶Áö¸·¿¡ ¿Í¾ßÇÑ´Ù. ¾ÕÀ¸·Î ¾î¶² ÆÄ¶ó¹ÌÅÍ Ãß°¡½Ã ´Â friendaddÀü¿¡ Ãß°¡ ÇÏ¿©¾ß ÇÑ´Ù.
   * friendadd½Ã groupsnÀ» ArrManagerView ÀÇ printSubMenuGroup¿¡¼­ ³Ñ°ÜÁÖ´Â ÆÄ¶ó¹ÌÅÍ¸¦ Ãß°¡ÇÏ¿©ÁØ´Ù.
   */
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?blacklistadd="+strusrid+"&addmystar="+strusrid+"&cjtalk="+strusrid+"&ditto="+strusrid+"&character="+strusrid+"&teentalk="+strusrid+"&mailnew="+strusrid+"&whoone="+strusrid+"&guestbook="+strusrid+"&myaccount=&mychest=&myfriends=&whoonepmang="+strusrid+",off&gohompy="+strusrid+",off&whoru="+strusrid+"&talk="+strusrid+",true&talk_hompy="+strusrid+",true&smssend="+strusrid+"&memosend="+strusrid+"&memosend_hompy="+strusrid+"&friendlist="+strusrid+"&del_denylist="+strusrid+"&friendinfo="+strusrid+"&coupleinfo="+strusrid+"&kill="+strusrid+"&delingroup="+idngroupsn+"&delincouple="+strusrid+"&eartalk="+strusrid+"&newbm="+strusrid+"&enterchat="+strusrid+"&deletebm="+strusrid+"&denyinfo="+strusrid+"&gochatting="+strusrid+"&goschoolting="+strusrid+"&gokkting="+strusrid+"&gonoraeting="+strusrid+"&birthdaymemo="+strusrid+"&movefriend="+"&giftsaymall="+strusrid+"&giftgamemall="+strusrid+"&charbattle="+strusrid+"&friendadd="+strusrid+"\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',window.event,'"+strusrid+"')\" "+ftitle+">"+strcontent+"</a>";
}
function gen_pa_str2 (strusrid, strmenu, strcontent)
{
  var arrid = strusrid.split("|");
  if (arrid.length > 1) {
    var idngroupsn = strusrid;
    strusrid = arrid[0];
  }

  var arrTemp = strusrid.split(":");
  if (arrTemp.length > 1)
    var IDStr = arrTemp[1];
  else
    var IDStr = strusrid;

  var etc;
  var ftitle = '';
  var arrcontent = strcontent.split("|");
  if (arrcontent.length > 1) {
    etc = arrcontent[1];
    if (etc.length > 0) {
      etc = "Ä£±¸Á¤º¸ : "+etc;
      ftitle = "title='"+etc+"'";
    }
    strcontent = arrcontent[0];
  }

  if (ftitle.length <= 0) {
    if (strcontent.lastIndexOf("\(") < 0 && strcontent.lastIndexOf("\<img") < 0)
      ftitle = "title='ID : test"+IDStr+"'"; 
  }

  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?mailnew="+strusrid+"&whoone="+strusrid+"&whoonepmang="+strusrid+",off&guestbook="+strusrid+",off&gohompy="+strusrid+",off&whoru="+strusrid+"&talk="+strusrid+",true&talk_hompy="+strusrid+",true&smssend="+strusrid+"&memosend="+strusrid+"&memosend_hompy="+strusrid+"&friendlist="+strusrid+"&del_denylist="+strusrid+"&friendinfo="+strusrid+"&coupleinfo="+strusrid+"&kill="+strusrid+"&delingroup="+idngroupsn+"&delincouple="+strusrid+"&eartalk="+strusrid+"&newbm="+strusrid+"&enterchat="+strusrid+"&deletebm="+strusrid+"&eliminate="+strusrid+"&layerforward="+strusrid+"&layerbackward="+strusrid+"&movefriend="+idngroupsn+"\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',window.event,'"+strusrid+"')\" "+ftitle+">"+strcontent+"</a>";
}
function gen_pa_today(usetype,product_id,saleinfo_id,cont_id,cat_id,location,filename,strmenu,strcontent)
{
  var ftitle = '¿À´Ãº» »óÇ°';
  return "<A class=leftMenuMore style=cursor:hand href=\"http://www.sayclub.com/global/nph-nocon.cgi?todaytojjim="+MSRL+","+usetype+","+product_id+","+saleinfo_id+","+cont_id+","+cat_id+"&todayviewdesc="+MSRL+","+usetype+","+product_id+","+saleinfo_id+","+cont_id+","+cat_id+","+location+","+filename+"&todaydelete="+MSRL+","+product_id+"&dummy=dummy"+"\" onmouseover=\"setCurPopUpMenu('"+strmenu+"',event,'"+MSRL+"')\" "+ftitle+">"+strcontent+"</a>";

}
function gen_pa (strusrid, strmenu, strcontent)
{
  var arrStr = strusrid.split(":");
  if (arrStr.length > 1)
  {
    var strMsrl = arrStr[0];
    var strid = arrStr[1];
  }
  else
    var strid = strusrid;

  if (strid == "sayclub" || strid.substring(0,4) == "say_" || strid.substring(0,4) == "neo_"|| strid.substring(0,6) == "pmang_"||strid.substring(0,7)=="jukeon_") {
    document.write(strcontent);
  }
  else {
    // Ä£±¸¸®½ºÆ®ÀÎ °æ¿ì(±×·ìÀÌµ¿À»À§ÇØ µû·Î »ý¼º)
    if (strmenu == "elMenu9" || strmenu == "elMenu10" || strmenu == "elMenu15" || strmenu == "elMenu16" || strmenu == "elMenu128")
      document.write(gen_pa_str2(strusrid, strmenu, strcontent));
    else if (strmenu == "elMenu12" || strmenu == "elMenu23" || strmenu== "elMenu27" || strmenu == "elMenu28" || strmenu == "elMenu29" || strmenu == "elMenu85" || strmenu == "elMenu130" )
      document.write(gen_mymenu(strusrid, strmenu, strcontent));
    else if (strmenu == "elMenu115" || strmenu == "elMenu131" )
      document.write(gen_myprofile(strusrid, strmenu, strcontent));
    else
      document.write(gen_pa_str(strusrid, strmenu, strcontent));
  }
}
function gen_char (srl, layer, filename, menu,  title, gflag, hs, tm)
{
  document.write(gen_char2(srl, layer, filename, menu, title, gflag, hs, tm)) ; 
}
function gen_char2 (srl, layer, filename, menu, title, gflag, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?takeoff="+srl+","+layer+","+filename+"&showinfo="+srl+","+layer+","+filename+","+gflag+"&takeon="+srl+","+layer+","+filename+"&sellthis="+srl+","+layer+","+filename+","+gflag+"&giftthis="+srl+","+layer+","+filename+","+gflag+"&showmsg="+srl+","+layer+","+filename+"&showinfo="+srl+","+layer+","+filename+"&delitem="+srl+","+layer+","+filename+","+gflag+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>"; 
}
function gen_char_sso (srl, layer, filename, index, menu, title, gflag, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?takeoff="+srl+","+layer+","+filename+"&giftthishompyetc="+srl+","+layer+","+filename+","+gflag+","+index+"&usebubble="+srl+","+filename+","+index+","+gflag+"&giftskin="+srl+","+filename+","+index+"&previewskin="+layer+","+filename+","+gflag+","+index+"&useskin="+srl+","+filename+","+index+","+gflag+","+layer+"&insertplayroom="+srl+","+layer+","+filename+","+index+"&insertplayroomitem="+srl+","+layer+","+filename+","+index+"&showinfohompy="+srl+","+layer+","+filename+","+gflag+","+srl+"&takeon="+srl+","+layer+","+filename+","+index+"&sellthishompy="+srl+","+layer+","+filename+","+gflag+"&sellthis="+srl+","+layer+","+filename+","+gflag+"&giftthis="+index+","+srl+","+layer+","+filename+","+gflag+"&giftthishompy="+srl+","+layer+","+filename+","+gflag+","+index+"&showmsg="+srl+","+layer+","+filename+"&showinfo2="+srl+","+layer+","+filename+","+gflag+","+index+"&delitemhompy2="+srl+","+layer+","+filename+","+gflag+","+hs+","+tm+","+index+"&delitemhompy="+srl+","+layer+","+filename+","+gflag+","+hs+","+tm+","+index+"&stopskin="+srl+"&delitem="+srl+","+layer+","+filename+","+gflag+","+hs+","+tm+"&\"  onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}
function gen_char_effect (srl, layer, filename, index, menu, title, gflag, hs, tm, html, effect_title)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&changeeffect="+srl+","+layer+","+filename+","+index+","+html+","+effect_title+"&showinfohompy="+srl+","+layer+","+filename+","+gflag+","+srl+"&sellthishompy="+srl+","+layer+","+filename+","+gflag+"&giftthishompy="+srl+","+layer+","+filename+","+gflag+","+index+"&delitemhompy2="+srl+","+layer+","+filename+","+gflag+","+hs+","+tm+"&\"  onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}


function gen_cafe_item (csrl, own_id, saleinfo_id, cont_id, filename, act, usetype, menu, title, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?use_cafeitem="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+"&del_cafeitem="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+","+hs+","+tm+"&info_cafeitem="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+","+hs+","+tm+"&stop_cafeitem="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+","+hs+","+tm+"&view_cafeitem="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+","+hs+","+tm+"&stopcafedeco="+csrl+","+own_id+","+saleinfo_id+","+cont_id+","+filename+","+act+","+usetype+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}

function gen_saymall_my_font (own_id, charge_id, cont_id, filename, act, name, menu, title, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?use_myfont="+own_id+","+charge_id+","+cont_id+","+filename+","+act+","+name+"&gift_myfont="+own_id+","+act+"&del_myfont="+own_id+","+charge_id+","+cont_id+","+filename+","+act+","+name+","+hs+","+tm+"&info_myfont="+own_id+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}

function gen_char_deco (own_id, charge_id, hs, tm, menu, title, filename, width, height, text_x, text_y, text_w, text_h, posx, posy, cont_id, act, enddate, period_type, period, name)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?usedeco="+own_id+","+charge_id+","+filename+","+width+","+height+","+text_x+","+text_y+","+text_w+","+text_h+","+posx+","+posy+","+period_type+","+period+","+name+","+enddate+"&previewdeco="+charge_id+","+hs+","+tm+"&sendowndeco="+own_id+","+hs+","+tm+"&deldeco="+own_id+","+cont_id+","+hs+","+tm+","+act+"&showinfodeco="+own_id+","+hs+","+tm+"&rmvdeco="+own_id+","+charge_id+","+filename+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}

function gen_char_deco_tab (own_id, charge_id, hs, tm, menu, title, filename, cont_id, act, enddate, period_type, period, name)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?usedecotab="+own_id+","+charge_id+","+filename+"&previewdeco="+charge_id+","+hs+","+tm+"&sendowndeco="+own_id+","+hs+","+tm+"&deldeco="+own_id+","+cont_id+","+hs+","+tm+","+act+"&showinfodeco="+own_id+","+hs+","+tm+"&stopdecotab="+own_id+","+charge_id+","+filename+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}

function gen_char_deco_font (own_id, charge_id, hs, tm, menu, title, filename, area1, area2, area3, area4, area5, cont_id, act, enddate, period_type, period, name)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?usedecofont="+own_id+","+charge_id+","+filename+","+area1+","+area2+","+area3+","+area4+","+area5+","+period_type+","+period+","+name+","+enddate+"&previewdeco="+charge_id+","+hs+","+tm+"&sendowndeco="+own_id+","+hs+","+tm+"&deldeco="+own_id+","+cont_id+","+hs+","+tm+","+act+"&showinfodeco="+own_id+","+hs+","+tm+"&stopdecofont="+own_id+","+charge_id+","+filename+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}

function gen_chest (menu, own_id, charge_id, cont_id, layer, filename, ishead,  codestr, title, gflag, hs, tm)
{
  var index = '' + cont_id + '_' + gflag;
  var strParam = '';
  strParam += "takeoff="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+ishead+","+codestr+","+index+"&";
  strParam += "takeon="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+ishead+","+codestr+","+index+"&";
  strParam += "sellthis="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+"&";
  strParam += "giftthis="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+"&";
  strParam += "showmsg="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+"&";
  strParam += "showinfo="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+"&";
  strParam += "delitem="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+","+hs+","+tm+"&";
  strParam += "showinfopmang="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+"&";
  strParam += "delitempmang="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+","+hs+","+tm+"&";
  strParam += "donate="+own_id+","+cont_id+","+gflag+"&";
  //strParam += "putcube="+own_id+","+cont_id+","+gflag+"&";
  strParam += "scratch="+own_id+","+cont_id+","+gflag+"&";
  strParam += "lovemachine="+own_id+","+cont_id+","+gflag+"&";
  //strParam += "popcube="+cont_id+","+gflag+","+filename+"&";
  
  return "<A id=aChest class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>"; 
}

function gen_free_chest(menu, own_id, charge_id, cont_id, layer, filename, ishead,  codestr, title, gflag, hs, tm)
{
  var index = '' + cont_id + '_' + gflag;
  var strParam = '';
  strParam += "delfreeitem="+own_id+","+charge_id+","+cont_id+","+layer+","+filename+","+gflag+","+hs+","+tm+"&";
  
  return "<A id=aChest2 class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\"><div class=\"item\"><img src=\"http://filei.sayclub.kr/charimg/item_real2/d_"+filename+"\" alt=\"\"/></div></a>"; 
}


function gen_search(contents, usetype, product_id, layer, filename, ishead, codestr, menu)
{
    document.write(gen_search2(contents, usetype, product_id, layer, filename, ishead, codestr, menu));
}
function gen_search2(contents, usetype, product_id, layer, filename, ishead, codestr, menu)
{
  var strParam = '';
  strParam += "searchpreviewthis="+usetype+","+product_id+","+layer+","+filename+","+ishead+","+codestr+"&";
  strParam += "goodsinfo="+usetype+","+product_id+","+layer+","+filename+","+ishead+","+codestr+"&";
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+contents+"</a>"; 
}
function gen_catalog(contents, oItem, menu)
{
  var strParam = '';
  strParam += "previewthis="+oItem.usetype+","+oItem.product_id+","+oItem.layer+","+oItem.filename+","+oItem.ishead+","+oItem.codestr+","+oItem.cat_id+","+oItem.x_pos+","+oItem.y_pos+","+oItem.title+","+oItem.point+"&";
  strParam += "goodsinfo="+oItem.usetype+","+oItem.product_id+","+oItem.layer+","+oItem.filename+","+oItem.ishead+","+oItem.codestr+","+oItem.cat_id+"&";
  return "<A href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+contents+"</a>"; 
}
function gen_wishbox(contents, oItem)/*{{{*/
{
  var menu = 'axMenu110';
  var strParam = '';
  strParam += "delwishbox="+oItem.product_id+"&";
  strParam += "goodsinfo="+oItem.usetype+","+oItem.product_id+","+oItem.layer+","+oItem.filename+","+oItem.ishead+","+oItem.codestr+","+oItem.cat_id+"&";
  return "<A href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+contents+"</a>"; 
}/*}}}*/
function gen_cube(menu, cont_id, act, filename, cnt, title)
{
  var index = ''+cont_id+'_'+act;
  var strParam = "popcube="+cont_id+","+act+","+filename+","+cnt+"&";
  return "<A id=aCube class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?"+strParam+"\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>"; 
}
function gen_magic (menu, title, item_code, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?usemagic="+item_code+","+hs+","+tm+"&delmagic="+item_code+","+hs+","+tm+"&sendownmagic="+item_code+","+hs+","+tm+"&infomagic="+item_code+","+hs+","+tm+"&resaleownmagic="+item_code+","+hs+","+tm+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>";
}
function gen_album (srl, layer, filename, menu, title, gflag, hs, tm)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&showalbum="+srl+","+layer+","+filename+"&makesticker="+srl+","+layer+","+filename+"&maketail="+srl+","+layer+","+filename+"&delalbum="+srl+","+layer+","+filename+","+hs+","+tm+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>"; 
}
function gen_facedesc (srl, layer, filename, menu , title)
{
  document.write("<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&preview="+srl+","+layer+","+filename+"&changeall="+srl+","+layer+","+filename+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>");
}
function gen_dyedesc (srl, layer, filename, ishead, codestr, menu , title)
{
  document.write("<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&showdye="+srl+","+layer+","+filename+","+ishead+","+codestr+"&changedye="+srl+","+layer+","+filename+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event)\">"+title+"</a>");
}
function gen_displaylink(menu, srl, layer, filename, ishead, codestr, innerObject)
{
  document.write("<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&d_preview="+srl+","+layer+","+filename+","+ishead+","+codestr+"&d_detail="+srl+"&d_buy="+srl+"&d_gift="+srl+"&\" onmouseover=\"setCurPopUpMenu('"+menu+"',window.event);\">"+innerObject+"</a>");
}
function gen_bubble(menu, title)
{
  return "<A class=leftMenuMore href=\"http://www.sayclub.com/global/nph-nocon.cgi?&removebubble=\" onmouseover=\"setCurPopUpMenu('"+menu+"', window.event);\">"+title+"</a>";
}



///////////// control ax popup /////////////
var strSayPopupParam = ''; // A Link srcEl.Search
var arrCachedPopup = new Array();

function getSayPopupTarget(targetFunc, param)
{
  var curTarget;
  
  if( targetFunc )
  {
    curTarget = 'execSayMenu:'+targetFunc;
    if( param )
      curTarget += "|" + param;
  }
  else
  {
    curTarget = '';
  }

  return curTarget;
}
function setCurPopUpMenu(strmenu, event)
{
  curLinkEl = event.srcElement;
  while (curLinkEl.tagName != "A")
  {
    if (!curLinkEl.parentElement)
      return;
    curLinkEl = curLinkEl.parentElement;
  }

  var menuNo = new Number(strmenu.substr("elMenu".length)); // elMenu ¼öÁ¤ÇÊ¿ä..
  curLinkEl.menuNo = menuNo;
  curLinkEl.onclick = showSayPopUpMenu;
}
function checkLogin4SayPopup()
{
  try {
    var varType = typeof(MSRL);
    if (varType == 'string')
    {
      if (MSRL > 0)
        return true;
      else
        return false;
    }
    //if (varType == 'undefined') return true;
  }
  catch(e){}

  return true;
}
function showSayPopUpMenu()
{
  var menuNo, ctrlID, menuID, arrMenuData, curMenuData, subMenuData, curTarget, tmpData, nDispOrder, nFlag, bLoginStatus;

  bLoginStatus = checkLogin4SayPopup();

  curLinkEl = event.srcElement;
  while (curLinkEl.tagName != "A")
  {
    if (!curLinkEl.parentElement)
      return;
    curLinkEl = curLinkEl.parentElement;
  }

  strSayPopupParam = curLinkEl.search;
  menuNo = curLinkEl.menuNo;
  ctrlID = DEF_ITEMNO_SAYPOPUP + menuNo;
  event.returnValue = false;

  if( arrCachedPopup[ctrlID] ) // find from cache
  {
    ShowSayAxMenu(ctrlID);
    return;
  }

  arrMenuData = getMenuData("axMenu"+menuNo);
  if( arrMenuData.length <= 0 )
    return;

  nDispOrder = 1000;

  for(var i=0, mseq=1; i<arrMenuData.length; i++, mseq++)
  {
    curMenuData = arrMenuData[i];
    if( !bLoginStatus && curMenuData.notLoginExec != "E" && curMenuData.notLoginExec != "L")
      continue;

    if( curMenuData.menuName == "##LINE##" )
    {
      nDispOrder+= 1000;
      continue;
    }
    curTarget = getSayPopupTarget(curMenuData.divCode, curMenuData.param);
    if( curMenuData.subMenu )
    {
      menuID = RegisterMenuItem(ctrlID, nDispOrder++, curMenuData.menuName, 0, 0, curTarget);

      subMenuData = getMenuData(curMenuData.subMenu);
      if( subMenuData.length == 0 )
        subMenuData = eval("window."+curMenuData.subMenu);

      if( typeof(subMenuData) != 'undefined' && subMenuData.length > 0 )
      {
        for(var j=0; j<subMenuData.length; j++)
        {
          curMenuData = subMenuData[j];
          curTarget = getSayPopupTarget(curMenuData.divCode, curMenuData.param);

          RegisterMenuItem(ctrlID, nDispOrder++, curMenuData.menuName, RMI_ITEM_TERMINAL, menuID, curTarget);
        }
      }
      else
      {
        RegisterMenuItem(ctrlID, nDispOrder++, 'No Data', RMI_ITEM_DISABLED|RMI_ITEM_TERMINAL, menuID, '');
      }
    }
    else
    {
      menuID = RegisterMenuItem(ctrlID, nDispOrder++, curMenuData.menuName, RMI_ITEM_TERMINAL, 0, curTarget);
    }
  }

  ShowSayAxMenu(ctrlID);
  arrCachedPopup[ctrlID] = menuNo;
}

