/*********************************************************
*·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ  ENEX
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
//var depth4 = "";

function setDepthVar( firVar, secVar, thrVar ) {
        depth1 = firVar;
        depth2 = secVar;
        depth3 = thrVar;
        //depth4 = fourVar;
}

function locationCheck( depth1, depth2, depth3 ){

        var returnPram = ""
        var oneDepthName = new Array();
        var twoDepthName = new Array();
        var threeDepthName = new Array();
                
        oneDepthName['1'] = "<a href='../enex/ceo.asp'>THE ENEX</a>";
        oneDepthName['2'] = "<a href='../kitchin/about_kitchen.asp'>PRODUCT</a>";
        oneDepthName['3'] = "<a href='../pr/flash.asp'>PR</a>"; 
        oneDepthName['4'] = "<a href='../factory/factory.asp'>TECHNOLOGY</a>"; 
        oneDepthName['5'] = "<a href='../network/domestic.asp'>PARTNERSHIP</a>";
        oneDepthName['6'] = "<a href='../global/contactus.asp'>GLOBAL</a>";
        
        returnPram = oneDepthName[depth1];
        
        if(depth1 =="1"){
                twoDepthName[1] = "<a href='../enex/ceo.asp'>ENEX</a>"; 
                twoDepthName[2] = "<a href='../identity/vision.asp'>Identity</a>"; 
                twoDepthName[3] = "<a href='../philosophy/philosophy.asp'>Philosophy</a>"; 
                twoDepthName[4] = "<span class='loc_02'>IR</span>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
        
        }else if(depth1 =="2"){
                twoDepthName[1] = "<a href='../kitchin/about_kitchen.asp'>Kitchen Furniture</a>"; 
                twoDepthName[2] = "<a href='../builtin/endless.asp'>Wardrobe</a>"; 
                twoDepthName[3] = "<span class='loc_02'>Shoes Furniture</span>"; 
                twoDepthName[4] = "<a href='../interior/bedroom.asp'>Interior Furniture</a>"; 
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
                
         }else if(depth1 =="3"){
                twoDepthName[1] = "<span class='loc_02'>Pr Flash</span>"; 
                twoDepthName[2] = "<span class='loc_02'>E-Catalog</span>"; 
				twoDepthName[3] = "<span class='loc_02'>Wall Paper</span>"; 
                                
              	returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
              
        }else if(depth1 =="4"){
                twoDepthName[1] = "<a href='../factory/factory.asp'>Production system</a>"; 
                twoDepthName[2] = "<a href='../rnd/research.asp'>R&D</a>"; 
                twoDepthName[3] = "<a href='../environmental/environmental.asp'>Environmental Friendly</a>"; 
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
				
        }else if(depth1 =="5"){
                twoDepthName[1] = "<a href='../network/domestic.asp'>Network</a>"; 
                twoDepthName[2] = "<a href='../cooperation/veneta_cucine.asp'>Cooperation company</a>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
        }
        
        // THE ENEX //
        if((depth1=="1") && (depth2=="1")){
                threeDepthName[1] = "<span class='loc_02'>CEO'S Message</span>"; 
                threeDepthName[2] = "<span class='loc_02'>About ENEX</span>"; 
                threeDepthName[3] = "<span class='loc_02'>ENEX History</span>";
				threeDepthName[4] = "<span class='loc_02'>Company Outline</span>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        }else if((depth1=="1") && (depth2=="2")){
                threeDepthName[1] = "<span class='loc_02'>Vision</span>"; 
                threeDepthName[2] = "<span class='loc_02'>CI</span>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        }else if((depth1=="1") && (depth2=="3")){
                threeDepthName[1] = "<span class='loc_02'>Philosophy & Strategy</span>";
                threeDepthName[2] = "<span class='loc_02'>Quality Management</span>";
				threeDepthName[3] = "<span class='loc_02'>Design Management</span>";
				threeDepthName[4] = "<span class='loc_02'>Environment Friendly Management</span>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        // Product Introduction  //
        }else if((depth1=="2") && (depth2=="1")){
				threeDepthName[1] = "<span class='loc_02'>About Kitchen</span>";
				threeDepthName[2] = "<span class='loc_02'>System Kitchen</span>";
                threeDepthName[3] = "<span class='loc_02'>Dining Tables and Chairs</span>"; 
				threeDepthName[4] = "<span class='loc_02'>Functional/Optional Cabinet</span>";
                threeDepthName[5] = "<span class='loc_02'>Accessory</span>"; 
                threeDepthName[6] = "<span class='loc_02'>Built-in Device</span>";
                threeDepthName[7] = "<span class='loc_02'>Sink Bowl</span>";
				threeDepthName[8] = "<span class='loc_02'>Sink Plate</span>";
				threeDepthName[9] = "<span class='loc_02'>Faucet</span>";
				
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        }else if((depth1=="2") && (depth2=="2")){
                threeDepthName[1] = "<span class='loc_02'>Endless System</span>";
                threeDepthName[2] = "<span class='loc_02'>Sliding System</span>";
             	
				returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        }else if((depth1=="2") && (depth2=="4")){
                threeDepthName[1] = "<span class='loc_02'>Bedroom Set</span>";
                threeDepthName[2] = "<span class='loc_02'>Living Room Furniture</span>";
                threeDepthName[3] = "<span class='loc_02'>Couch</span>";
                threeDepthName[4] = "<span class='loc_02'>Dress Room</span>";
				threeDepthName[5] = "<span class='loc_02'>Library & Study room</span>";
				threeDepthName[6] = "<span class='loc_02'>Multi Purpose Cabinet</span>";
				threeDepthName[7] = "<span class='loc_02'>Bathroom / Powder Room</span>";
                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        // Technology //
        }else if((depth1=="4") && (depth2=="1")){
                threeDepthName[1] = "<span class='loc_02'>Quality Management</span>";
				threeDepthName[2] = "<span class='loc_02'>Factory Introduction</span>";
				
				returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        }else if((depth1=="4") && (depth2=="2")){
                threeDepthName[1] = "<span class='loc_02'>Kitchen Furniture Institute</span>";
                threeDepthName[2] = "<span class='loc_02'>Design Philosophy</span>";
				threeDepthName[3] = "<span class='loc_02'>Achievement</span>";
				threeDepthName[4] = "<span class='loc_02'>Best Design Korea</span>";
             	
				returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        }else if((depth1=="4") && (depth2=="3")){
                threeDepthName[1] = "<span class='loc_02'>Environmental  Friendly</span>";
                threeDepthName[2] = "<span class='loc_02'>Water Borne</span>";
				threeDepthName[3] = "<span class='loc_02'>Eco Label</span>";
                                                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        // Distribution channel and partnership //
        }else if((depth1=="5") && (depth2=="1")){
                threeDepthName[1] = "<span class='loc_02'>Domestic</span>";
                threeDepthName[2] = "<span class='loc_02'>Overseas</span>";
                                                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
				
		}else if((depth1=="5") && (depth2=="2")){
                threeDepthName[1] = "<span class='loc_02'>Veneta Cucine</span>";
                threeDepthName[2] = "<span class='loc_02'>Apply for partner</span>";
                                                
                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
       }
	   
       return returnPram ;

}
///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2, depth3 ) + zoneBack);
}

/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/
