document.write("<script type=\"text/javascript\" src=\"/js/kor/icard.js\"></script>");

/****** ÆË¾÷Ã¢ ¿ÀÇÂ **************************************************************/
function popOpen(url) {

  window.open(url,"","width=1,height=1,toolbar=no,resizable=no,scrollbars=no" );
}

/****** ÆË¾÷Ã¢ ¸®»çÀÌÁî **************************************************************/
function popResize() {
  var thisX = document.getElementById("offsetTable").offsetWidth;
  var thisY = document.getElementById("offsetTable").offsetHeight;
  var maxThisX = screen.width - 50;
  var maxThisY = screen.height - 80;

  if (window.navigator.userAgent.indexOf("SV1") != -1){
    var marginY =  58; //¸¶Áö¸· ¼ö´Â »óÈ²¿¡µû¶ó ¾Ë¸Â°Ô ³ÖÀ¸¼¼¿ä. (ÅÛÇÃ¸´ÀÇ Çì´õ³ôÀÌ + Ç²ÅÍ ³ôÀÌ + ¾ËÆÄ)
    } else {
    var marginY = 29; //¸¶Áö¸· ¼ö´Â »óÈ²¿¡µû¶ó ¾Ë¸Â°Ô ³ÖÀ¸¼¼¿ä. (ÅÛÇÃ¸´ÀÇ Çì´õ³ôÀÌ + Ç²ÅÍ ³ôÀÌ + ¾ËÆÄ)
    }


  var scrollbarValue = "no";

  if (thisX > maxThisX) {
    scrollbarValue = "yes";
    thisX = maxThisX;
  }
  if (thisY > maxThisY - marginY) {
    scrollbarValue = "yes";
    thisX += 19;
    thisY = maxThisY - marginY;
  }
  window.document.body.scroll = scrollbarValue;
  window.resizeTo(thisX+10,thisY+marginY);

  var windowX = (screen.width - (thisX+10))/2;
  var windowY = (screen.height - (thisY+marginY))/2 - 20;

}

/********************************************************************************************************
    Popup Á¤ÀÇ
    º¯¼ö Á¤ÀÇ : pop - ÆÄÀÏ¸í, width - °¡·Î»çÀÌÁî, height - ¼¼·Î»çÀÌÁî, flag - 0:½ºÅ©·Ñ¾øÀ½, 1:½ºÅ©·ÑÀÖÀ½
********************************************************************************************************/
function pop(pop,width,height,flag)
{
    var url = pop;
    var wd = width;
    var he = height;

  if (flag == "0" ) {
    window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";");  }
    else  {
    window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";");  }
}


/****** 4/5µª½º Å¸ÀÌÆ² »Ñ·ÁÁÖ´Â ÇÔ¼ö ***************************************************/
function makeDetailTitle(imgUrl,thisTableWidth) {
  var titleImageHTML = ""
  titleImageHTML += "<table cellpadding='0' cellspacing='0' border='0' width='574'>"
  titleImageHTML += "   <tr valign='top'>"
  titleImageHTML += "     <td width='14'><img src='/img/eng/common/title/b2c_bar.gif' border='0' width='14' height='20'></td>"
  titleImageHTML += "     <td width='560'><img src='" + imgUrl + "' border='0' id='bodyTitleImage'></td>"
  titleImageHTML += "   </tr>"
  titleImageHTML += "</table>"
  return document.write(titleImageHTML);
}


/****** popup 4/5µª½º Å¸ÀÌÆ² »Ñ·ÁÁÖ´Â ÇÔ¼ö ***************************************************/
function makeDetailpopTitle(imgUrl,thisTableWidth) {
  if (thisTableWidth == null || thisTableWidth == "") thisTableWidth = "400";
  var titleImageHTML = ""
  titleImageHTML += "<table cellpadding='0' cellspacing='0' border='0' width='" + thisTableWidth + "'>"
  titleImageHTML += "   <tr valign='top'>"
  titleImageHTML += "     <td width='14'><img src='/img/eng/common/title/b2c_bar.gif' border='0' width='14' height='20'></td>"
  titleImageHTML += "     <td width='386'><img src='" + imgUrl + "' border='0'></td>"
  titleImageHTML += "   </tr>"
  titleImageHTML += " </table>"
  return document.write(titleImageHTML);
}

