﻿/*********************************************************
*로케이션 관리 시작  YUDO 실업 :: 2006.10.17 LMJ
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
var imgpath = "/eng_group/Images/common/";
var urlpath = "/eng_group/";
//var depth4 = "";

function setDepthVar( firVar, secVar, thrVar ) {
        depth1 = firVar;
        depth2 = secVar;
        depth3 = thrVar;
        //depth4 = fourVar;
}

function locationCheck( depth1, depth2 ){
       
        var returnPram = ""
        var oneDepthName = new Array();
        var twoDepthName = new Array();
        var threeDepthName = new Array();
        var home = "<img src='"+imgpath+"arr.gif' border='0' align='absmiddle'>"+"<a href='"+urlpath+"'>HOME</a>";
        
        oneDepthName['1'] = "<a href='"+urlpath+"About/about_01.asp'>YUDO Group</a>";
        oneDepthName['2'] = "<a href='"+urlpath+"Work/work_01.asp'>Business Area</a>";
        oneDepthName['3'] = "<a href='"+urlpath+"PR/prMedia_yudo.asp'>PR Center</a>";
        oneDepthName['4'] = "Global Network";
        oneDepthName['5'] = "What’s New";
        oneDepthName['6'] = "SITE MAP";
        oneDepthName['7'] = "Q&A";
				
				
        returnPram = home+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+oneDepthName[depth1];
        
        if(depth1 =="1"){
                twoDepthName[1] = "Overview"; 
                twoDepthName[2] = "History & Record Achievement"; 
                twoDepthName[3] = "The way of YUDO"; 
                twoDepthName[4] = "Vision of YUDO"; 
                twoDepthName[5] = "Family Company"; 
                
                returnPram = home+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
                
        }else if(depth1 =="2"){
                twoDepthName[1] = "Hot Runner System"; 
                twoDepthName[2] = "Heater & Thermo Couple"; 
                twoDepthName[3] = "Take-out Robot";     
                twoDepthName[4] = "Factory Automation (Plastic)";      
                twoDepthName[5] = "Auxiliary System";                  
                twoDepthName[6] = "Factory Automation (Machinery)";                  
                twoDepthName[7] = "Human Server";                  
                twoDepthName[8] = "Precision Metal Engineering";                  
                
                returnPram = home+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];                
          
         }else if(depth1 =="3"){
                twoDepthName[1] = "Corporate Identity"; 
                twoDepthName[2] = "YUDO in the Media"; 
                twoDepthName[3] = "Global Leader YUDO"; 
                twoDepthName[4] = "Social Contribution";              
                twoDepthName[5] = "PR Movie";                              
                
                returnPram = home+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr2.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];                         
     
          
        }                 
      
        return returnPram ;
}
///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2 ) + zoneBack);
}
/*********************************************************
*  로케이션 관리 끝
*********************************************************/