/*********************************************************
*·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ  XPEED
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
var imgpath = "/images/common/path/";
var urlpath = "/";
//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();
        var home = "<a href='"+urlpath+"'><img src='"+imgpath+"home.gif' border='0' align='absmiddle'></a>";
        
        oneDepthName['1'] = "<a href='"+urlpath+"company/intor.asp'><img src='"+imgpath+"depth_A.gif' border='0' align='absmiddle'></a>";//COMPANY
        oneDepthName['2'] = "<a href='"+urlpath+"product/tftlcd_glass.asp'><img src='"+imgpath+"depth_B.gif' border='0' align='absmiddle'></a>";//PRODUCT
        oneDepthName['3'] = "<a href='"+urlpath+"recruit/recruitinfor.asp'><img src='"+imgpath+"depth_C.gif' border='0' align='absmiddle'></a>";//CAREER
        oneDepthName['4'] = "<a href='"+urlpath+"pr-room/newsList.asp'><img src='"+imgpath+"depth_D.gif' border='0' align='absmiddle'></a>";//PR ROOM
        oneDepthName['5'] = "<a href='"+urlpath+"support/qualitypolicy.asp'><img src='"+imgpath+"depth_E.gif' border='0' align='absmiddle'></a>";//SUPPORT
        
        oneDepthName['6'] = "<img src='"+imgpath+"depth_F.gif' border='0' align='absmiddle'>";//Contact Us
        oneDepthName['7'] = "<img src='"+imgpath+"depth_G.gif' border='0' align='absmiddle'>";//Sitemap
        oneDepthName['8'] = "<img src='"+imgpath+"depth_H.gif' border='0' align='absmiddle'>";//Search
        oneDepthName['9'] = "<img src='"+imgpath+"depth_I.gif' border='0' align='absmiddle'>";//Q&A Center
        oneDepthName['10'] = "<img src='"+imgpath+"depth_J.gif' border='0' align='absmiddle'>";//Q&A Center
        
        returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1];
        
        if(depth1 =="1"){//COMPANY
                twoDepthName[1] = "<a href='"+urlpath+"company/intor.asp'><img src='"+imgpath+"depth_A1.gif' border='0' align='absmiddle'></a>"; //General Information
                twoDepthName[2] = "<img src='"+imgpath+"depth_A2.gif' border='0' align='absmiddle'>"; //CEO Message
                twoDepthName[3] = "<a href='"+urlpath+"company/coringcompany.asp'><img src='"+imgpath+"depth_A3.gif' border='0' align='absmiddle'></a>"; //Joint Venture
                twoDepthName[4] = "<img src='"+imgpath+"depth_A4.gif' border='0' align='absmiddle'>"; //Social Responsibility
                twoDepthName[5] = "<a href='"+urlpath+"company/greenmanage02.asp'><img src='"+imgpath+"depth_A5.gif' border='0' align='absmiddle'></a>"; //Green Management
                twoDepthName[6] = "<img src='"+imgpath+"depth_A6.gif' border='0' align='absmiddle'>"; //Ethical Management
                twoDepthName[7] = "<a href='"+urlpath+"company/sixsigma.asp'><img src='"+imgpath+"depth_A7.gif' border='0' align='absmiddle'></a>"; //Management Innovation
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
                
        }else if(depth1 =="2"){//PRODUCT
                twoDepthName[1] = "<a href='"+urlpath+"product/tftlcd_glass.asp'><img src='"+imgpath+"depth_B1.gif' border='0' align='absmiddle'></a>"; //TFT-LCD Glass Substrates
                twoDepthName[2] = "<img src='"+imgpath+"depth_B2.gif' border='0' align='absmiddle'>"; //Generations
                twoDepthName[3] = "<img src='"+imgpath+"depth_B3.gif' border='0' align='absmiddle'>"; //Core Competence
                twoDepthName[4] = "<a href='"+urlpath+"product/ito_target.asp'><img src='"+imgpath+"depth_B4.gif' border='0' align='absmiddle'></a>"; //About TFT-LCD
                twoDepthName[5] = "<a href='"+urlpath+"product/pdp_filter.asp'><img src='"+imgpath+"depth_B5.gif' border='0' align='absmiddle'></a>"; //About TFT-LCD
				twoDepthName[6] = "<a href='"+urlpath+"product/crt_glass.asp'><img src='"+imgpath+"depth_B6.gif' border='0' align='absmiddle'></a>"; //About TFT-LCD
				twoDepthName[7] = "<a href='"+urlpath+"product/gan_substrate.asp'><img src='"+imgpath+"depth_B7.gif' border='0' align='absmiddle'></a>"; //About TFT-LCD
				twoDepthName[8] = "<a href='"+urlpath+"product/tftlcd.asp'><img src='"+imgpath+"depth_B8.gif' border='0' align='absmiddle'></a>"; //About TFT-LCD
                
               returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
                
         }else if(depth1 =="3"){//CAREER
                twoDepthName[1] = "<img src='"+imgpath+"depth_C1.gif' border='0' align='absmiddle'>"; //Job Opportunity
                twoDepthName[2] = "<img src='"+imgpath+"depth_C2.gif' border='0' align='absmiddle'>"; //Application
                twoDepthName[3] = "<img src='"+imgpath+"depth_C3.gif' border='0' align='absmiddle'>"; //Benefits
              
                returnPram = home+"<img src='/images/common/path/arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
         
         }else if(depth1 =="4"){//PR ROOM
                twoDepthName[1] = "<img src='"+imgpath+"depth_D1.gif' border='0' align='absmiddle'>"; //News
                twoDepthName[2] = "<img src='"+imgpath+"depth_D2.gif' border='0' align='absmiddle'>"; //Company PR Film
                twoDepthName[3] = "<img src='"+imgpath+"depth_D3.gif' border='0' align='absmiddle'>"; //Digital Brochure
                twoDepthName[4] = "<img src='"+imgpath+"depth_D4.gif' border='0' align='absmiddle'>"; //SCP At a Glance
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
                
        }else if(depth1 =="5"){//SUPPORT
                twoDepthName[1] = "<img src='"+imgpath+"depth_E1.gif' border='0' align='absmiddle'>"; //Quality Guidelines
                twoDepthName[2] = "<img src='"+imgpath+"depth_E2.gif' border='0' align='absmiddle'>"; //Your Voice
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2];
                
        }
        //COMPANY
        if((depth1=="1") && (depth2=="1")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_A1_1.gif' border='0' align='absmiddle'>"; //Overview
                threeDepthName[2] = "<img src='"+imgpath+"depth_A1_2.gif' border='0' align='absmiddle'>"; //Vision
                threeDepthName[3] = "<img src='"+imgpath+"depth_A1_3.gif' border='0' align='absmiddle'>"; //R&D
                threeDepthName[4] = "<img src='"+imgpath+"depth_A1_4.gif' border='0' align='absmiddle'>"; //Corporate Culture
                threeDepthName[5] = "<img src='"+imgpath+"depth_A1_5.gif' border='0' align='absmiddle'>"; //Plant
                threeDepthName[6] = "<img src='"+imgpath+"depth_A1_6.gif' border='0' align='absmiddle'>"; //History
                threeDepthName[7] = "<img src='"+imgpath+"depth_A1_7.gif' border='0' align='absmiddle'>"; //Certifications
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
                
        }else if((depth1=="1") && (depth2=="3")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_A3_1.gif' border='0' align='absmiddle'>"; //Corning Inc.
                threeDepthName[2] = "<img src='"+imgpath+"depth_A3_2.gif' border='0' align='absmiddle'>"; //Successful Joint Venture
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
        }else if((depth1=="1") && (depth2=="5")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_A5_1.gif' border='0' align='absmiddle'>"; //Safety Guidelines
                threeDepthName[2] = "<img src='"+imgpath+"depth_A5_2.gif' border='0' align='absmiddle'>"; //Structure
                threeDepthName[3] = "<img src='"+imgpath+"depth_A5_3.gif' border='0' align='absmiddle'>"; //Major Cases
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
        }else if((depth1=="1") && (depth2=="7")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_A7_1.gif' border='0' align='absmiddle'>"; //Six Sigma
                threeDepthName[2] = "<img src='"+imgpath+"depth_A7_2.gif' border='0' align='absmiddle'>"; //Standardization
                threeDepthName[3] = "<img src='"+imgpath+"depth_A7_3.gif' border='0' align='absmiddle'>"; //TPM
                threeDepthName[4] = "<img src='"+imgpath+"depth_A7_4.gif' border='0' align='absmiddle'>"; //Suggestion
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
        //PRODUCT
        }else if((depth1=="2") && (depth2=="1")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_B1_1.gif' border='0' align='absmiddle'>"; //Overview
                threeDepthName[2] = "<img src='"+imgpath+"depth_B1_2.gif' border='0' align='absmiddle'>"; //Properties
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
                
		}
		else if((depth1=="2") && (depth2=="8")){
                threeDepthName[1] = "<img src='"+imgpath+"depth_B8_1.gif' border='0' align='absmiddle'>"; //Overview
                threeDepthName[2] = "<img src='"+imgpath+"depth_B8_2.gif' border='0' align='absmiddle'>"; //Properties
				threeDepthName[3] = "<img src='"+imgpath+"depth_B8_3.gif' border='0' align='absmiddle'>"; //Properties
                
                returnPram = home+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+oneDepthName[depth1]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+twoDepthName[depth2]+"<img src='"+imgpath+"arr_history.gif' border='0' align='absmiddle'>"+threeDepthName[depth3];
                
		}
        return returnPram ;
}
///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2, depth3 ) + zoneBack);
}
/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/