/********************************************************************************************************
  faq ¸µÅ© ÇÔ¼ö Á¤ÀÇ
********************************************************************************************************/

   var cmz=0;
   var ctFlag="";
   function cmdisplay(cstr,cdflag)
   {  cmnum = cstr.substring(cstr.length - 2);
       cmstr = cstr.substring(0, cstr.length - 2);

   // Browser type : Explore
       if (cdflag == "0" & document.all[cmstr+cmnum].style.display=="")
       {  return;     }
       else
       {
           if(document.all[cmstr+cmnum].style.display=="")
           {

      document.all[cmstr+cmnum].style.display="none";
               ctFlag = eval("txt" + cmnum);
         ctFlag.style.color = "#666666";
               ctFlag.style.fontWeight = "normal";
               cmz=0;
           }
           else
           {
               ctFlag = eval("txt" + cmnum);
         ctFlag.style.color = "#4880B6";
               ctFlag.style.fontWeight = "bold";
               if(cmz != 0)
               {
                   document.all[cmstr+cmz].style.display="none";
                   ctFlag = eval("txt" + cmz);
           ctFlag.style.color = "#666666";
                   ctFlag.style.fontWeight = "normal";

                   document.all[cmstr+cmnum].style.display="";
                   ctFlag = eval("txt" + cmnum);
           ctFlag.style.color = "#4880B6";
                   ctFlag.style.fontWeight = "bold";
               }
               document.all[cmstr+cmnum].style.display="";
               cmz=cmnum;
           }
       }
   }


/********************************************************************************************************
  My Menu ¸µÅ© ÇÔ¼ö Á¤ÀÇ
********************************************************************************************************/
    var cmz=0;
   var ctFlag="";
   function mydisplay(cstr,cdflag)
   {  cmnum = cstr.substring(cstr.length - 2);
       cmstr = cstr.substring(0, cstr.length - 2);


   // Browser type : Explore
       if (cdflag == "0" & document.all[cmstr+cmnum].style.display=="")
       {  return;     }
       else
       {
           if(document.all[cmstr+cmnum].style.display=="")
           {

      document.all[cmstr+cmnum].style.display="none";
               ctFlag = eval("mutxt" + cmnum);
         ctFlagbg = eval("mutxtbg" + cmnum);
         ctFlag.style.color = "#2661A0";
               ctFlag.style.fontWeight = "normal";
         ctFlagbg.style.background = "#EFEFEF";
               cmz=0;
           }
           else
           {
               ctFlag = eval("mutxt" + cmnum);
         ctFlagbg = eval("mutxtbg" + cmnum);
         ctFlag.style.color = "#2661A0";
               ctFlag.style.fontWeight = "bold";
         ctFlagbg.style.background = "#F9F9F9";

               if(cmz != 0)
               {
                   document.all[cmstr+cmz].style.display="none";
                   ctFlag = eval("mutxt" + cmz);
           ctFlagbg = eval("mutxtbg" + cmz);
           ctFlag.style.color = "#2661A0";
                   ctFlag.style.fontWeight = "normal";
           ctFlagbg.style.background = "#EFEFEF";

                   document.all[cmstr+cmnum].style.display="";
                   ctFlag = eval("mutxt" + cmnum);
           ctFlagbg = eval("mutxtbg" + cmnum);
           ctFlag.style.color = "#2661A0";
                   ctFlag.style.fontWeight = "bold";
           ctFlagbg.style.background = "#F9F9F9";
               }
               document.all[cmstr+cmnum].style.display="";
               cmz=cmnum;
           }
       }
   }

/********************************************************************************************************
  Card Phase 4 Á¶È¸°á°ú º¸±â
********************************************************************************************************/

   function viewResult(result)
   {
      Rname1 = document.all[result].style;
      if (Rname1.display == '')
       {
           Rname1.display = 'none';
       }
       else
       {
           Rname1.display = '';
       }
   }

/********************************************************************************************************
  Card Phase 4 ´Þ·Â¶ç¿ì±â
********************************************************************************************************/

  function cal_view() {
    var left = event.screenX-80;
    var top = event.screenY+10;

    window.open("/eng/popup/ib/calendar.jsp","","left="+ left +",top="+ top +",width=1,height=1,toolbar=0,menubar=0,scrollbars=no,resizable=no,width=121,height=149;");
  }

