/***********************************************************************************

***********************************************************************************/
/**  Menu Display Function Module  
      IE5.0 / NS6.1 
**/

var tz=1;

function menuclick(ti)
{

// Browser type : Explore 

    if (document.all) 
    {
        if(document.all["menuclick"+ti].style.display=="")
        {
            document.all["menuclick"+ti].style.display="none";
            tz=0;
        }
        else
        {
            if(tz != 0)
            {
                document.all["menuclick"+tz].style.display="none";
                document.all["menuclick"+ti].style.display="";
            }
            
            document.all["menuclick"+ti].style.display="";
            tz=ti;
        }
    }
    
// Browser type : Netscape 6.0

    else
    {
        if(document.getElementById("menuclick"+ti).style.display=="")
        {
            document.getElementById("menuclick"+ti).style.display="none";
            tz=0;
        }
        else
        {
            if(tz != 0)
            {
                document.getElementById("menuclick"+tz).style.display="none";
                document.getElementById("menuclick"+ti).style.display="";
            }
            document.getElementById("menuclick"+ti).style.display="";
            tz=ti;
        }
    }
}


function LayerSH(LayerName,Status) 
{

//    ns4 = (document.getElementById)?true:false;
//    ie4 = (document.all)?true:false;

    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}
}

/****************************************************************************************
 Flash Link (Header GNB)
*****************************************************************************************/

function setDisplay(objName,status) {
	var obj = document.all[objName];
	if (obj) {
		if (status == 'on') obj.style.display = "";
		if (status == 'off') obj.style.display = "none";
	}
}
// ¼­ºñ½º¼Ò°³
function escm21_10_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != '')
	{
		nDepth = arguments[0];

		if(nDepth == '10'){ //ºñÁ¯
			location.replace('/escm21/home/intro/escm_intro_01.jsp');
		}else if(nDepth == '20'){ //¼­ºñ½º°³¿ä
			location.replace('/escm21/home/intro/escm_intro_02.jsp');
		}else if(nDepth == '30'){ //¼­ºñ½ºÆ¯Â¡
			location.replace('/escm21/home/intro/escm_intro_03.jsp');
		}else if(nDepth == '40'){ //¼­ºñ½º¿¬Çõ
			location.replace('/escm21/home/intro/escm_intro_04.jsp');
		}else if(nDepth == '50'){ //ÁÖ¿ä±â´É
			location.replace('/escm21/home/intro/escm_intro_05.jsp');
		}else if(nDepth == '60'){ //µµÀÔÈ¿°ú
			location.replace('/escm21/home/intro/escm_intro_06.jsp');	
		}
	}
	else { //ºñÁ¯
		location.replace('/escm21/home/intro/escm_intro_01.jsp');
	}

}
// Á¦°ø¼­ºñ½º
function escm21_10_20(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){ //¹®¼­Áß°è¼­ºñ½º
			location.replace('/escm21/home/service/escm_service_01.jsp');
		}else if(nDepth == '20'){ //Á¤º¸¼­ºñ½º
			location.replace('/escm21/home/service/escm_service_02.jsp');
		}else if(nDepth == '30'){ //¹°·ùÁö¿ø¼­ºñ½º
			location.replace('/escm21/home/service/escm_service_03.jsp');
		}else if(nDepth == '40'){ //¾÷¹«Áö¿ø¼­ºñ½º
			location.replace('/escm21/home/service/escm_service_04.jsp');
		}else if(nDepth == '50'){ //crs¼­ºñ½º
			location.replace('/escm21/home/service/escm_service_05.jsp');			
		}
	}
	else { //¹®¼­Áß°è¼­ºñ½º
		location.replace('/escm21/home/service/escm_service_01.jsp');
	}
}
// °¡ÀÔ¾È³»
function escm21_10_30(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){ //½ÅÃ»¼­¾ç½Ä
			location.replace('/escm21/home/join/escm_join_01.jsp');
		}else if(nDepth == '20'){ //¼­ºñ½º°¡ÀÔÀýÂ÷
			location.replace('/escm21/home/join/escm_join_02.jsp');
		}else if(nDepth == '30'){ //¼­ºñ½ºÀÌ¿ë·á
			location.replace('/escm21/home/join/escm_join_03.jsp');
		}else if(nDepth == '40'){ //¼­ºñ½ºÁßÁö/ÇØÁ¦
			location.replace('/escm21/home/join/escm_join_04.jsp');
		}else if(nDepth == '50'){ //ÀÌ¿ë¾à°ü
			location.replace('/escm21/home/join/escm_join_05.jsp');			
		}
	}
	else {
		location.replace('/escm21/home/join/escm_join_01.jsp');
	}
}
// °í°´Áö¿ø
function escm21_10_40(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){ //Help desk
			location.replace('/escm21/home/support/escm_support_01.jsp');
		}else if(nDepth == '20'){ //FAQ
			location.replace('/escm21/home/support/escm_support_02_01.jsp');
		}else if(nDepth == '30'){ //¼­ºñ½ºÃ¼Çè
			window.open("/escm21/home/helpdesk/exper01.html", "helpdesk","top=50, left=50, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no, width=733, height=507");
		}else if(nDepth == '40'){ //°øÁö»çÇ×
			location.replace('/escm21/home/support/escm_support_04.jsp');
		}else if(nDepth == '50'){ //¼¼±Ý°è»ê¼­¸¶°¨ÀÏÁ¤
			location.replace('/escm21/home/support/escm_support_05.jsp');
		}
	}
	else { //¼­ºñ½ºÃ¼Çè
		location.replace('/escm21/home/support/escm_support_01.jsp');
	}
}

