
	// Top 메뉴 이동
	function mainlink(idx)
	{
		var cLinkUrl = "";
	
		switch ( idx )
		{
			case 1	 	: cLinkUrl = "/reservation/index.jsp"; 		break;		// 땡큐예약
			case 2		: cLinkUrl = "/travel/index.jsp"; 				break;		// 여행스케치
			case 3		: cLinkUrl = "/information/index.jsp"; 		break;		// 관광정보
			case 4		: cLinkUrl = "/community/index.jsp"; 		break;		// 땡큐포유
			case 5		: cLinkUrl = "/citytour/index.jsp"; 			break;		// 경기시티투어
		}
	
		if ( "" != cLinkUrl ) window.location.href = cLinkUrl;
	}

  function fulldown()
  {
	document.getElementById("full_layer").style.top = "0";
  }


  function fullFunc(idx)
  {
	if(idx = 1)
	{
		top();
	}
  }

  function fullLink(idx1,idx2)
	{
		var cLinkUrl = "";
	
		if ( 1 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/reservation/index.jsp"; 																				break;		// 땡큐예약
				case 1	 	: cLinkUrl = "/reservation/lodge/lodgeList.jsp?category_s=111111111000"; 							break;		// 숙박
				case 2		: cLinkUrl = "/reservation/experience/experienceList.jsp?category_s=111112111000"; 			break;		// 체험
				case 3		: cLinkUrl = "/reservation/performance/performanceList.jsp?category_s=111118111000";		break;		// 공연
				case 4		: cLinkUrl = "/reservation/sight/sightList.jsp?category_s=111113111000"; 							break;		// 관람
				case 5		: cLinkUrl = "/reservation/package/packageList.jsp?category_s=111115111000"; 					break;		// 패키지투어
			}
		}
		else if ( 2 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/travel/index.jsp"; 																							break;		// 여행스케치
				case 1	 	: cLinkUrl = "/travel/journalist/journalistList.jsp?category_s_search=113111111000"; 				break;		// 여행기자칼럼
				case 2		: cLinkUrl = "/travel/video/videoList.jsp?category_s_search=113112111000"; 							break;		// 영상으로 전하는 여행
				case 3		: cLinkUrl = "/travel/serialization/serializationList.jsp?category_s_search=113113111000"; 		break;		// 연재칼럼
				case 4		: cLinkUrl = "/travel/dmz/dmzList.jsp?category_s_search=113114111000"; 								break;		// DMZ 이야기
			}
		}
		else if ( 3 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/information/index.jsp"; 																											break;		// 관광정보
				case 1	 	: cLinkUrl = "/information/informationList.jsp?category_m=112111000000&category_s=112111111000"; 			break;		// 자연관광
				case 2		: cLinkUrl = "/information/informationList.jsp?category_m=112112000000&category_s=112112111000"; 			break;		// 역사관광
				case 3		: cLinkUrl = "/information/informationList.jsp?category_m=112113000000&category_s=112113112000"; 			break;		// 체험관광
				case 4		: cLinkUrl = "/information/informationList.jsp?category_m=112117000000&category_s=112117111000"; 			break;		// 숙박시설
				case 5		: cLinkUrl = "/information/informationList.jsp?category_m=112114000000&category_s=112114111000"; 			break;		// 문화시설
				case 6		: cLinkUrl = "/information/informationList.jsp?category_m=112118000000&category_s=112118111000"; 			break;		// 미각관광
				case 7		: cLinkUrl = "/information/informationList.jsp?category_m=112115000000"; 													break;		// 테마관광
			}
		}
		else if ( 4 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/community/index.jsp"; 										break;		// 땡큐포유
				case 1	 	: cLinkUrl = "/community/exploration/explorationView.jsp"; 		break;		// 코스답사
				case 2		: cLinkUrl = "/community/ucc/uccList.jsp"; 								break;		// 길따라 맛따라 UCC
				case 3		: cLinkUrl = "/community/suggestion/suggestionList.jsp"; 			break;		// 여기 어때요?
				case 4		: cLinkUrl = "/community/mosaic/mosaicList.jsp"; 						break;		// 모자이크 갤러리
				case 5		: cLinkUrl = "/community/event/eventList.jsp"; 							break;		// 이벤트
				case 6		: cLinkUrl = "/community/question/questionList.jsp"; 					break;		// 이땡큐 설문
			}
		}
		else if ( 5 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/citytour/index.jsp"; 					break;		// 경기 시티투어
				case 1	 	: cLinkUrl = "/citytour/city/tour01.jsp"; 				break;		// 시티투어 체험관
				case 2		: cLinkUrl = "/citytour/lodge/lodgeList.jsp"; 		break;		// 지역특화 콘텐츠
			}
		}
		else if ( 6 == idx1 )
		{
			switch ( idx2 )
			{
				case 0	 	: cLinkUrl = "/reservation/index.jsp"; 											break;		// 마이페이지
				case 1	 	: cLinkUrl = "/mypage/scrap/reservation/reservationList.jsp"; 		break;		// 찜목록
				case 2		: cLinkUrl = "/mypage/cart/lodgeList.jsp"; 									break;		// 장바구니
				case 3		: cLinkUrl = "/mypage/reservation/reservationList.jsp"; 					break;		// 예약 및 결재내역 조회
				case 4		: cLinkUrl = "/mypage/reservation/cancelList.jsp"; 						break;		// 취소 및 환불내역 조회
				case 5		: cLinkUrl = "/mypage/member/infoWrite.jsp"; 								break;		// 회원정보 관리
				case 6		: cLinkUrl = ""; 																			break;		// 쿠폰내역 조회
				case 7		: cLinkUrl = "/mypage/inquiry/inquiryList.jsp"; 								break;		// 1:1 문의
			}
		}
		else if ( 7 == idx1 )
		{
			cLinkUrl = "/data/dataList2.jsp";	// 이땡큐 자료실
		}
		else if ( 8 == idx1 )
		{
			cLinkUrl = "/offline/offlineList.jsp?category_s=";	// 오프라인 가맹점 소개
		}
		else if ( 9 == idx1 )
		{
			cLinkUrl = "/ucc/uccList.jsp";	// 땡큐 TV
		}
		else if ( 10 == idx1 )
		{
			cLinkUrl = "/card/card.jsp";	// 땡큐카드 소개
		}
		else if ( 11 == idx1 )
		{
			cLinkUrl = "/rss/rss.jsp";	// RSS 서비스
		}
		else if ( 12 == idx1 )
		{
			cLinkUrl = "/sitemap/siteMap.jsp";	// 사이트 맵
		}
	
		if ( "" != cLinkUrl ) window.location.href = cLinkUrl;
		else alert("준비중 입니다.");
	}

//6.0 셀렉트박스 z-index로 인한 수정.

function down(){
	document.getElementById("full_layer").style.display = "block";
	$("#full_layer").animate({
		marginTop: "0"
	}, 500);
	$("select").fadeOut("fast");
}


function top(){
	$("#full_layer").animate({marginTop: "-408px"}, 500);
	$("#full_layer").fadeOut("slow");
	$("select").fadeIn("slow");
}
//6.0 셀렉트박스 z-index로 인한 수정.



	function slideFunc(idx){
		if ( idx == 1 )
		{
			$("#how").fadeOut();
		}
		else
		{
			$("#how").fadeIn();
		}
	}



	function moreFunc(){
		window.location.href = "/community/exploration/explorationView.jsp";
	}