/********************************************************************************************************
    »ó´Ü Flash ¸µÅ© ÇÔ¼ö
    ¿øÇü : gnbFunction(fname)
    ÆÄ¶ó¹ÌÅÍ : fname(¸µÅ© ±¸ºÐÀÚ ÆÄ¶ó¹ÌÅÍ)
********************************************************************************************************/
function gnbFunction(fname) {
  switch (fname) {

/*******************************/
/******** Counsmer banking *******/
/*******************************/
    /** internet banking **/
    case "eps_banking" :
       window.location.href = "/eng/ib/ib_index.jsp";
       break;
    case "eps_banking01" :
       Create_menu2('01~01~00','/eng/ib/al/eibal001_0.jsp');
       break;
    case "eps_banking02" :
       Create_menu2('01~02~01','/eng/ib/rm/eibrm001_0.jsp');
       break;
    case "eps_banking03" :
         Create_menu2('01~02~01','/eng/card/card_index.jsp');
       break;
    case "eps_banking04" :
       Create_menu2('01~03~01','/eng/ib/in/eibin001_0.jsp');
       break;
    case "eps_banking05" :
       Create_menu2('01~04~01','/eng/ib/dp/eibdp001_0.jsp');
       break;
    case "eps_banking06" :
       Create_menu2('01~07~01','/eng/ib/fx/eibfx001_0.jsp');
       break;
    case "eps_banking07" :
       Create_menu2('01~08~01','/eng/ib/tx/eibtx001_0.jsp');
       break;

    /** credit card **/
    case "eps_card" :
       window.location.href = "/eng/card/card_index.jsp";
       break;
    case "eps_card01" :
       window.location.href = "/eng/card/prd/cash/ecpc_ginformation.jsp";
       break;
    case "eps_card02" :
       window.location.href = "/eng/card/guide/cash/ecgc_gas.jsp";
       break;
    case "eps_card03" :
       //window.location.href = "/eng/card/honline/cash/echc_cash01.jsp";
       Create_menu2('02~05~00','/eng/card/honline/kcg_index01.jsp');
       break;
/*
    case "eps_card04" :  iCardPOPUP(3);
       break;
*/

    /** Loan **/
    case "eps_loan" :
       window.location.href = "/eng/loan/direct/eld_direct01.jsp";
       break;
    case "eps_loan01" :
       window.location.href = "/eng/loan/direct/eld_direct01.jsp";
       break;

    /** Deposit **/
    case "eps_deps" :
       window.location.href = "/eng/dep/dep_index.jsp";
       break;
    case "eps_deps01" :
         alert("ÀÛ¾÷ÁßÀÔ´Ï´Ù.... ");
       //window.location.href = "#";
       break;
    case "eps_deps02" :
         alert("ÀÛ¾÷ÁßÀÔ´Ï´Ù.... ");
       //window.location.href = "#";
       break;
    case "eps_deps03" :
         alert("ÀÛ¾÷ÁßÀÔ´Ï´Ù.... ");
       //window.location.href = "#";
       break;
    case "eps_deps04" :
         alert("ÀÛ¾÷ÁßÀÔ´Ï´Ù.... ");
       //window.location.href = "#";
       break;

    /** investment **/
    case "eps_invest" :
       window.location.href = "/eng/invest/intro/eii_intro01.jsp";
       break;
    case "eps_invest01" :
       window.location.href = "/eng/invest/intro/eii_intro01.jsp";
       break;
    case "eps_invest02" :
       window.location.href = "/eng/invest/trust/eit_trust01.jsp";
       break;

    /** insurance **/
    case "eps_ins" :
       window.location.href = "/eng/ins/ins_index.jsp";
       break;

    /** foreign exchange **/
    case "eps_fx" :
       Create_menu2('07~01~01','/eng/ext/rate/eer_today.jsp');
       break;
    case "eps_fx01" :
       Create_menu2('07~01~01','/eng/ext/rate/eer_today.jsp');
       break;
    case "eps_fx02" :
       window.location.href = "/eng/ext/guide/ext/eege_non.jsp";
       break;

    /** Electronic Banking  **/
    case "eps_corp" :
       //window.location.href = "/eng/join/VM/ejvm_intro01.jsp";
		Create_menu2('08~10','/eng/join/VM/ejvm_intro01.jsp');
       break;
    case "eps_corp01" :
       window.location.href = "/eng/join/mobile/ejm_mobile01.jsp";
       break;
    case "eps_corp02" :
       window.location.href = "/eng/join/pda/ejp_pda01.jsp";
       break;
    case "eps_corp03" :
       window.location.href = "/eng/join/phone/ejp_phone01.jsp";
       break;
    case "eps_corp04" :
       window.location.href = "/eng/join/atm/eja_atm01.jsp";
       break;
    case "eps_corp05" :
       window.location.href = "/eng/join/mail/ejm_mail01.jsp";
       break;
	case "eps_corp07" :
	   Create_menu2('08~10','/eng/join/VM/ejvm_intro01.jsp');
       //window.location.href = "/eng/join/VM/ejvm_intro01.jsp";
       break;
/*******************************/
/******** CitiBusiness *******/
/*******************************/
    case "ebu_banking" :
       window.location.href = "/eng/business/banking/ebb_banking01.jsp";
       break;
    case "ebu_view" :
       window.location.href = "/eng/business/intro/ebi_intro01.jsp";
       break;
/*    case "ebu_view01" :
       window.location.href = "/eng/business/intro/ebi_intro01.jsp";
       break;
    case "ebu_view02" :
       window.location.href = "/eng/business/intro/ebi_intro02.jsp";
       break;         */
/*
    case "ebu_service" :
       window.location.href = "/eng/business/service/ebs_service01.jsp";
       break;
*/

/* Power Access  */
    case "ebu_power" :
         window.location.href = "/eng/business/power/ebp_access01.jsp";
       break;
    case "ebu_power01" :
         window.location.href = "/eng/business/power/ebp_access01.jsp";
       break;
    case "ebu_power02" :
         window.location.href = "/eng/business/power/ebp_access02.jsp";
       break;
    case "ebu_power03" :
         window.location.href = "/eng/business/power/ebp_access03.jsp";
       break;
    case "ebu_power04" :
         window.location.href = "/eng/business/power/ebp_access04.jsp";
       break;
    case "ebu_power05" :
         window.location.href = "/eng/business/power/ebp_access05.jsp";
       break;

/*******************************/
/******** CitiBanking *******/
/*******************************/
    case "ect_banking" :
       window.location.href = "/eng/ctbanking/banking/ecb_banking01.jsp";
       break;
    case "ect_view" :
       window.location.href = "/eng/ctbanking/intro/eci_intro01.jsp";
       break;
    case "ect_pro" :    window.location.href = "/eng/ctbanking/citipro/ecc_ctpro01.jsp";
       break;
    case "ect_pro01" :  window.location.href = "/eng/ctbanking/citipro/ecc_ctpro01.jsp";
       break;
    case "ect_pro02" :
      Create_menu2('12~04','/eng/ctbanking/citipro/kce_notice.jsp');
       break;
    case "ect_service" :
       window.location.href = "/eng/ctbanking/service/ecs_service01.jsp";
       break;
    case "ect_service01" :
       window.location.href = "/eng/ctbanking/service/ecs_service01.jsp";
       break;
    case "ect_service02" :
       window.location.href = "/eng/ctbanking/service/ecs_service02.jsp";
       break;

/*******************************/
/******** About CKI **************/
/*******************************/
    case "eco_view" :  window.location.href = "/eng/company/overview/eco_ceoletter.jsp";
       break;
    case "eco_view01" :  window.location.href = "/eng/company/overview/eco_ceoletter.jsp";
       break;
    case "eco_view02" :   window.location.href = "/eng/company/overview/eco_history.jsp";
       break;
    case "eco_view03" :   window.location.href = "/eng/company/overview/eco_organiz.jsp";
       break;
    case "eco_view04" :   window.location.href = "/eng/company/overview/eco_manage.jsp";
       break;
    case "eco_view05" :   window.location.href = "/eng/company/overview/eco_subsidiaries.jsp";
       break;
    case "eco_view06" :   window.location.href = "/eng/company/overview/eco_branches.jsp";
       break;
    case "eco_view07" :   window.location.href = "/eng/company/overview/eco_vision.jsp";
       break;

    case "eco_why" :   window.location.href = "/eng/company/why/ecw_global.jsp";
       break;
    case "eco_why01" :   window.location.href = "/eng/company/why/ecw_global.jsp";
       break;
    case "eco_why02" :   window.location.href = "/eng/company/why/ecw_asian.jsp";
       break;
    case "eco_why03" :   window.location.href = "/eng/company/why/ecw_korea.jsp";
       break;
    case "eco_why04" :   window.location.href = "/eng/company/why/ecw_overview01.jsp";
       break;

    case "eco_comm" :   window.location.href = "/eng/company/comm/ecc_contrib.jsp";
       break;

    case "eco_contrib" :   window.location.href = "/eng/company/comm/ecc_contrib.jsp";
       break;
    case "eco_edu" :   window.location.href = "/eng/company/comm/ecc_edu01.jsp";
       break;
    case "eco_woman" :   window.location.href = "/eng/company/comm/ecc_woman01.jsp";
       break;
    case "eco_local" :   window.location.href = "/eng/company/comm/ecc_local01.jsp";
       break;
    case "eco_green" :   window.location.href = "/eng/company/comm/ecc_green01.jsp";
       break;

    case "eco_guide" :   window.location.href = "/eng/company/guide/ecg_recruit.jsp";
       break;
    case "eco_guide01" :   window.location.href = "/eng/company/guide/ecg_recruit.jsp";
       break;
    case "eco_guide02" :   window.location.href = "/eng/company/guide/ecg_mbama.jsp";
       break;

/*******************************/
/******** Customer Center **************/
/*******************************/
    case "ecu_faq" :  window.location.href = "/eng/center/faq/ecf_faq_ib.jsp";
       break;
    case "ecu_faq01" :  window.location.href = "/eng/center/faq/ecf_faq_ib.jsp";
       break;
    case "ecu_faq02" :  window.location.href = "/eng/center/faq/ecf_faq_cert.jsp";
       break;

    case "ecu_guide" :  window.location.href = "/eng/center/guide/ecg_tel01.jsp";
       break;
    case "ecu_guide01" :  window.location.href = "/eng/center/guide/ecg_tel01.jsp";
       break;
    case "ecu_guide02" :  window.location.href = "/eng/center/guide/ecg_fees12.jsp";
       break;

    case "ecu_ref" :  window.location.href = "/eng/center/ref/terms/ecrt_card.jsp";
       break;
    case "ecu_ref01" :  window.location.href = "/eng/center/ref/terms/ecrt_card.jsp";
       break;
    case "ecu_ref02" :  window.location.href = "/eng/center/ref/difforms/ecrd_card.jsp";
       break;
	   
    case "ecu_center" :  window.location.href = "/eng/center/cauti/ecs_cauti01.jsp";
       break;
    case "ecu_center01" :  window.location.href = "/eng/center/cauti/ecs_cauti01.jsp";
       break;
    case "ecu_center02" :  window.location.href = "/eng/center/secu/ecs_secu01.jsp";
       break;	   
    case "ecu_center03" :  window.location.href = "/eng/center/secu/ecs_secu05.jsp";
       break;	
/*******************************/
/******** IR        **************/
/*******************************/
    case "eir_fin" :  window.location.href = "/eng/ir/fin/eif_financial.jsp";
       break;

    case "eir_fin01" :  window.location.href = "/eng/ir/fin/eif_financial.jsp";
       break;
    case "eir_fin02" :  window.location.href = "/eng/ir/fin/eif_annual.jsp";
       break;
    case "eir_fin03" :  window.location.href = "/eng/ir/fin/eif_audit.jsp";
       break;
    case "eir_fin04" :  window.location.href = "/eng/ir/fin/eif_credit.jsp";
       break;

    case "eir_stock" :  window.location.href = "/eng/ir/stock/eis_capital.jsp";
       break;
    case "eir_stock01" :  window.location.href = "/eng/ir/stock/eis_capital.jsp";
       break;
    case "eir_stock02" :  window.location.href = "/eng/ir/stock/eis_ownership.jsp";
       break;

    case "eir_disc" :  window.location.href = "/eng/ir/dis/eid_dislist.jsp";
       break;
    case "eir_disc01" :  window.location.href = "/eng/ir/dis/eid_dislist.jsp";
       break;
    case "eir_disc02" :  window.location.href = "/eng/ir/news/ein_newslist.jsp";
       break;

    case "eir_news" :  window.location.href = "/eng/ir/news/ein_newslist.jsp";
       break;
    case "eir_news01" :  window.location.href = "/eng/ir/news/ein_newslist.jsp";
       break;
    case "eir_news02" :  window.location.href = "/eng/ir/news/ein_irteam.jsp";
       break;

    /** counsmer banking **/
    case "indiv" :
       window.location.href = "/eng/e_index.jsp";
       break;

    /** Corporate banking **/
    case "business" :
       window.location.href = "/cgrp/eng/emain.jsp";
       break;

    /** About CKI **/
    case "company" :
       window.location.href = "/eng/company/comp_index.jsp";
       break;

    /** IR **/
    case "ir" :
       window.location.href = "/eng/ir/ir_index.jsp";
       break;

    /** Customer center **/
    case "customer" :
       window.location.href = "/eng/center/center_index.jsp";
       break;

    /** Privacy **/
    case "privacy" :
       window.location.href = "/eng/privacy/ep_privacy.jsp";
       break;

    /** Sitemap **/
    case "sitemap" :
         window.location.href = "/eng/sitemap/es_sitemap01.jsp";
       break;

    /** Citi.com **/
    case "citi" :
         window.open("http://www.citi.com/domain/index.htm");
       break;

    /** korean **/
    case "eng" :
       window.location.href = "/kor/index.jsp";
       break;

    /** news **/
    case "news" :
       window.location.href = "/eng/news/en_news.jsp";
       break;
    /** member **/
    case "member" :
       Create_menu2('16~05~01','/eng/member/join/emj_confirm01.jsp');
       break;
    case "member01" :
       Create_menu2('16~05~01','/eng/member/join/emj_confirm01.jsp');
       break;
    case "member02" :
       Create_menu2('16~05~02','/eng/member/idpw/emi_search01.jsp');
       break;
    case "member03" :
       Create_menu2('16~05~03','/eng/member/secede/ems_reason01.jsp');
       break;
    case "member04" :
       Create_menu2('16~05~04','/eng/member/update/emu_modify01.jsp');
       break;
    /** search **/
    case "search" :
       window.location.href = "/eng/search/engwnsearch.jsp";
       break;

    /** Home **/
    case "home" :
       window.location.href = "/eng/index.jsp";
       break;

/**********************************/
/************     Credit Wisely  ***************/
/**********************************/
    /* Credit and Credit Cards   */
    case "credit_card" :
       window.location.href = "/eng/credit/card/all/kcca_all01.jsp";
       break;
    case "credit_card01" :    window.location.href = "/eng/credit/card/all/kcca_all01.jsp";
       break;
    case "credit_card02" :   window.location.href = "/eng/credit/card/card/kccc_card01.jsp";
       break;

    /* Spend Responsibly   */
    case "credit_part" :
       window.location.href = "/eng/credit/part/manage/kcpm_care01.jsp";
       break;
    case "credit_part01" :
       window.location.href = "/eng/credit/part/manage/kcpm_care01.jsp";
       break;
    case "credit_part02" :
       window.location.href = "/eng/credit/part/plan/kcpp_plan01.jsp";
       break;

    /* Be Protected      */
    case "credit_cover" :
       window.location.href = "/eng/credit/cover/cover/kccc_cover01.jsp";
       break;
    case "credit_cover01" :
       window.location.href = "/eng/credit/cover/cover/kccc_cover01.jsp";
       break;
    case "credit_cover02" :
       window.location.href = "/eng/credit/cover/notice/kccn_notice01.jsp";
       break;


/**********************************/
/************  ¼¼±×¸ÕÆ®  ***************/
/**********************************/
    case "citiBanking" :    window.location.href = "/eng/ctbanking/ctbanking_index.jsp";
       break;
    case "citiGold" :    window.open("http://www.citigold.co.kr/goldeng/gold_index.jsp");
       break;
    case "citiBusiness" :    window.location.href = "/eng/business/business_index.jsp";
       break;
  }
}
 /***************************************************************************************************/
