var pageNum = 1;
var subNum = 0;
var menuNum = 0;
var active = 0;
var subactive = 0;
var fh = 0;

var arrMenuValue = getCookie("menu").split("/");
if(arrMenuValue !=''){
	pageNum = arrMenuValue[0];
	subNum = arrMenuValue[1];
	menuNum = arrMenuValue[2];
	active = arrMenuValue[3];
	subactive = arrMenuValue[4];
	fh = arrMenuValue[5];
}

var depth1 = 0;
var depth2 = 0;
var depth3 = 0;

var arrLocationValue = getCookie("location").split("/");
if(arrLocationValue !=''){
	depth1 = arrLocationValue[0]; //´ë¸Þ´º¸í
	depth2 = arrLocationValue[1]; //Áß¸Þ´º
	depth3 = arrLocationValue[2]; //¼Ò¸Þ´º	
}

/**
  * ÄíÅ° ¼³Á¤
  * @param cookieName ÄíÅ°¸í
  * @param cookieValue ÄíÅ°°ª
  * @param expireDay ÄíÅ° À¯È¿³¯Â¥
  */
function setCookie( cookieName, cookieValue, expireDate )
{
	var today = new Date();
	today.setDate( today.getDate() + parseInt( expireDate ) );
	document.cookie = cookieName + "=" + escape( cookieValue ) + "; path=/; expires=" + today.toGMTString() + ";";
 }

function getCookie(name) 
{ 
	var nameOfCookie = name + "="; 
	var x = 0; 
	while ( x <= document.cookie.length ) 
	{ 
		var y = (x+nameOfCookie.length); 
		
		if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
						endOfCookie = document.cookie.length; 

				return unescape( document.cookie.substring( y, endOfCookie ) ); 
		} 
		x = document.cookie.indexOf( " ", x ) + 1; 
		
		if ( x == 0 ) 
			break; 
	} 
	return ""; 
} 


