/*********************************************************
*·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ 
*********************************************************/
//////  LOCATION CHECK   ////////
var depth1 = "";
var depth2 = "";
var depth3 = "";
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 = "";
        
		        oneDepthName[1] = "<a href='"+urlpath+"#' >HOME</a>";
       
        if(depth1 =="1"){
			twoDepthName[1] = "<a href='"+urlpath+"advance/advance_01.asp'>°ø¿¬¤ýÀü½Ã¿¹¸Å</a>";  
			twoDepthName[2] = "<a href='"+urlpath+"rent_info/rentinfo_01.asp'>´ë°ü¼­ºñ½º</a>"; 
			twoDepthName[3] = "<a href='"+urlpath+"member/member_01.asp'>È¸¿ø¼­ºñ½º</a>"; 
			twoDepthName[4] = "<a href='"+urlpath+"community/list.asp?tb=MNEWS'>Ä¿¹Â´ÏÆ¼</a>";
			twoDepthName[5] = "<a href='"+urlpath+"group_info/group01/groupinfo_01.asp'>ºÎ»ê½Ã¸³¿¹¼ú´Ü</a>";
			twoDepthName[6] = "<a href='"+urlpath+"about/about_01.asp'>¹®È¸È­°ü¼Ò°³</a>";
			twoDepthName[7] = "<a href='"+urlpath+"mypage/mypage_01.asp'>¸¶ÀÌÆäÀÌÁö</a>";
			twoDepthName[8] = "»çÀÌÆ®¸Ê";
			
			if(depth2=="1"){
				threeDepthName[1] = "<span class='s_gray'>ÀÎÅÍ³Ý¿¹¸Å</span>"; 
				threeDepthName[2] = "<a href='"+urlpath+"advance/advance_02_month.asp'>°ø¿¬¤ýÀü½ÃÀÏÁ¤</a>"; 
				threeDepthName[3] = "<span class='s_gray'>Åä¿ä»ó¼³¹«´ë</span>";
				threeDepthName[4] = "<span class='s_gray'>Ã£¾Æ°¡´Â½Ã¸³¿¹¼ú´Ü </span>";
				threeDepthName[5] = "<span class='s_gray'>¿¹¸Å¾È³»</span>";
			}
			
			else if(depth2=="2"){
				threeDepthName[1] = "<a href='"+urlpath+"rent_info/rentinfo_01.asp'>´ë°ü±ÔÁ¤¾È³»</a>"; 
				threeDepthName[2] = "<span class='s_gray'>´ë°üÀýÂ÷¾È³»</span>"; 
				threeDepthName[3] = "<span class='s_gray'>´ë°üÇöÈ²</span>";
				threeDepthName[4] = "<span class='s_gray'>ÁÂ¼®¹èÄ¡µµ </span>";
				threeDepthName[5] = "<span class='s_gray'>´ë°ü°ü·Ã½ÅÃ»¼­</span>";
			}
			
			else if(depth2=="3"){
				threeDepthName[1] = "<span class='s_gray'>È¸¿øÁ¦¾È³»</span>"; 
				threeDepthName[2] = "<span class='s_gray'>È¸¿ø°¡ÀÔÀýÂ÷¹×À¯ÀÇ»çÇ×</span>"; 
				threeDepthName[3] = "<span class='s_gray'>È¸¿ø°¡ÀÔ</span>";
				threeDepthName[4] = "<span class='s_gray'>·Î±×ÀÎ </span>";
				threeDepthName[5] = "<span class='s_gray'>¾ÆÀÌµðºÐ½Ç</span>";
				threeDepthName[6] = "<span class='s_gray'>ºñ¹Ð¹øÈ£Àç¹ß±Þ</span>";
		   }
		
			else if(depth2=="4"){
				threeDepthName[1] = "<span class='s_gray'>°øÁö/º¸µµ/ÀÔÂû¹×°ø°í</span>"; 
				threeDepthName[2] = "<span class='s_gray'>Q&A</span>"; 
				threeDepthName[3] = "<span class='s_gray'>ÀÚÀ¯°Ô½ÃÆÇ</span>";
				threeDepthName[4] = "<span class='s_gray'>¹®È­È¸°ü¿¡¹Ù¶õ´Ù</span>";
			}
			
			else if(depth2=="5"){
				threeDepthName[1] = "<span class='s_gray'>±³Çâ¾Ç´Ü</span>"; 
				threeDepthName[2] = "<span class='s_gray'>±¹¾Ç°üÇö¾Ç´Ü</span>"; 
				threeDepthName[3] = "<span class='s_gray'>¹«¿ë´Ü</span>";
				threeDepthName[4] = "<span class='s_gray'>ÇÕÃ¢´Ü </span>";
				threeDepthName[5] = "<span class='s_gray'>±Ø´Ü </span>";
				threeDepthName[6] = "<span class='s_gray'>Ã»¼Ò³â±³Çâ¾Ç´Ü </span>";
				threeDepthName[7] = "<span class='s_gray'>¼Ò³â¼Ò³àÇÕÃ¢´Ü</span>";
			}
			
			else if(depth2=="6"){
				threeDepthName[1] = "<span class='s_gray'>ÀÎ»ç¸»</span>"; 
				threeDepthName[2] = "<span class='s_gray'>¿¬Çõ¹×Á¶Á÷</span>"; 
				threeDepthName[3] = "<span class='s_gray'>½Ã¼³¾È³»</span>";
				threeDepthName[4] = "<span class='s_gray'>ÁÖº¯¹®È­½Ã¼³ </span>";
				threeDepthName[5] = "<span class='s_gray'>¿À½Ã´Â±æ</span>";
			}
			
			else if(depth2=="7"){
				threeDepthName[1] = "<span class='s_gray'>ÀüÃ¼Á¤º¸</span>"; 
				threeDepthName[2] = "<span class='s_gray'>È¸¿øÁ¤º¸º¯°æ</span>"; 
				threeDepthName[3] = "<span class='s_gray'>³ªÀÇ¿¹¸ÅÁ¤º¸</span>"; 
				threeDepthName[4] = "<span class='s_gray'>³ªÀÇ°­ÁÂ¼öÁ¤</span>";
				threeDepthName[5] = "<span class='s_gray'>Á¤±âÈ¸¿ø¿¬Àå</span>";
				threeDepthName[6] = "<span class='s_gray'>È¸¿øÅ»Åð</span>";
				threeDepthName[7] = "<span class='s_gray'>Âü°¡½ÅÃ»³»¿ª</span>";
				threeDepthName[8] = "<span class='s_gray'>Á¤±âÈ¸¿ø°ü¶÷³»¿ª</span>";
			}




	        returnPram = home+oneDepthName[depth1]+" -"+twoDepthName[depth2]+" -"+threeDepthName[depth3];
		}else if(depth1 == "2"){
			twoDepthName[1] = "<span class='s_gray'>¿ù°£ÀÏÁ¤</span>";  
			twoDepthName[2] = "<span class='s_gray'>ÁÖ°£ÀÏÁ¤</span>"; 
			twoDepthName[3] = "<span class='s_gray'>¿¬°£ÀÏÁ¤</span>";

			if(depth2=="2"){
				twoDepthName[2] = "<span class='s_gray'>¿ù°£</span>"; 
				twoDepthName[3] = "<span class='s_gray'>¿À½Ã´Â±æ</span>"; 
				twoDepthName[4] = "<span class='s_gray'>¿À½Ã´Â±æ</span>"; 
			}

			returnPram = home+oneDepthName[depth1]+" - "+twoDepthName[depth2];
		}

        return returnPram ;


}




///////  VIEW ///////
function currentPage(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2, depth3 ) + zoneBack);
}
/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/