/********************************************************************************************************
    ±â¾÷¹ðÅ· ¸µÅ©¸¦ À§ÇÑ ÇÔ¼ö
********************************************************************************************************/
var catiDomain = "http://koreacitidirect.citigroup.com";
function jump_go(type) {
  var frm = document.catiFrm;
  frm.k.value = type;
  frm.target = "_top";
  frm.action = catiDomain+"/index_login.jsp";
  frm.submit();
}

 /***************************************************************************************************/

 /********************************************************************************************************
    ÀÎÆ®·Î ÆäÀÌÁö ¸µÅ© ÇÔ¼ö
********************************************************************************************************/
function logbox(flog) {
  switch (flog) {
    //2006-08-04 ·Î±×ÀÎ
    case "log00" :
            //go_aLogin('/eng/ib/al/eibal001_0.jsp');
            window.location.href = "/eng/ib/al/eibal001_0.jsp";///eng/ib/ib_index.jsp";
       break;

    /** ·Î±×¾Æ¿ô**/
    case "log01" :
  go_aLogin('/eng/member/login/eml_index01.jsp');
            //window.location.href = "/eng/ib/ib_index.jsp";
       break;

    case "log02" :  iCardPOPUP(3);
       break;
    case "log03" :
            go_aLogin('/eng/card/honline/cash/echc_cash01.jsp');
            //window.location.href = "/eng/card/honline/cash/echc_cash01.jsp";
       break;
    case "log04" :  window.open("http://www.citigold.co.kr/goldeng/gold_index.jsp");
       break;
    case "log05" :  window.top.location.href = "/cgrp/eng/banking/cati/ebc_main.jsp";
       break;
    case "log06" :  jump_go('Q101');
       break;

    /** ºü¸¥¼­ºñ½º **/
    case "fast01" :  Create_menu2('02~05~02~01','/eng/card/honline/credit/echc_bill01.jsp');
       break;
    case "fast02" :  Create_menu2('01~04~01','/eng/ib/dp/dp01/eibdp01001_0.jsp');
       break;
    case "fast03" :  Create_menu2('02~05~01~01','/eng/card/honline/cash/echc_cash01.jsp');
       break;
    case "fast04" :  Create_menu2('01~02~01~01','/eng/ib/rm/rm01/eibrm01001_0.jsp');
       break;
    case "fast05" :  Create_menu2('07~01~01','/eng/ext/rate/eer_today.jsp');
       break;
    //2006-08-04 ·Î±×¾Æ¿ô »óÅÂ case "fast06" :  Create_menu2('01~01~00','/eng/ib/al/eibal001_0.jsp');
    case "fast06" :  Create_menu2('01~01~00','/eng/member/login/eml_index01.jsp');

       break;

    /** °£ÆíÁ¶È¸ **/
    //2006-08-03 ·Î±×ÀÎ »óÅÂ case "easy01" :  Create_menu2('01~01~00','/eng/ib/al/eibal002_0.jsp');
    case "easy01" :  Create_menu2('01~01~00','/eng/ib/al/eibal001_0.jsp');
       break;
    //2006-08-04 Àß¸øµÈ ¸µÅ© case "easy02" :  Create_menu2('01~11~02~01','/eng/ib/es/es02/eibes02001_0.jsp');
     case "easy02" :  Create_menu2('01~11~02~01','/eng/ib/ls/ls01/eibls01001_0.jsp');
       break;
    case "easy03" :  Create_menu2('01~11~03','/eng/ib/es/es03/eibes03001_0.jsp');
       break;
    case "easy04" :  Create_menu2('01~98~03~01','/eng/ib/al/eibal001_0.jsp');
       break;
  }
}

