<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

//* image rollover *//
function overRoll( obj ) {
    obj.src = obj.src.replace( 'off.gif', 'on.gif' );
}
function outRoll( obj ) {
    obj.src = obj.src.replace( 'on.gif', 'off.gif' );
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function displayFlash(url,width,height) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='" + width + "' height='" + height + "'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='movie' value='" + url + "'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<embed src='" + url + "' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed></object>");
}


var xmlHttp = false;

/*
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}else {
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
*/
function xmlhttp() {
var obj;
var xml = new Array();
xml[0] = "MSXML2.XMLHTTP.5.0";
xml[1] = "MSXML2.XMLHTTP.4.0";
xml[2] = "MSXML2.XMLHTTP.3.0";
xml[3] = "MSXML2.XMLHTTP";
xml[4] = "Microsoft.XMLHTTP";
xml[5] = "WinHttp.WinHttpRequest.5";
xml[6] = "WinHttp.WinHttpRequest.5.1";
if (window.ActiveXObject) {
for (var i=0; i<xml.length; i++) {
try {
obj = new ActiveXObject(xml[i]);
break;
} catch(e) {
obj = null;
}
}
} else if(window.XMLHttpRequest) {
try {
obj = new XMLHttpRequest();
} catch(e) {
obj = null;
}
}
return obj;
}


xmlHttp = xmlhttp();

function calender_call(attl,bttl) {

  var attl;
  var bttl;

  var url = "/include/ajax_calender.jsp?year="+ attl + "&month="+bttl;
  xmlHttp.open("POST", url, true);

  xmlHttp.onreadystatechange = updatePage;

  xmlHttp.send('');
}



function updatePage() {
  if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;

	document.getElementById("calender_list").innerHTML = response;
  }
}

//### 메뉴스크립트 ###//
// Menu Control
var currentMenu;

function setNavigation(navid)	{
	menunum = 0;
	var mainmenu = document.getElementById(navid);
	var totalsub = mainmenu.childNodes;
	for(i=0;i<totalsub.length;i++)	{
		if(totalsub[i].nodeName=="LI")	{
			menunum = menunum + 1;
			tmpMenu = document.getElementById("submenu"+menunum);
			if(tmpMenu)	tmpMenu.style.display = "none";
		}
	}
}

function initMenu()	{
	var targetNum ;
	setNavigation('topmenu'); // MENU ID
	for(i=1;i<=menunum;i++)	{
		tgtEl = document.getElementById("menu"+i);
		if(tgtEl.getElementsByTagName("img").length>0)	{
			tgtEl.getElementsByTagName("img").item(0).onmouseover = function()	{
				tgtItem = this.parentNode.parentNode;
				targetNum = this.parentNode.parentNode.getAttribute("id").replace("menu", "");
				for(i=1;i<=menunum;i++)	{
					if(i==targetNum)	{
						if(document.getElementById("submenu"+i))	document.getElementById("submenu"+i).style.display = "block";
					}	else	{
						otherImg = document.getElementById("menu"+i).getElementsByTagName("img");
						otherImg.item(0).src = otherImg.item(0).src.replace("on.png", "off.png");
						if(document.getElementById("submenu"+i))	document.getElementById("submenu"+i).style.display = "none";
					}
				}
				this.src = this.src.replace("off.png", "on.png");
			}
			tgtEl.onmouseover = function()	{
				for(i=1;i<=menunum;i++)	{
					if(i==targetNum)	{
						if(document.getElementById("submenu"+i))	document.getElementById("submenu"+i).style.display = "block";
					}	else	{
						otherImg = document.getElementById("menu"+i).getElementsByTagName("img");
						otherImg.item(0).src = otherImg.item(0).src.replace("on.png", "off.png");
						if(document.getElementById("submenu"+i))	document.getElementById("submenu"+i).style.display = "none";
					}
				}
			}
			tgtEl.onmouseout = function()	{
				if(document.getElementById("submenu"+targetNum))	document.getElementById("submenu"+targetNum).style.display = "none";
				if(currentMenu!=null)	{ // current Menu re-activation. Need preset menu number.
					for(i=1;i<=menunum;i++)	{
						if(i==currentMenu)	{
							activateImg = document.getElementById("menu"+currentMenu).getElementsByTagName("img");
							activateImg.item(0).src = activateImg.item(0).src.replace("off.png", "on.png");
							document.getElementById("submenu"+currentMenu).style.display = "block";
						}	else	{
							otherImg = document.getElementById("menu"+i).getElementsByTagName("img");
							otherImg.item(0).src = otherImg.item(0).src.replace("on.png", "off.png");
						}
					}
				}
			}
		}
	}

	if(currentMenu!=null)	{ // current Menu activation. Need preset menu number.
		activateImg = document.getElementById("menu"+currentMenu).getElementsByTagName("img");
		activateImg.item(0).src = activateImg.item(0).src.replace("off.png", "on.png");
		document.getElementById("submenu"+currentMenu).style.display = "block";
	}
}
window.onload = initMenu;