/****************************************************************************************
 Flash Link (Left GNB) 
*****************************************************************************************/

/* ±â¾÷Á¤º¸ */

function company01(num){ //Á¬ÅØÀº?

	if (num =='2'){ //ceo ¸Þ¼¼Áö
	location.href = ("/new/kr/company/com_m01s012.html");
	}
	
	else if (num =='3'){ //Áö³ª¿Â±æ
	location.href = ("/new/kr/company/com_m01s013.html");
	}
	
	else if (num =='4'){ //Á¬ÅØÀÇ °¡Ä¡
	location.href = ("/new/kr/company/com_m01s014.html");
	}
	
	else if (num =='5'){ //Á¬ÅØÀÇ ¹Ì·¡
	location.href = ("/new/kr/company/com_m01s015.html");
	}
	
	else { //È¸»ç¼Ò°³
	location.href = ("/new/kr/company/com_m01s011.html");
	}

}

function company02(){ //¾÷ÀûÁ¤º¸
	location.href = ("/new/kr/company/com_m01s021.html");
}

function company03(num){ //»ç¾÷Àå¾È³»

	if (num =='2'){ //ÇØ¿Ü»ç¾÷Àå
	location.href = ("/new/kr/company/com_m01s032.html");
	}
	
	else { //±¹³»»ç¾÷Àå
	location.href = ("/new/kr/company/com_m01s031.html");
	}

}


/* intro */

function intro()    {		window.location.href = "/escm21/home/intro/escm_intro_01.jsp";		}//°³¿ä
function intro_1()  {		window.location.href = "/escm21/home/intro/escm_intro_01.jsp";		}//°³¿ä
function intro_2()  {		window.location.href = "/escm21/home/intro/escm_intro_02.jsp";		}//¼­ºñ½º¼Ò°³
function intro_3()  {		window.location.href = "/escm21/home/intro/escm_intro_03.jsp";		}//¼­ºñ½ºÆ¯Â¡
function intro_4()  {		window.location.href = "/escm21/home/intro/escm_intro_04.jsp";		}//¼­ºñ½º¿¬Çõ
function intro_5()  {		window.location.href = "/escm21/home/intro/escm_intro_05.jsp";		}//ÁÖ¿ä±â´É
function intro_6()  {		window.location.href = "/escm21/home/intro/escm_intro_06.jsp";		}//µµÀÔÈ¿°ú


/* service */

function service()    {		window.location.href = "/escm21/home/service/escm_service_01.jsp";		}//¹®¼­Áß°è¼­ºñ½º
function service_1()  {		window.location.href = "/escm21/home/service/escm_service_01.jsp";		}//¹®¼­Áß°è¼­ºñ½º
function service_2()  {		window.location.href = "/escm21/home/service/escm_service_02.jsp";		}//Á¤º¸¼­ºñ½º
function service_3()  {		window.location.href = "/escm21/home/service/escm_service_03.jsp";		}//¹°·ùÀÚ¿ø¼­ºñ½º
function service_4()  {		window.location.href = "/escm21/home/service/escm_service_04.jsp";		}//¾÷¹«Áö¿ø¼­ºñ½º
function service_5()  {		window.location.href = "/escm21/home/service/escm_service_05.jsp";		}//CRS¼­ºñ½º


/* join */