function Rgnb(frgnb) {
  switch (frgnb) {

    /** °³ÀÎ°í°´ **/
    case "indiv" :  window.location.href = "/eng/e_index.jsp";
       break;
    case "indiv01" :  window.location.href = "/eng/ib/ib_index.jsp";
       break;
    case "indiv02" :  window.location.href = "/eng/card/card_index.jsp";
       break;
    case "indiv03" :  window.location.href = "/eng/loan/direct/eld_direct01.jsp";
       break;
    case "indiv04" :  window.location.href = "/eng/dep/dep_index.jsp";
       break;
    case "indiv05" :  window.location.href = "/eng/invest/intro/eii_intro01.jsp";
       break;
    case "indiv06" :  window.location.href = "/eng/ins/ins_index.jsp";
       break;
    case "indiv07" :  Create_menu2('07~01~01','/eng/ext/rate/eer_today.jsp');
       break;
    case "indiv08" :  Create_menu2('08~10~01','/eng/join/VM/ejvm_intro01.jsp');
       break;

    /** ±â¾÷°í°´ **/
    case "corp" :  window.location.href = "/cgrp/eng/emain.jsp";
       break;
    case "corp01" :  window.location.href = "/cgrp/eng/banking/eb_main.jsp";
       break;
    case "corp02" :  window.location.href = "/cgrp/eng/segment/es_main.jsp";
       break;
    case "corp03" :  window.location.href = "/cgrp/eng/product/ep_main.jsp";
       break;
    case "corp04" :  window.location.href = "/cgrp/eng/custom/ec_main.jsp";
       break;
  }
}