/*********************************************************
*ÆäÀÌÁö ·ÎÄÉÀÌ¼Ç °ü¸® ½ÃÀÛ 
*********************************************************/
function getLocationPath( ){
       
		var returnPram = "";
		var urlpath = "/";
		var oneDepthName = new Array();
		var twoDepthName = new Array();
		var threeDepthName = new Array();
		var fourDepthName = new Array();
		var home = "<a href='/index.htm' class='navi'>Home</a>";

		oneDepthName[1] = "»çºñ¹éÁ¦±Ã";
		oneDepthName[2] = "»çºñ¸¶À»ÃÌ";
		oneDepthName[3] = "»çºñÀúÀã°Å¸®";
		oneDepthName[4] = "»çºñ¹éÁ¦¼Ò½Ä";
		oneDepthName[5] = "¹éÁ¦ÀÎ½°ÅÍ";
		oneDepthName[6] = "»çºñ¹éÁ¦EVENT";
//		oneDepthName[7] = "³ªÀÇ±¤Àå";
//		oneDepthName[8] = "Âü¿©±¤Àå";
//		oneDepthName[9] = "ÀÌº¥Æ®±¤Àå";

		

		if(depth1 == "1"){
			if(depth2 =="1"){
				twoDepthName[depth2] = "»çºñ¹éÁ¦ÀÎÀÌ¶õ";
			}else if(depth2 =="2"){
				twoDepthName[depth2] = "±º¼öÀÎ»ç¸»";
			}else if(depth2 =="3"){
				twoDepthName[depth2] = "ºÎ¿©±º¼Ò°³";	
			}else if(depth2 =="4"){
				twoDepthName[depth2] = "È«º¸±âÀÚ´Ü";	
			}else if(depth2 =="5"){
				twoDepthName[depth2] = "»çºñ¹éÁ¦ÀÎÇýÅÃ";	
			}
//			if(depth3 =="1"){
//				threeDepthName[depth3] = "<span class='navi_on'>ÀÎ»ç¸»</span>";			
//			}
			returnPram = home + " > " + oneDepthName[depth1] + " > " + twoDepthName[depth2] + " > " + threeDepthName[depth3];
		
		}else if(depth1 == "2"){
			if(depth2 =="1"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñ¸¶À»ÀÌ¶õ</span>";
			}else if(depth2 =="2"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñ¸¶À»</span>";
			}else if(depth2 =="3"){		
				twoDepthName[depth2] = "<span class='navi_on'>°¡ÀÚ!1¹Ú2ÀÏ!</span>";
			}else if(depth2 =="4"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñÆÐ¹Ð¸®</span>";
			}else if(depth2 =="5"){		
				twoDepthName[depth2] = "<span class='navi_on'>ÆÐ¹Ð¸®ÇöÈ²</span>";
			}
			returnPram = home + " > " + oneDepthName[depth1] + " > " + twoDepthName[depth2] + " > " + threeDepthName[depth3];

		}else if(depth1 == "3"){			
			if(depth2 =="1"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñ°¡¸ÍÁ¡</span>";
			}else if(depth2 =="2"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñÆ¯»êÇ°</span>";
			}else if(depth2 =="3"){		
				twoDepthName[depth2] = "<span class='navi_on'>¸ÀÁý!ÈÞ°Ô¼Ò!</span>";
			}else if(depth2 =="4"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñ¸í¼Ò</span>";
			}
			returnPram = home + " > " + oneDepthName[depth1] + " > " + twoDepthName[depth2];
			
		}else if(depth1 == "4"){
			if(depth2 =="1"){		
				twoDepthName[depth2] = "<span class='navi_on'>°øÁö»çÇ×</span>";
			}else if(depth2 =="2"){		
				twoDepthName[depth2] = "<span class='navi_on'>Çà»ç¹×ÃàÁ¦</span>";
			}else if(depth2 =="3"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñ¹éÁ¦»çÁøÃ¸</span>";
			}else if(depth2 =="4"){		
				twoDepthName[depth2] = "<span class='navi_on'>»çºñÀÌº¥Æ®</span>";
			}
			returnPram = home + " > " + oneDepthName[depth1] + " > " + twoDepthName[depth2];		

		}else if(depth1 == "5"){
			if(depth2 =="1"){		
				twoDepthName[depth2] = "<span class='navi_on'>¹éÁ¦ÀÎÀÇ¼Ò¸®</span>";
			}else if(depth2 =="2"){		
				twoDepthName[depth2] = "<span class='navi_on'>°¡¸ÍÁ¡ÄíÆù</span>";
			}else if(depth2 =="3"){		
				twoDepthName[depth2] = "<span class='navi_on'>Ã¼Çè¼ö±â</span>";
			}else if(depth2 =="4"){		
				twoDepthName[depth2] = "<span class='navi_on'>Ã¼Çè»çÁø</span>";
			}else if(depth2 =="5"){		
				twoDepthName[depth2] = "<span class='navi_on'>¹éÁ¦ÀÎUCC</span>";
			}
			returnPram = home + " > " + oneDepthName[depth1] + " > " + twoDepthName[depth2];				
		}
		
        document.write(returnPram);
}

/*********************************************************
*  ·ÎÄÉÀÌ¼Ç °ü¸® ³¡
*********************************************************/


