/*********************************************************
*·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ 
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
var depth4 = "";
var urlpath = "/";


function setDepthVar( firVar, secVar, thrVar, fourVar ) {
	depth1 = firVar;
	depth2 = secVar;
	depth3 = thrVar;
	depth4 = fourVar;
}

function locationCheck( depth1, depth2, depth3, depth4 ){

	var returnPram = ""
	var oneDepthName = new Array();
	var twoDepthName = new Array();
	var threeDepthName = new Array();
	var fourDepthName = new Array();


	var home = "<a href='/'>HOME</a>";

		oneDepthName['1'] = "<a href='/company/ceo.asp'>COMPANY</a>";
		oneDepthName['2'] = "<a href='/product/idx_lcd.asp'>PRODUCT</a>";
		oneDepthName['3'] = "<a href='/tech/institute.asp'>TECHNOLOGY</a>";
		oneDepthName['4'] = "<a href='/ir/main.asp'>IR</a>";
		oneDepthName['5'] = "<a href='/pr/notice.asp'>PR CENTER</a>";
		oneDepthName['6'] = "<a href='/recruit/recruit_notice.asp'>RECRUIT</a>";
		oneDepthName['7'] = "<a href='/customer/service.asp'>CUSTOMER SUPPORT</a>";
		oneDepthName['8'] = "<a href='/cooperation/notice.asp'>COOPERATION</a>";

		oneDepthName['11'] = "<strong>»çÀÌÆ®¸Ê</strong>";

		returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1];

        if(depth2 == "0"){
			returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1];
				
		}else if(depth1 == "1"){
                twoDepthName[1] = "CEO ÀÎ»ç¸»"; 
                twoDepthName[2] = "È¸»ç°³¿ä";  
                twoDepthName[3] = "»ç¾÷ºÐ¾ß"; 
                twoDepthName[4] = "±â¾÷Áö¹è±¸Á¶";
				twoDepthName[5] = "»çÀÌ¹ö½Å¹®°í";

                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";

				//3depth¸Þ´º´Â else if¾È¿¡ if¹®À» ÇÑ¹ø ´õ Åº´Ù.
				if(depth2 == "2"){
				
					threeDepthName[1] = "°³¿ä ¹× ºñÁ¯"; 		
					threeDepthName[2] = "¿¬Çõ"; 	
					threeDepthName[3] = "»ç¾÷Àå¼Ò°³"; 
					threeDepthName[4] = "Á¶Á÷µµ"; 
					threeDepthName[5] = "È¸»ç¿î¿µ¹æÄ§"; 
				//	threeDepthName[6] = "»çÀÌ¹ö½Å¹®°í"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}

				//if(depth2 == "3"){
				
				//	threeDepthName[1] = "DISPLAY »ç¾÷"; 		
				//	threeDepthName[2] = "¹°·ù»ç¾÷"; 	
				//	threeDepthName[3] = "FA»ç¾÷"; 
				//	threeDepthName[4] = "Àü¿ëÀåºñ»ç¾÷"; 
				//	threeDepthName[5] = "Àü°øÁ¤Àåºñ»ç¾÷"; 
				//	threeDepthName[6] = "FGA»ç¾÷"; 

				if(depth2 == "3"){
				
					threeDepthName[1] = "¹°·ù½Ã½ºÅÛ»ç¾÷ºÎ"; 	
					threeDepthName[2] = "°øÁ¤Àåºñ»ç¾÷ºÎ"; 
					threeDepthName[3] = "Àü¿ëÀåºñ»ç¾÷"; 
					threeDepthName[4] = "FGA»ç¾÷"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}
				
		}else if(depth1 == "2"){
                twoDepthName[1] = "DISPLAY Àåºñ";  
                twoDepthName[2] = "SOLAR CELL Á¦Á¶Àåºñ"; 
                twoDepthName[3] = "¹ÝµµÃ¼Àåºñ"; 
                twoDepthName[4] = "Áø°ø¼³ºñ"; 
                twoDepthName[5] = "MODULEÀåºñ"; 
                twoDepthName[6] = "FILM¼³ºñ"; 
                twoDepthName[7] = "ÀÎ¼âÀüÀÚÀåºñ"; 
                twoDepthName[8] = "ÀÚµ¿Â÷¼³ºñ"; 
                twoDepthName[9] = "Áß°ø¾÷¼³ºñ"; 
                twoDepthName[10] = "½ÃÇè¼³ºñ"; 
                twoDepthName[11] = "AGV/LGV"; 
                twoDepthName[12] = "Æ÷ÀåÀûÀç¼³ºñ"; 
                twoDepthName[13] = "¹°·ùÀÚµ¿È­¼³ºñ"; 

                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";

				if(depth2 == "1"){
				
					threeDepthName[1] = "LCD Á¦Á¶Àåºñ"; 		
					threeDepthName[2] = "OLED Á¦Á¶Àåºñ"; 	
					threeDepthName[3] = "PDP Á¦Á¶Àåºñ"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}
             
				if(depth2 == "4"){
				
					threeDepthName[1] = "ÇÙÀ¶ÇÕ¼³ºñ"; 		
					threeDepthName[2] = "Ç×°ø¿ìÁÖ¼³ºñ"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}
			    
		}else if(depth1 == "3"){
                twoDepthName[1] = "¿¬±¸¼Ò ¼Ò°³"; 
                twoDepthName[2] = "±â¼ú¼Ò°³";  
                twoDepthName[3] = "±â¼úÀÚ¿ø"; 
                twoDepthName[4] = "¿ë¾î¼³¸í"; 

                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";

				if(depth2 == "2"){
				
					threeDepthName[1] = "ÀÚ±âºÎ»ó"; 		
					threeDepthName[2] = "ÀÎ¼âÀüÀÚ"; 	
					threeDepthName[3] = "³×ºñ°ÔÀÌ¼Ç1, 2"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}

				if(depth2 == "3"){
				
					threeDepthName[1] = "±â¼úÀÎ·Â ¹× Æ¯ÇãÇöÈ²"; 		
					threeDepthName[2] = "¼¼°èÃÖÃÊ ¡¤ ÃÖ°íÁ¦Ç°"; 	
					threeDepthName[3] = "¼ö»ó ¹× ÀÎÁõÇöÈ²"; 
					threeDepthName[4] = "¼¼°èÀÏ·ù»óÇ° ÇöÈ²"; 
					threeDepthName[5] = "´ë¿Ü±â¼ú»ó ¼ö»óÇöÈ²"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}

         
			  
        }else if(depth1 == "4"){
                twoDepthName[1] = "Àç¹«Á¤º¸"; 
                twoDepthName[2] = "ÁÖ°¡Á¤º¸";  
                twoDepthName[3] = "±â¾÷°ø½Ã"; 
                twoDepthName[4] = "IR ÀÚ·á½Ç"; 
                twoDepthName[5] = "IR Calendar"; 
                twoDepthName[6] = "e-mail service"; 
                twoDepthName[7] = "³»ºÎÁ¤º¸°ü¸®±ÔÁ¤"; 

				returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";
        
        }else if(depth1 == "5"){
                twoDepthName[1] = "°øÁö»çÇ×"; 
                twoDepthName[2] = "º¸µµÀÚ·á";  
                twoDepthName[3] = "µðÁöÅÐºê·Î½´¾î"; 
                twoDepthName[4] = "È¸»çµ¿¿µ»ó"; 
                
                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";
				
        }else if(depth1 == "6"){
                twoDepthName[1] = "Ã¤¿ë°ø°í"; 
                twoDepthName[2] = "ÀÎ»çÁ¦µµ";  
                twoDepthName[3] = "º¹¸®ÈÄ»ý"; 
                twoDepthName[4] = "FAQ"; 
                
                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";
				
        }else if(depth1 == "7"){
                twoDepthName[1] = "°í°´¸¸Á·°æ¿µ"; 
                twoDepthName[2] = "°í°´Áö¿ø";  
                twoDepthName[3] = "Á¶Á÷ ¿¬¶ôÃ³"; 
                
                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";
				
				if(depth2 == "2"){
				
					threeDepthName[1] = "ÁÖ¿ä¾÷¹«³»¿ë"; 		
					threeDepthName[2] = "¿î¿µÁ¶Á÷µµ"; 	
					threeDepthName[3] = "CS È°µ¿Áö¿ª ºÐÆ÷"; 

					returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> "+twoDepthName[depth2]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+threeDepthName[depth3]+"</strong>";
				}
        }
else if(depth1 == "8"){
                twoDepthName[1] = "°øÁö»çÇ×";  
                twoDepthName[2] = "°ø°³¸ðÁý"; 
                twoDepthName[3] = "Áö¿ø¼­ÀÛ¼º"; 
                twoDepthName[4] = "QnA"; 
               
                returnPram = home+" <img src='../images/common/bu_square.gif' alt='' class='home' /> "+oneDepthName[depth1]+" <img src='../images/common/bu_arrow.gif' alt='' class='arrow' /> <strong>"+twoDepthName[depth2]+"</strong>";}
        return returnPram;
		
}

///////  VIEW ///////
function currentPage(){

	var zoneFront = "";
	var zoneBack = "";
	zoneFront = "";
	zoneBack = "";
	
	document.write(zoneFront + locationCheck(depth1, depth2, depth3) + zoneBack);
}

/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/