/********************************************************************************************************
    select box
********************************************************************************************************/
var nowOpenedSelectBox = "";
var mousePosition = "";

function selectThisValue(thisId,thisIndex,thisValue,thisString) {
  var objId = thisId;
  var nowIndex = thisIndex;
  var valueString = thisString;
  var sourceObj = document.getElementById(objId);
  var nowSelectedValue = document.getElementById(objId+"SelectBoxOptionValue"+nowIndex).value;
  hideOptionLayer(objId);
  if (sourceObj) sourceObj.value = nowSelectedValue;
  settingValue(objId,valueString);
  selectBoxFocus(objId);
  if (sourceObj.onchange) sourceObj.onchange();
}

function settingValue(thisId,thisString) {
  var objId = thisId;
  var valueString = thisString;
  var selectedArea = document.getElementById(objId+"selectBoxSelectedValue");
  if (selectedArea) selectedArea.innerHTML = valueString.replace("&","&amp;");
}

function viewOptionLayer(thisId) {
  var objId = thisId;
  var optionLayer = document.getElementById(objId+"selectBoxOptionLayer");
  if (optionLayer) optionLayer.style.display = "";
  nowOpenedSelectBox = objId;
  setMousePosition("inBox");
}

function hideOptionLayer(thisId) {
  var objId = thisId;
  var optionLayer = document.getElementById(objId+"selectBoxOptionLayer");
  if (optionLayer) optionLayer.style.display = "none";
}

