/*********************************************************
*·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
var depth4 = "";
var imgpath = "/images/common/";
var urlpath = "/";


function setDepthVar( firVar, secVar, thrVar,fourVar ) {
        depth1 = firVar;
        depth2 = secVar;
        depth3 = thrVar;
        depth4 = fourVar;
}

function locationCheck( depth1, depth2, depth3, depth4 ){

        var returnPram = ""
        var oneDepthName = new Array();
        var twoDepthName = new Array();
        var threeDepthName = new Array();
		var fourDepthName = new Array();

        var home = "<a href='"+urlpath+"'>HOME</a>";

        oneDepthName['1'] = "<a href='/company/greet.asp'>È¸»ç¼Ò°³</a>";
        oneDepthName['2'] = "<a href='/product/new.asp'>Á¦Ç°Á¤º¸</a>";
        oneDepthName['3'] = "<a href='/customer/agency_search.asp'>°í°´ Áö¿ø</a>";
        oneDepthName['4'] = "<a href='/technical/consul.asp'>±â¼úÁö¿ø</a>";
        oneDepthName['5'] = "<a href='/footer/map.asp'>¿À½Ã´Â ±æ</a>";
        oneDepthName['6'] = "±³À°";
        oneDepthName['7'] = "»çÀÌÆ®¸Ê";
        oneDepthName['8'] = "<a href='/mysovico/mybox_product.asp'>¸¶ÀÌ¼ÒºñÄÚ</a>";
        oneDepthName['9'] = "È¸¿ø°¡ÀÔ";
        oneDepthName['10'] = "·Î±×ÀÎ";



        returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1];



        if(depth1 =="1"){
                twoDepthName[1] = "<a href='/company/greet.asp'>¼ÒºñÄÚ ¼Ò°³</a>";
                twoDepthName[2] = "<a href='/company/work.asp'>ÁÖ¿ä »ç¾÷ºÐ¾ß</a>";
                twoDepthName[3] = "<a href='/company/service.asp'>»çÈ¸ °øÇå</a>";
				twoDepthName[4] = "<a href='/company/news_list.asp'>È«º¸½Ç</a>";
				twoDepthName[5] = "<a href='/company/endor_list.asp'>Endorsement</a>";
				twoDepthName[6] = "<a href='/company/talent.asp'>Ã¤¿ë¾È³»</a>";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



        }else if(depth1 =="2"){
                twoDepthName[1] = "NEW Arrival";
                twoDepthName[2] = "<a href='/product/brand_list.asp'>Á¦Ç°°Ë»ö</a>";
                twoDepthName[3] = "´ÜÁ¾Á¦Ç°";
                twoDepthName[4] = "°Ë»ö°á°ú";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



         }else if(depth1 =="3"){
                twoDepthName[1] = "´ë¸®Á¡ Ã£±â";
                twoDepthName[2] = "<a href='/customer/qna01.asp'>°í°´¹®ÀÇ</a>";
				twoDepthName[3] = "<a href='/customer/as_info.asp'>A/S¼¾ÅÍ</a>";
                twoDepthName[4] = "´Ù¿î·Îµå ¼¾ÅÍ";

              	returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];




        }else if(depth1 =="4"){
                twoDepthName[1] = "ÄÁ¼³ÆÃ ¹®ÀÇ";
				twoDepthName[2] = "¹«»óÁ¡°Ë½ÅÃ»";
                twoDepthName[3] = "±â¼ú ¹®ÀÇ";
                twoDepthName[4] = "<a href='/technical/church_list.asp'>¼ÒºñÄÚ ¾ÆÄ«µ¥¹Ì</a>";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



		 }else if(depth1 =="5"){
                twoDepthName[1] = "È¸»ç¾àµµ";
				twoDepthName[2] = "´ã´çÀÚº° ¿¬¶ôÃ³";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



		 }else if(depth1 =="6"){
                twoDepthName[1] = "À½Çâ ¿£Áö´Ï¾î ±³À°";
				twoDepthName[2] = "¼ÒºñÄÚ Á¦Ç° ±³À°";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



        }else if(depth1 =="8"){
                twoDepthName[1] = "³» º¸°üÇÔ";
                twoDepthName[2] = "°³ÀÎÁ¤º¸¼öÁ¤";
				twoDepthName[3] = "È¸¿øÅ»Åð";

                returnPram =home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



		}else if(depth1 =="7"){
                twoDepthName[1] = "È¸»ç ¾àµµ";
                twoDepthName[2] = "Á¦Ç° ´ã´çÀÚ º° ¿¬¶ôÃ³";

                returnPram =home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2];



        }




        //  //
		if((depth1=="1") && (depth2=="1")){
				threeDepthName[1] = "ÀÎ»ç¸»";
                threeDepthName[2] = "ºñÀü°ú °æ¿µÀÌ³ä";
                threeDepthName[3] = "¿¬Çõ ¹× ½ÇÀû";
				threeDepthName[4] = "¼ÒºñÄÚ CI";


                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];

       }else if((depth1=="1") && (depth2=="2")){
                threeDepthName[1] = "»ç¾÷ºÐ¾ß";
                threeDepthName[2] = "°è¿­»ç ¼Ò°³";
                threeDepthName[3] = "Á¶Á÷µµ";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];



        }else if((depth1=="1") && (depth2=="3")){
                threeDepthName[1] = "¼ÒºñÄÚÀÇ »çÈ¸°øÇå";
                threeDepthName[2] = "¿¹ÀºÀåÇÐÀç´Ü";
				threeDepthName[3] = "±âÅ¸ »ç¾÷";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];



        }else if((depth1=="1") && (depth2=="4")){
                threeDepthName[1] = "´º½º±â»ç";
                threeDepthName[2] = "°øÁö»çÇ×";
				threeDepthName[3] = "È«º¸µ¿¿µ»ó";
				//threeDepthName[4] = "Endorsement";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];



        }else if((depth1=="1") && (depth2=="6")){
                threeDepthName[1] = "ÀÎÀç»ó";
                threeDepthName[2] = "º¹¸®ÈÄ»ý";
				threeDepthName[3] = "Áö¿ø¼­ ´Ù¿î·Îµå";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];



        //  //
        }else if((depth1=="2") && (depth2=="2")){
                threeDepthName[1] = "ºê·£µåº°";
                threeDepthName[2] = "Ç°¸ñº°";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];



		//  //
        }else if((depth1=="3") && (depth2=="2")){
                threeDepthName[1] = "ÀÚÁÖ¹¯´Â Áú¹®";
                threeDepthName[2] = "e-¼ÒºñÀÚ»ó´ã½Ç";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];




		}else if((depth1=="3") && (depth2=="3") ){

                threeDepthName[1] = "¹«»óº¸Áõ¼ö¸®¾È³»";
                threeDepthName[2] = "Á¤Ç°½Ã¸®¾óÀÎÁõ";
                threeDepthName[3] = "ÇìµåÆùA/S¾È³»";
				threeDepthName[4] = "ÀÚ°¡Áø´Ü";
                threeDepthName[5] = "À§Ä¡ ¹× ¿À½Ã´Â ±æ";

                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];






		// //
		}else if((depth1=="4") && (depth2=="4")){
                threeDepthName[1] = "À½Çâ ¿£Áö´Ï¾î °úÁ¤";
                threeDepthName[2] = "½Ã½ºÅÛ µðÀÚÀÌ³Ê&ÀÎ½ºÅç·¯ °úÁ¤";


                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' />"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' />"+threeDepthName[depth3];






		}




        return returnPram ;





}

///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";

        document.write(zoneFront + locationCheck(depth1, depth2, depth3, depth4) + zoneBack);
}

/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/