/*********************************************************
*̼    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.php'>关于依耐斯</a>";
        oneDepthName['2'] = "<a href='../kitchin/about_kitchen.php'>产品介绍</a>";
        oneDepthName['3'] = "<a href='../pr/flash.php'>PR</a>";
        oneDepthName['4'] = "<a href='../factory/quality.php'>合作加盟</a>";
        oneDepthName['5'] = "<a href='../news/news.php'>NEWS/FAQ</a>";
        //oneDepthName['6'] = "<a href='../global/contactus.php'>GLOBAL</a>";

        returnPram = oneDepthName[depth1];

        if(depth1 =="1"){
                twoDepthName[1] = "<span class='loc_02'>依耐斯介绍</span>";
                twoDepthName[2] = "<span class='loc_02'>依耐斯特性</span>";
                twoDepthName[3] = "<span class='loc_02'>依耐斯哲学</span>";
                //twoDepthName[4] = "<span class='loc_02'>IR</span>";

                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];

        }else if(depth1 =="2"){
                twoDepthName[1] = "<span class='loc_02'>橱柜</span>";
                twoDepthName[2] = "<span class='loc_02'>衣柜</span>";
                twoDepthName[3] = "<span class='loc_02'>鞋柜</span>";
                twoDepthName[4] = "<span class='loc_02'>家具</span>";

                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'>电子画册</span>";
				twoDepthName[3] = "<span class='loc_02'>下载壁纸</span>";

              	returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];

        }else if(depth1 =="4"){
                twoDepthName[1] = "<span class='loc_02'>营销网络</span>";
                twoDepthName[2] = "<span class='loc_02'>合作模式</span>";
                twoDepthName[3] = "<span class='loc_02'>加盟申请</span>";

                returnPram = oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];

        }else if(depth1 =="5"){
                twoDepthName[1] = "<span class='loc_02'>NEWS</span>";
                twoDepthName[2] = "<span class='loc_02'>招聘</span>";
                twoDepthName[3] = "<span class='loc_02'>客服中心</span>";
                twoDepthName[4] = "<span class='loc_02'>FAQ</span>";

                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);
}

/*********************************************************
*  ̼
*********************************************************/