function setMousePosition(thisValue) {
  var positionValue = thisValue;
  mousePosition = positionValue;
}

function clickMouse() {
  if (mousePosition == "out") hideOptionLayer(nowOpenedSelectBox);
}

function selectBoxFocus(thisId) {
  var objId = thisId;
  var obj = document.getElementById(objId + "selectBoxSelectedValue");
  obj.className = "selectBoxSelectedAreaFocus";
  obj.focus();
}

function selectBoxBlur(thisId) {
  var objId = thisId;
  var obj = document.getElementById(objId + "selectBoxSelectedValue");
  obj.className = "selectBoxSelectedArea";
}

function makeSelectBox01(thisId) {
  var downArrowSrc = "/img/kor/common/selectbox.gif"; //¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö
  var downArrowSrcWidth = 14; //¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö width
  var optionHeight = 18; // option ÇÏ³ªÀÇ ³ôÀÌ
  var optionMaxNum = 15; // ÇÑ¹ø¿¡ º¸¿©Áö´Â optionÀÇ °¹¼ö
  var optionInnerLayerHeight = "";
  var objId = thisId;
  var obj = document.getElementById(objId);
  var selectBoxWidth = parseInt(obj.style.width);
  var selectBoxHeight = parseInt(obj.style.height);
  if (obj.options.length > optionMaxNum) optionInnerLayerHeight = "height:"+ (optionHeight * optionMaxNum) + "px";
  newSelect = "<table id='" + objId + "selectBoxOptionLayer' cellpadding='0' cellspacing='0' border='0' style='position:absolute;z-index:100;display:none;' onMouseOver=\"viewOptionLayer('"+ objId + "')\" onMouseOut=\"setMousePosition('out')\">";
  newSelect += "  <tr>";
  newSelect += "    <td height='" + (selectBoxHeight - 1) + "' style='cursor:hand;' onClick=\"hideOptionLayer('"+ objId + "')\"></td>";
  newSelect += "  </tr>";
  newSelect += "  <tr>";
  newSelect += "    <td bgcolor='#CECEC7' style='padding:1px 1px 1px 1px'>";
//  newSelect += "    <table cellpadding='0' cellspacing='0' border='0' width='100%'>";
//  newSelect += "      <tr>";
//  newSelect += "        <td height='3' bgcolor='#FFFFFF'></td>";
//  newSelect += "      </tr>";
//  newSelect += "    </table>";
  newSelect += "    <div id='"+ objId + "SelectBoxOptionArea' class='selectBoxOptionInnerLayer' style='width:" + (selectBoxWidth-2) + "px;" + optionInnerLayerHeight + "'>";
  newSelect += "    <table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed;word-break:break-all;'>";
  for (var i=0 ; i < obj.options.length ; i++) {
    var nowValue = obj.options[i].value;
    var nowText = obj.options[i].text;

    //if (nowValue != null && nowValue != "") { // value°¡ ¾ø°Å³ª ºó°ªÀÌ¸é ÀÎµ¦½º·Î Ãë±ÞÇÏ°í »Ñ·ÁÁÖÁö ¾Ê°ÔÇÔ.
    if (true) { // nowValue='' ÀÌ¾îµµ °ü°è¾ø´Ù.
      newSelect += "      <tr>";
      newSelect += "        <td height='" + optionHeight + "' class='selectBoxOption' onMouseOver=\"this.className='selectBoxOptionOver'\" onMouseOut=\"this.className='selectBoxOption'\" onClick=\"selectThisValue('"+ objId + "'," + i + ",'" + nowValue + "','" + nowText + "')\" style='cursor:hand;'>" + nowText + "</td>";
      newSelect += "        <input type='hidden' id='"+ objId + "SelectBoxOptionValue" + i + "' value='" + nowValue + "'>";
      newSelect += "      </tr>";
    }
    else { // nowValue='' ÀÌ¾îµµ °ü°è¾ø´Ù.
      newSelect += "      <tr>";
      newSelect += "        <td height='" + optionHeight + "' class='selectBoxOption' onMouseOver=\"this.className='selectBoxOptionOver'\" onMouseOut=\"this.className='selectBoxOption'\" onClick=\"selectThisValue('"+ objId + "'," + i + ",'" + nowValue + "','" + nowText + "')\" style='cursor:hand;'>" + nowText + "</td>";
      newSelect += "        <input type='hidden' id='"+ objId + "SelectBoxOptionValue" + i + "' value='" + nowValue + "'>";
      newSelect += "      </tr>";
    }
  }
  newSelect += "    </table>";
  newSelect += "    </div>";
  //newSelect += "    <table cellpadding='0' cellspacing='0' border='0' width='100%'>";
  //newSelect += "      <tr>";
  //newSelect += "        <td height='4' bgcolor='#FFFFFF'></td>";
  //newSelect += "      </tr>";
  //newSelect += "    </table>";
  newSelect += "    </td>";
  newSelect += "  </tr>";
  newSelect += "</table>";
  newSelect += "<table cellpadding='0' cellspacing='1' border='0' bgcolor='#CECEC7' onClick=\"viewOptionLayer('"+ objId + "')\" style='cursor:hand;' onMouseOut=\"setMousePosition('out')\">";
  newSelect += "  <tr>";
  newSelect += "    <td bgcolor='#FFFFFF'>";
  newSelect += "    <table cellpadding='0' cellspacing='0' border='0'>";
  newSelect += "      <tr>";
  newSelect += "        <td><div id='" + objId + "selectBoxSelectedValue' class='selectBoxSelectedArea' style='width:" + (selectBoxWidth - downArrowSrcWidth - 2) + "px;height:" + (selectBoxHeight - 2) + "px;overflow:hidden;' onBlur=\"selectBoxBlur('" + objId + "')\"></div></td>";
  newSelect += "        <td><img src='" + downArrowSrc + "' width='" + downArrowSrcWidth + "' border='0'></td>";
  newSelect += "      </tr>";
  newSelect += "    </table>";
  newSelect += "    </td>";
  newSelect += "  </tr>";
  newSelect += "</table>";
  document.write(newSelect);

  var haveSelectedValue = false;
  for (var i=0 ; i < obj.options.length ; i++) {
    if (obj.options[i].selected == true) {
      haveSelectedValue = true;
      settingValue(objId,obj.options[i].text);
    }
  }
  if (!haveSelectedValue) settingValue(objId,obj.options[0].text);
}


