function GoUrl(name) {	
	if (eval(name) == "") {
		alert("서비스준비중입니다");
		return;	
	} else {		
		location.href = eval(name);		
	}
}	

home = "/index.php";
eng_home = "/eng/index.html";
cn_home = "/cn/index.html";
adm = "/adm";
sitemap = "/sitemap.php?Main=1&subPage=6";

//**
	sub1_1 = "/sub1_1.php?Main=1&subPage=1"; 
	sub1_2 = "/sub1_2.php?Main=1&subPage=2"; 
	sub1_3 = "/sub1_3.php?Main=1&subPage=3"; 
	sub1_4 = "/sub1_4.php?Main=1&subPage=4"; 
	sub1_5 = "/sub1_5.php?Main=1&subPage=5"; 

//** 
	sub2_1_1 = "/bbs/board.php?bo_table=SProductsGallery";
	sub2_1_2 = "/bbs/board.php?bo_table=nail2&subPage=1&thiPage=2";
	sub2_1_3 = "/bbs/board.php?bo_table=nail3&subPage=1&thiPage=3";
	sub2_1_4 = "/bbs/board.php?bo_table=nail4&subPage=1&thiPage=4";
	
	sub2_2_1 = "/bbs/board.php?bo_table=nail1&subPage=1&thiPage=1";
	sub2_2_2 = "/bbs/board.php?bo_table=nail2&subPage=1&thiPage=2";
	sub2_2_3 = "/bbs/board.php?bo_table=nail3&subPage=1&thiPage=3";
	sub2_2_4 = "/bbs/board.php?bo_table=nail4&subPage=1&thiPage=4";
	sub2_2_5 = "/bbs/board.php?bo_table=impl5&subPage=2&thiPage=5";
	sub2_2_6 = "/bbs/board.php?bo_table=impl6&subPage=2&thiPage=6";
	sub2_2_7 = "/bbs/board.php?bo_table=impl7&subPage=2&thiPage=7";
	sub2_2_8 = "/bbs/board.php?bo_table=impl8&subPage=2&thiPage=8";



	
	sub2_3_1 = "/bbs/board.php?bo_table=impl1&subPage=2&thiPage=1";
	sub2_3_2 = "/bbs/board.php?bo_table=impl2&subPage=2&thiPage=2";
	sub2_3_3 = "/bbs/board.php?bo_table=impl3&subPage=2&thiPage=3";
	sub2_3_4 = "/bbs/board.php?bo_table=impl4&subPage=2&thiPage=4";
	sub2_3_5 = "/bbs/board.php?bo_table=impl5&subPage=2&thiPage=5";
	sub2_3_6 = "/bbs/board.php?bo_table=impl6&subPage=2&thiPage=6";
	sub2_3_7 = "/bbs/board.php?bo_table=impl7&subPage=2&thiPage=7";
	sub2_3_8 = "/bbs/board.php?bo_table=impl8&subPage=2&thiPage=8";
	

	sub2_4_1 = "/bbs/board.php?bo_table=mani1&subPage=3&thiPage=1"; 
	sub2_4_2 = "/bbs/board.php?bo_table=mani2&subPage=3&thiPage=2";
	sub2_4_3 = "/bbs/board.php?bo_table=mani3&subPage=3&thiPage=3";
	sub2_4_4 = "/bbs/board.php?bo_table=mani4&subPage=3&thiPage=4";
	sub2_4_5 = "/bbs/board.php?bo_table=mani5&subPage=3&thiPage=5";
	sub2_4_6 = "/bbs/board.php?bo_table=mani6&subPage=3&thiPage=6";
	sub2_4_7 = "/bbs/board.php?bo_table=mani7&subPage=3&thiPage=7";
	
	
	
	sub2_5_1 = "/bbs/board.php?bo_table=nano2&subPage=4&thiPage=1"; 
	sub2_5_2 = "/bbs/board.php?bo_table=nano2&subPage=4&thiPage=2"; 
	sub2_5_3 = "/bbs/board.php?bo_table=nano2&subPage=4&thiPage=3"; 
	sub2_5_4 = "/sub2_5_4.php?Main=2&subPage=5&thiPage=4"; 

	sub2_6_1 = "/bbs/board.php?bo_table=nano2&subPage=4&thiPage=1"; 
    sub2_7_1 = "bbs/board.php?bo_table=Izabell";
	sub2_8_1 = "/bbs/board.php?bo_table=TingkerBell"; 
	sub2_9_1 = "/bbs/board.php?bo_table=spec1&subPage=6&thiPage=1"; 
	sub2_10_1 = "/bbs/board.php?bo_table=Brand"; 
	
	
//** 
	sub3_1 = "http://www.design-gift.co.kr"; 
	sub3_2 = "/bbs/board.php?bo_table=notice2";
	sub3_3 = "/bbs/board.php?bo_table=notice3";