function join()    {		window.location.href = "/escm21/home/join/escm_join_01.jsp";		}//½ÅÃ»¼­¾ç½Ä
function join_1()  {		window.location.href = "/escm21/home/join/escm_join_01.jsp";		}//½ÅÃ»¼­¾ç½Ä
function join_2()  {		window.location.href = "/escm21/home/join/escm_join_02.jsp";		}//¼­ºñ½º°¡ÀÔÀýÂ÷
function join_3()  {		window.location.href = "/escm21/home/join/escm_join_03.jsp";		}//¼­ºñ½ºÀÌ¿ë·á
function join_4()  {		window.location.href = "/escm21/home/join/escm_join_04.jsp";		}//¼­ºñ½ºÁßÁö/ÇØÁö
function join_5()  {		window.location.href = "/escm21/home/join/escm_join_05.jsp";		}//ÀÌ¿ë¾à°ü


/* support */

function support()    {		window.location.href = "/escm21/home/support/escm_support_01.jsp";		}//Helpdesk
function support_1()  {		window.location.href = "/escm21/home/support/escm_support_01.jsp";		}//Helpdesk
function support_2()  {		window.location.href = "/escm21/home/support/escm_support_02_01.jsp";		}//FAQ
function support_3()  {		window.open("/escm21/home/helpdesk/exper01.html", "helpdesk","top=50, left=50, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no, width=733, height=507");		}//¼­ºñ½ºÃ¼ÇèÇÏ±â
function support_4()  {		window.location.href = "/escm21/home/support/escm_support_04.jsp";		}//°øÁö»çÇ×
function support_5()  {		window.location.href = "/escm21/home/support/escm_support_05.jsp";		}//¼¼±Ý°è»ê¼­¸¶°¨ÀÏÁ¤


/****************************************************************************************
 Flash Link (Etc) 
*****************************************************************************************/


function top01(){ //È¨
	location.replace('http://www.escm21.net/escm21');
}

function top02(){ //LG Dacom
	window.open('http://www.LGDacom.net');
}

function top03(){ //
	location.replace('/new/kr/');
}

function top04(){ //
	location.replace('/eng/index.html/');
}

function top05(){ //
	location.replace('/china/index,html/');
}

function t_ban01(){ //¼­ºñ½º °¡ÀÔ½ÅÃ»
	location.replace('http://www.escm21.net/escm21/home/join/escm_join_02.jsp');
}

function t_ban02(){ //ÀÎÁõ¼­°ü¸®
	window.open('http://new.signgate.com/business/bus05.htm');
}

function c_ban01(){ //anyhelp
	window.open('http://escm21.anyhelp.net');
}

function c_ban02(){ //¼­ºñ½ºÃ¼ÇèÇÏ±â
	window.open("/escm21/home/helpdesk/exper01.html", "helpdesk","top=50, left=50, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no, width=733, height=507");
}


// °í°´»ç
function c_view(num) {
	if (num == '1') { //gs¸®Å×ÀÏ
		window.open('http://www.gsretail.com/GSRetailcorp/main.asp');
	}
	else if (num == '2') { //Save Zone
		window.open('http://www.gsretail.com/GSWatsons/');
	}	
	else if (num == '3') { //ÇÑÈ­À¯Åë
		window.open('http://galleria.co.kr/index.jsp');
	}	
	else if (num == '4') { //costco
		window.open('http://www.costco.co.kr');
	}	
	else if (num == '5') { //BaQ
		window.open('http://www.bnqhome.co.kr');
	}	
	else if (num == '6') { //Top Mart
		window.open('http://www.seowon.com/index.asp');
	}
	else if (num == '7') { //Home Plus
		window.open('http://www.homeplus.co.kr');
	}
	else if (num == '8') { //Kim's Club
		window.open('http://www.htstore.co.kr');
	}
	else if (num == '9') { //Mega Mart
		window.open('http://www.mega-mart.co.kr/');
	}	
	else if (num == '10') { //Save Zone
		window.open('http://www.savezone.co.kr/');
	}
	/*
	else if (num == '11') { //HomeEver
		window.open('http://www.carrefourkr.co.kr/imsi/main.php3');
	}
	*/
}

/****************************************************************************************
 Flash Link (main_3) 
*****************************************************************************************/
function company_main(){ //±â¾÷¼Ò°³
	location.replace("/new/kr/company/com_m01s011.html");
}
function recruit_main(){ //Ã¤¿ëÁ¤º¸
	location.replace("/new/kr/recruit/rec_m04s011.asp");
}
function cyber_main(){ //±â¼ú·Â
	location.replace("/new/kr/cyber/cyb_m05s021.html");
}