//------------- »çºñ¹éÁ¦ ¸Þ´º -------------//
function baekjeMenu(menu,menuValue,locationValue){
		
	setCookie("menu",menuValue,1);
	setCookie("location",locationValue,1);

	if (menu==""){
		alert('required login');
	}else if(menu=="tm11"){
		location.href="../sub01/sub.01.001.html";	//»çºñ¹éÁ¦±Ã>»çºñ¹éÁ¦ÀÎÀÌ¶õ
	}else if(menu=="tm12"){
		location.href="../sub01/sub.02.001.html";	//»çºñ¹éÁ¦±Ã>±º¼öÀÎ»ç¸»
	}else if(menu=="tm13"){
		location.href="../sub01/sub.03.001.html";	//»çºñ¹éÁ¦±Ã>ºÎ¿©±º¼Ò°³
	}else if(menu=="tm14"){
		location.href="../sub01/sub.04.001.html";	//»çºñ¹éÁ¦±Ã>È«º¸±âÀÚ´Ü
	}else if(menu=="tm15"){
		location.href="../sub01/sub.05.001.html";	//»çºñ¹éÁ¦±Ã>»çºñ¹éÁ¦ÀÎÇýÅÃ
	}else if(menu=="tm21"){
		location.href="../sub02/sub.01.001.html";	//»çºñ¸¶À»ÃÌ>»çºñ¸¶À»ÀÌ¶õ
	}else if(menu=="tm22"){
		location.href="../sub02/sub.02.001.html";	//»çºñ¸¶À»ÃÌ>»çºñ¸¶À»
	}else if(menu=="tm23"){
		location.href="../sub02/sub.03.001.html";	//»çºñ¸¶À»ÃÌ>°¡ÀÚ!1¹Ú2ÀÏ!
	}else if(menu=="tm232"){
		location.href="../sub02/sub.03.002.html";	//»çºñ¸¶À»ÃÌ>°¡ÀÚ!1¹Ú2ÀÏ!
	}else if(menu=="tm24"){
		location.href="../sub02/sub.04.001.html";	//»çºñ¸¶À»ÃÌ>»çºñÆÐ¹Ð¸®
	}else if(menu=="tm25"){
		location.href="../sub02/sub.05.001.html";	//»çºñ¸¶À»ÃÌ>ÆÐ¹Ð¸®ÇöÈ²
	}else if(menu=="tm31"){
		location.href="../sub03/sub.01.001.html";	//»çºñÀúÀã°Å¸®>»çºñ°¡¸ÍÁ¡
	}else if(menu=="tm312"){
		location.href="../sub03/sub.01.002.html";	//»çºñÀúÀã°Å¸®>»çºñ°¡¸ÍÁ¡
	}else if(menu=="tm32"){
		location.href="../sub03/sub.02.001.html";	//»çºñÀúÀã°Å¸®>»çºñÆ¯»êÇ°
	}else if(menu=="tm33"){
		location.href="../sub03/sub.03.001.html";	//»çºñÀúÀã°Å¸®>¸ÀÁý!ÈÞ°Ô¼Ò!
	}else if(menu=="tm332"){
		location.href="../sub03/sub.03.002.html";	//»çºñÀúÀã°Å¸®>¸ÀÁý!ÈÞ°Ô¼Ò!
	}else if(menu=="tm34"){
		location.href="../sub03/sub.04.001.html";	//»çºñÀúÀã°Å¸®>»çºñ¸í¼Ò
	}else if(menu=="tm41"){
		location.href="../bbs_gate.php?boardid=bbs_notice"; //»çºñ¹éÁ¦¼Ò½Ä>°øÁö»çÇ×
	}else if(menu=="tm42"){
		location.href="../bbs_gate.php?boardid=bbs_festi"; //»çºñ¹éÁ¦¼Ò½Ä>Çà»ç¹×ÃàÁ¦
	}else if(menu=="tm43"){
		location.href="../bbs_lib/list.php?boardid=bbs_homephoto";	//»çºñ¹éÁ¦¼Ò½Ä>»çºñ¹éÁ¦»çÁøÃ¸
	}else if(menu=="tm44"){
		location.href="../sub04/sub.04.001.html";	//»çºñ¹éÁ¦¼Ò½Ä>»çºñÀÌº¥Æ®
//	}else if(menu=="tm51"){
//		location.href="../sub05/sub.01.001.html";
	}else if(menu=="tm52"){
		location.href="../sub05/sub.02.001.html";	//¹éÁ¦ÀÎ½°ÅÍ>°¡¸ÍÁ¡ÄíÆù
//	}else if(menu=="tm53"){
//		location.href="../sub05/sub.03.001.html";
//	}else if(menu=="tm54"){
//		location.href="../sub05/sub.04.001.html";
	}else if(menu=="tm55"){
		location.href="../sub05/sub.05.001.html";	//¹éÁ¦ÀÎ½°ÅÍ>¹éÁ¦ÀÎUCC
//	}else if(menu=="tm56"){
//		location.href="../sub05/sub.06.001.html";
//	}else if(menu=="tm57"){
//		location.href="../sub05/sub.07.001.html";
	}else if(menu=="tm6"){
		location.href="../sub06/sub.01.001.html"; //³ªÀÇ»çºñ¹éÁ¦>·Î±×ÀÎÆäÀÌÁö
	}else if(menu=="tm61"){
		location.href="../sub06/sub.01.001.html";	//³ªÀÇ»çºñ¹éÁ¦>·Î±×ÀÎÆäÀÌÁö
	}else if(menu=="tm62"){
		location.href="../sub06/sub.02.001.html"; //³ªÀÇ»çºñ¹éÁ¦>»çºñ¹éÁ¦ÀÎ µî·ÏÆäÀÌÁö
	}else if(menu=="tm623"){
		location.href="../sub06/sub.02.003.html"; //³ªÀÇ»çºñ¹éÁ¦>»çºñ¹éÁ¦ÀÎ µî·Ï ÈÄ ¿Ï·áÆäÀÌÁö
	}else if(menu=="tm63"){
		location.href="../sub06/sub.03.001.html"; //³ªÀÇ»çºñ¹éÁ¦>¾ÆÀÌµð Ã£±â ÆäÀÌÁö
	}else if(menu=="tm64"){
		location.href="../sub06/sub.04.001.html"; //³ªÀÇ»çºñ¹éÁ¦>ÀÌ¿ë¾à°üÆäÀÌÁö
//	}else if(menu=="tm65"){
//		location.href="../sub06/sub.05.001.html"; //
//	}else if(menu=="tm66"){
//		location.href="../sub06/sub.06.001.html"; //
//	}else if(menu=="tm67"){
//		location.href="../member/idSearch.html";
//	}else if(menu=="tm64"){
//		location.href="../member/pwSearch.html";
//	}else if(menu=="tm65"){
//		location.href="../member/agreement.html";
//	}else if(menu=="tm66"){
//		location.href="../member/logout.php";
//	}else if(menu=="tm7"){
//		location.href="../mypage/memInfoKor.html";
	}else if(menu=="tm71"){
		location.href="../sub07/sub.01.001.html";	//³ªÀÇ»çºñ¹éÁ¦>°³ÀÎÁ¤º¸º¯°æÆäÀÌÁö
	}else if(menu=="tm72"){
		location.href="../sub07/sub.02.001.html";	//³ªÀÇ»çºñ¹éÁ¦>»çºñ¹éÁ¦ÀÎÁõ ¹ß±Þ
	}else if(menu=="tm73"){
		location.href="../sub07/sub.03.001.html";	//³ªÀÇ»çºñ¹éÁ¦>¾÷Ã¼½ÅÃ»
	}else if(menu=="tm74"){
		location.href="../sub07/sub.04.001.html";	//³ªÀÇ»çºñ¹éÁ¦>1¹Ú2ÀÏ½ÅÃ»
	}else if(menu=="tm75"){
		location.href="../sub07/sub.05.001.html";	//³ªÀÇ»çºñ¹éÁ¦>¹éÁ¦ÀÎÅ»Åð
//	}else if(menu=="tm81"){
//		location.href="../bbs_gate.php?boardid=bbs_sori";
//	}else if(menu=="tm82"){
//		location.href="../bbs_gate.php?boardid=bbs_experi";
//	}else if(menu=="tm83"){
//		location.href="../bbs_gate.php?boardid=bbs_memucc";
//	}else if(menu=="tm84"){
//		location.href="../bbs_gate.php?boardid=bbs_free";
//	}else if(menu=="tm85"){
//		location.href="../sub06/sub06_1_2.html";
//	}else if(menu=="tm86"){
//		location.href="../bbs_gallery/list.php?boardid=bbs_experphoto";
//	}else if(menu=="tm91"){
//		location.href="../event/event090113.sub.html";
//	}else if(menu=="tm92"){
//		location.href="../event/event090112.sub.html";
//	}else if(menu=="tm93"){
//		location.href="../event/event090318.sub.html";
	}
}


function subTopPrint(){	
	document.write("<img src='../images/sub/sub_top"+depth1+".png'>");
}

function leftTopPrint(){	
	document.write("<img src='../images/left/left_tit"+depth1+".gif'>");
}




//-->