//**
	
	/*
	sub4_1 = "/bbs/board.php?bo_table=qa1";
	sub4_2 = "/sub4_2.php?Main=4&subPage=2"; 
	sub4_3 = "/bbs/board.php?bo_table=qa3";
	sub4_4 = "/bbs/board.php?bo_table=qa4";
	sub4_5 = "/sub4_5.php?Main=4&subPage=5&thiPage=5";
	sub4_6 = "/sub4_6.php?Main=4&subPage=6"; 
	*/

	sub4_1 = "/bbs/board.php?bo_table=qa1";
	sub4_2 = "/bbs/board.php?bo_table=qa2";
	sub4_3 = "/bbs/board.php?bo_table=qa3";
	sub4_4 = "/sub4_2.php?Main=4&subPage=4"; 
	sub4_5 = "/sub4_5.php?Main=4&subPage=5";
	sub4_6 = "/sub4_6.php?Main=4&subPage=6"; 
	sub4_7 = "/sub5_1.php?Main=5&subPage=1"; 

//** 
	sub5_1 = "http://www.bellmetal.tv";

/*********************************************************
*로케이션 관리 시작  
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";

function setDepthVar( firVar, secVar, thiVar ) {
        depth1 = firVar;
        depth2 = secVar;
		depth3 = thiVar;
}

function locationCheck( depth1, depth2, depth3 ){

        var returnPram = ""
        var oneDepthName = new Array();
        var twoDepthName = new Array();
        var threeDepthName = new Array();
        //var home = "<a href='/index.php'>HOME</a>";
        
        /************** 1 depth ***************/
        
        oneDepthName['1'] = "company";
        oneDepthName['2'] = "products";
        oneDepthName['3'] = "shopping";
        oneDepthName['4'] = "Q&A";
		oneDepthName['5'] = "전자카달로그 신청";
		         
        //returnPram = home+" &#187; "+oneDepthName[depth1];
        
        /************** 2 depth ***************/
        
        if(depth1 =="1"){
                twoDepthName['1'] = "CEO인사말";
				twoDepthName['2'] = "주요연혁";
				twoDepthName['3'] = "벨 갤러리";
				twoDepthName['4'] = "미디어스토리";
				twoDepthName['5'] = "연락처 및 약도";
				twoDepthName['6'] = "사이트맵";
                
                returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+twoDepthName[depth2]+"</span>";
                
        }else if(depth1 =="2"){
                twoDepthName['1'] = "Nail clipper";
				twoDepthName['2'] = "Implement";
				twoDepthName['3'] = "Manicure set";
				twoDepthName['4'] = "Nano Silver";
				twoDepthName['5'] = "Brand";
				twoDepthName['6'] = "";

				if(depth2 =="1"){
					threeDepthName['1'] = "Mold Category";
					threeDepthName['2'] = "Oriental Painting";
					threeDepthName['3'] = "Auther";
					threeDepthName['4'] = "Special Processing";

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> "+twoDepthName[depth2]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				
				} else if(depth2 =="2") {
					threeDepthName['1'] = "Pusher&V-trimmer";
					threeDepthName['2'] = "Buffer&Emery";
					threeDepthName['3'] = "Nail File";
					threeDepthName['4'] = "Eyelash Curlers";
					threeDepthName['5'] = "Tweezers";
					threeDepthName['6'] = "Scissors";
					threeDepthName['7'] = "Foot files";
					threeDepthName['8'] = "Openers";

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> "+twoDepthName[depth2]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				
				} else if(depth2 =="3") {
					threeDepthName['1'] = "Aluminum Case";
					threeDepthName['2'] = "Hard Case";
					threeDepthName['3'] = "Metal Frame";
					threeDepthName['4'] = "Zipper case";
					threeDepthName['5'] = "PVC case";
					threeDepthName['6'] = "Korean traditional product";
					threeDepthName['7'] = "first-aid case";

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> "+twoDepthName[depth2]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				
				} else if(depth2 =="4") {
					threeDepthName['1'] = "Nano Silver effect";
					threeDepthName['2'] = "Nano Silver product";
					threeDepthName['3'] = "Nano Silver Package";

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> "+twoDepthName[depth2]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				
				} else if(depth2 =="5") {
					threeDepthName['1'] = "BELL";
					threeDepthName['2'] = "NANO BELL";
					threeDepthName['3'] = "IZABELL";
					threeDepthName['4'] = "Tinker BELL";

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> "+twoDepthName[depth2]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				}

				else if(depth2 =="6") {
					threeDepthName['1'] = "Special Products"; 

					returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+threeDepthName[depth3]+"</span>";
				}
                
                
         }else if(depth1 =="3"){
                twoDepthName['1'] = "shopping";
				
				returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+twoDepthName[depth2]+"</span>";
        
        }else if(depth1 =="4"){
                twoDepthName['1'] = "공지사항";
				twoDepthName['2'] = "언론보도자료";
				twoDepthName['3'] = "고객게시판";
				twoDepthName['4'] = "견적의뢰";
				twoDepthName['5'] = "판촉대리점문의";
				twoDepthName['6'] = "연락처및약도";
                
                returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> "+oneDepthName[depth1]+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+twoDepthName[depth2]+"</span>";
        
        }else if(depth1 =="5"){
                twoDepthName['1'] = "전자카달로그 신청";
				twoDepthName['2'] = "서포터즈 참가신청";
				twoDepthName['3'] = "행사체험 참가신청";
                
                returnPram = "<img src='/img/location_home.gif' align='absmiddle'>&nbsp;"+"home"+" <img src='/img/arrow.gif' align='absmiddle'> <span class='b'>"+twoDepthName[depth2]+"</span>";
        
        }
        return returnPram ;

}
///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2, depth3 ) + zoneBack);
}

/*********************************************************
*  로케이션 관리 끝
*********************************************************/