//

// ###  링크 ###

function linkG0() { //인덱스
	location.href="/index.jsp";
}

function linkG1() { //테마여행
	location.href="/theme/index.jsp?page_gubun=page1";
}
	function linkG1S1() { //주제별
	location.href="/theme/index.jsp?page_gubun=page1";
}
	function linkG1S2() { //일정별
	location.href="/theme/index.jsp?page_gubun=page2";
}
	function linkG1S3() { //권역별
	location.href="/theme/index.jsp?page_gubun=page3";
}
	
	function linkG1S4() { //계절별
	location.href="/theme/index.jsp?page_gubun=page4";
}
	function linkG1S5() { //전북산행
	location.href="/theme/index.jsp?page_gubun=page5";
}
	function linkG1S6() { //산,강줄기
	location.href="/theme/index.jsp?page_gubun=page6";
}
	function linkG1S7() { //추천테마
	location.href="/theme/index.jsp?page_gubun=page7";
}

////////////////////////////////////////////////////////////////////
function linkG2() {  //관광지
	location.href="/tourplace/index.jsp?p_ResourceCode=MP";
}
	function linkG2S1() { //산,자연,공원
	location.href="/tourplace/index.jsp?p_ResourceCode=MP";
}
	function linkG2S2() { //계곡,폭포
	location.href="/tourplace/index.jsp?p_ResourceCode=VF";
}
	function linkG2S3() { //바다,강,호수
	location.href="/tourplace/index.jsp?p_ResourceCode=RI";
}
	function linkG2S4() { //온천,휴양지
	location.href="/tourplace/index.jsp?p_ResourceCode=SU";
}
	function linkG2S5() { //유적지
	location.href="/tourplace/index.jsp?p_ResourceCode=RM";
}
	function linkG2S6() { //문화공연
	location.href="/tourplace/index.jsp?p_ResourceCode=ME";
}
	function linkG2S7() { //특색지대
	location.href="/tourplace/index.jsp?p_ResourceCode=SP";
}
	function linkG2S8() { //영화,드라마
	location.href="/tourplace/index.jsp?p_ResourceCode=CM";
}

///////////////////////////////////////////////////////////////////////////
function linkG3() { //전통문화
	location.href="/culture/index.jsp?page_gubun=page1";
}
	function linkG3S1() { //문화재
	location.href="/culture/index.jsp?page_gubun=page1";
}

	function linkG3S2() { //인물
	location.href="/culture/index.jsp?page_gubun=page2";
}

	function linkG3S3() { //전설,시
	location.href="/culture/index.jsp?page_gubun=page3";
}

	function linkG3S4() { //판소리
	location.href="/culture/index.jsp?page_gubun=page4";
}

	function linkG3S5() { //세시풍속
	location.href="/culture/index.jsp?page_gubun=page5";
}

	function linkG3S6() { //전통공예
	location.href="/culture/index.jsp?page_gubun=page6";
}

	function linkG3S7() { //풍물굿
	location.href="/culture/index.jsp?page_gubun=page7";
}

	function linkG3S8() { //민속놀이
	location.href="/culture/index.jsp?page_gubun=page8";
}

	function linkG3S9() { //민요
	location.href="/culture/index.jsp?page_gubun=page9";
}

	function linkG3S10() { //민간신앙
	location.href="/culture/index.jsp?page_gubun=page10";
}

	function linkG3S11() { //문화재통계
	location.href="/culture/index.jsp?page_gubun=page11";
}