document.onmousedown = clickMouse;

/*--------------------------------------------------------*/


  function goLeftSelectBoxMenu(thisURL,thisTarget) {
    if (thisURL == "" || thisURL == null || thisURL == "separator") return;
    var nowTarget = "_self";
    if (thisTarget != null && thisTarget != "" ) nowTarget = thisTarget;
    go_SecureMove(thisURL);
  }

 /***************************************************************************************************/



/***********************************************************************************
¼¿·ºÆ®¹Ú½º ¼±ÅÃ½Ã »õÃ¢¶ç¿ò
/***********************************************************************************/

  function goSelectBox(thisURL) {
    window.open(thisURL, "_blank", "");
  }

/***********************************************************************************/

/**
* Cookie¼³Á¤ÇÏ±â
*/

/*function setCookie(name, value, expire) {
          document.cookie = name + "=" + escape(value)
          + ( (expire) ? "; expires=" + expire.toGMTString() : "")
}*/

/**
* Cookie ±¸ÇÏ±â
*/


/*function getCookie(uName) {

  var flag = document.cookie.indexOf(uName+'=');
  if (flag != -1) {
    flag += uName.length + 1
    end = document.cookie.indexOf(';', flag)

    if (end == -1) end = document.cookie.length
    return unescape(document.cookie.substring(flag, end))
  }
} */