///////////////////////////////////////////////////////////////////////////
function linkG4() { //축제/이벤트
		location.href="/festival/index.jsp?page_gubun=page1";
}
	function linkG4S1() { //이달의행사
		location.href="/festival/index.jsp?page_gubun=page1";
}
	function linkG4S2() { //축제
		location.href="/festival/index.jsp?page_gubun=page2";
}
	function linkG4S3() { //전북대표축제
		location.href="/festival/index.jsp?page_gubun=page3";
}

//////////////////////////////////////////////////////////////////////////////
function linkG5() { //레저스포츠
		location.href="/lesure/index.jsp?page_gubun=page1";
}
	function linkG5S1() { //수영/볼링
		location.href="/lesure/index.jsp?page_gubun=page1";
}
	function linkG5S2() { //래프팅/활공
		location.href="/lesure/index.jsp?page_gubun=page2";
}
	function linkG5S3() { //스키/눈썰매
		location.href="/lesure/index.jsp?page_gubun=page3";
}
	function linkG5S4() { //수련시설
		location.href="/lesure/index.jsp?page_gubun=page4";
}
	function linkG5S5() { //낚시
		location.href="/lesure/index.jsp?page_gubun=page5";
}
	function linkG5S6() { //승마/사격
		location.href="/lesure/index.jsp?page_gubun=page6";
}
	function linkG5S7() { //체육관/운동장
		location.href="/lesure/index.jsp?page_gubun=page7";
}
	function linkG5S8() { //레포츠/공원
		location.href="/lesure/index.jsp?page_gubun=page8";
}
	function linkG5S9() { //골프
		location.href="/lesure/index.jsp?page_gubun=page9";
}

//////////////////////////////////////////////////////////////////////////////
function linkG6() { //FTOUR
		location.href="/course/index.jsp";
}
	function linkG6S1() { //전북관광100선
		location.href="/course/index.jsp";
}
	function linkG6S2() { //맛깔스럼FOOD
		location.href="/2009_html/sub6/index2.jsp";
}
	function linkG6S3() { //발품체험FOOT
		location.href="/2009_html/sub6/index3.jsp";
}
	function linkG6S4() { //흥겨운FESTIVAL
		location.href="/2009_html/sub6/index4.jsp";
}
	function linkG6S5() { //함께하는FARM
		location.href="/2009_html/sub6/index5.jsp";
}

//////////////////////////////////////////////////////////////////////////////
function linkG7() { //전북특산품
		location.href="/special/index.jsp?page_gubun=page1";
}
	function linkG7S1() { //특산품
		location.href="/special/index.jsp?page_gubun=page1";
}
	function linkG7S2() { //특산품 판매장
		location.href="/special/index.jsp?page_gubun=page2";
}
	function linkG7S3() { //백화점,대형점
		location.href="/special/index.jsp?page_gubun=page3";
}
	function linkG7S4() { //재래시장
		location.href="/special/index.jsp?page_gubun=page4";
}
	function linkG7S5() { //JBPLAZA
		location.href="http://www.jbplaza.com/";
}
	function linkG7S6() { //바이전북
		location.href="http://www.buyjb.or.kr/";
}

//////////////////////////////////////////////////////////////////////////////
function linkG8() { //예향전북
		location.href="/introduction/index.jsp?page_gubun=page";
}
	function linkG8S1() { //전북소개
		location.href="/introduction/index.jsp?page_gubun=page";
}
	function linkG8S2() { //전북TOP10
		location.href="/introduction/inc/page5.inc.jsp";
}
	function linkG8S3() { //전북인물
		location.href="/introduction/inc/page2.inc.jsp";
}
	function linkG8S4() { //맛,멋,소리의고장
		location.href="/introduction/inc/page3.inc.jsp";
}

//////////////////////////////////////////////////////////////////////////////
function linkG9() { //여행정보
		location.href="/tourinfo/index.jsp?page_gubun=page1";
}
	function linkG9S1() { //숙박
		location.href="/tourinfo/index.jsp?page_gubun=page1";
}
	function linkG9S2() { //음식
		location.href="/tourinfo/index.jsp?page_gubun=page2";
}
	function linkG9S3() { //교통
		location.href="/tourinfo/index.jsp?page_gubun=page3";
}
	function linkG9S4() { //여행사
		location.href="/tourinfo/index.jsp?page_gubun=page4";
}
	function linkG9S5() { //문화관광해설사
		location.href="/tourinfo/index.jsp?page_gubun=page5";
}
	function linkG9S6() { //관광통역안내사
		location.href="/tourinfo/index.jsp?page_gubun=page6";
}
	function linkG9S7() { //전자북서비스
		location.href="/tourinfo/index.jsp?page_gubun=page7";
}
	function linkG9S8() { //관광안내도
		location.href="/tourinfo/index.jsp?page_gubun=page8";
}
	function linkG9S9() { //관광자료실
		location.href="/tourinfo/index.jsp?page_gubun=page9";
}
	function linkG9S10() { //관광안내소
		location.href="/tourinfo/index.jsp?page_gubun=page10";
}

//////////////////////////////////////////////////////////////////////////////
function linkG10() { //정보자료
		location.href="/datainfo/index.jsp?page_gubun=page1";
}
	function linkG10S1() { //해외여행준비
		location.href="/datainfo/index.jsp?page_gubun=page1";
}
	function linkG10S2() { //여행사정보
		location.href="/datainfo/index.jsp?page_gubun=page2";
}
	function linkG10S3() { //관광안내책자신청
		location.href="/datainfo/index.jsp?page_gubun=page3";
}
	function linkG10S4() { //자료실
		location.href="/datainfo/index.jsp?page_gubun=page4";
}
	function linkG10S5() { //아트갤러리
		location.href="/datainfo/index.jsp?page_gubun=page5";
}

//////////////////////////////////////////////////////////////////////////////
function linkG11() { //나눔터
		location.href="/nanum/index.jsp?page_gubun=page1";
}
	function linkG11S1() { //공지사항
		location.href="/nanum/index.jsp?page_gubun=page1";
}
	function linkG11S2() { //새소식
		location.href="/nanum/index.jsp?page_gubun=page2";
}
	function linkG11S3() { //불편신고
		location.href="/nanum/index.jsp?page_gubun=page3";
}
	function linkG11S4() { //추천합니다
		location.href="/nanum/index.jsp?page_gubun=page4";
}
	function linkG11S5() { //FAQ
		location.href="/nanum/index.jsp?page_gubun=page5";
}
	function linkG11S6() { //자유게시판
		location.href="/nanum/index.jsp?page_gubun=page6";
}
	function linkG11S7() { //관련사이트
		location.href="/nanum/index.jsp?page_gubun=page7";
}
	function linkG11S8() { //자료실
		location.href="/nanum/index.jsp?page_gubun=page8";
}
//	function linkG11S9() { //동호회
//		location.href="/nanum/index.jsp?page_gubun=page9";
//}
	function linkG11S10() { //설문
		location.href="/nanum/index.jsp?page_gubun=page9";
}
	function linkG11S11() { //이벤트
		location.href="/nanum/index.jsp?page_gubun=page10";
}

//////////////////////////////////////////////////////////////////////////////
function linkG12() { //관광자원210선
		location.href="/tourresource/index.jsp";
}
	function linkG12S1() { //210선 전자북
		location.href="/tourresource/index.jsp";
}
	function linkG12S2() { //210선 해설이야기
		location.href="/tourresource/menu2/index.jsp";
}

//////////////////////////////////////////////////////////////////////////////

	function linklogin() { //회원가입-로그인
		location.href="https://www.gojb.net/member/index.jsp?page_gubun=page1";
}
	function linkjoin() { //회원가입
		location.href="https://www.gojb.net/member/index.jsp?page_gubun=page6";
}
	function linkinser() { //회원가입-아이디/패스워드찾기
		location.href="https://www.gojb.net/member/index.jsp?page_gubun=page9";
}

	function linkmodify() { //정보수정
		location.href="https://www.gojb.net/member/index.jsp?page_gubun=page3";
}
	function linksitemap() { //사이트맵
		location.href="/sitemap/index.jsp";
}
	function linkpriv() { //개인정보보보정책
		location.href="";
}

//////////////////////////////////////////////////////////////////////////////

	function linkENG() { //영문사이트
		location.href="/intro_eng.html";
}
	function linkJAP() { //일문사이트
		location.href="/intro_jpn.html";
}
	function linkCHI() { //중문사이트
		location.href="/intro_chn.html";
}

