/*즐겨찾기시작*/
var favoriteurl = 'http://guide.gyeongju.go.kr/index.jsp';
var favoritetitle = '경주문화관광';
function addfavorites() {
   if (document.all) {
      window.external.AddFavorite(favoriteurl,favoritetitle)
   }
}
/*즐겨찾기끝*/

/*새창시작*/
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}




function myPageBooster(guid){
   
   if(guid!="")
	{
	   var title = window.prompt("제목을 입력하세요","");
	   
	   if(title=="" || title==null){
		  alert("제목을 입력하세요");  
		  return;
	   }
		var url = '/mypage/mycart_proxy.jsp';
		var pars = 'guid='+guid+'&title='+title;
		
		var myAjax = new Ajax.Request(
			url, 
			{
				method: 'get', 
				parameters: pars, 
				onComplete: myPageResponse
			});
	}else{
		  alert("출발지를 입력하세요");  
		  return;
	}
   	
}

function myPageResponse(originalRequest)
{
	
	//$('schedule_result').innerHTML = originalRequest.responseText;
	alert(originalRequest.responseText);
}

function printBooster(guid){
  // alert("출력하기"+guid);
  //location.href = "/include/pdf/test.php?cid="+guid+"&amp;ctype=Cart";
  window.open("/include/pdf/test.php?cid="+guid+"&amp;ctype=Cart", "printCart", "width=600, height=500, scrollbars=yes");
}


function mapViewerBooster(guid){
   window.open("/cart/map.jsp?guid="+guid,"new","width=700px,height=500px,top=0px,left=0px");
}
function scraps(cid,ctitle)
{
	window.open("/detail_view/Scraps.jsp?cid="+cid+"&amp;title="+escape(encodeURIComponent(ctitle)),"new","width=300px,height=200px,top=0px,left=0px");
}

function scraps_detail(cid,ctitle)
{
	window.open("/detail_view/Scraps.jsp?cid="+cid+"&amp;title="+ctitle+"&amp;gubun=1","new","width=300px,height=200px,top=0px,left=0px");
}

function review_del(cid,title,tab,n)
{
	window.open("/detail_view/Review_del.jsp?cid="+cid+"&amp;title="+title+"&amp;tab="+tab+"&amp;n="+n,"new","width=300px,height=200px,top=0px,left=0px");
}

function reply_del(pFile,n,c_class,temp1,start,start2)
{
	window.open("/include/Reply_del.jsp?start="+start+"&amp;start2="+start2+"&amp;prcfile="+pFile+"&amp;nid="+n+"&amp;c_class="+c_class+"&amp;n="+temp1,"new","width=300px,height=200px,top=0px,left=0px");
}

function reply_delAdmin(pFile,n,c_class,temp1,start,start2, pwd)
{
	window.open("/Web.Admin/board/Reply_prc.jsp?start="+start+"&amp;start2="+start2+"&amp;prcfile="+pFile+"&amp;nid="+n+"&amp;c_class="+c_class+"&amp;n="+temp1+"&amp;p=del&amp;writer=aa&amp;pass="+pwd,"new","width=300px,height=200px,top=0px,left=0px");
}


function detail_photo()
{
	window.open("/detail_view/Detail_photo.jsp","new","width=820px,height=595px,top=0px,left=0px");
}

function detail_vr()
{
	window.open("/detail_view/Detail_vr.jsp","new","width=700px,height=507px,top=0px,left=0px");
}

function detail_play()
{
	window.open("/detail_view/Detail_play.jsp","new","width=370px,height=360px,top=0px,left=0px");
}

function detail_play_k()
{
	window.open("/multi/Detail_play_k.jsp","new","width=370px,height=360px,top=0px,left=0px");
}

function detail_play_e()
{
	window.open("/multi/Detail_play_e.jsp","new","width=370px,height=360px,top=0px,left=0px");
}

function detail_play_j()
{
	window.open("/multi/Detail_play_j.jsp","new","width=370px,height=360px,top=0px,left=0px");
}

function detail_play_c()
{
	window.open("/multi/Detail_play_c.jsp","new","width=370px,height=360px,top=0px,left=0px");
}

function detail_mp3()
{
	window.open("/detail_view/Detail_mp3.jsp","new","width=370px,height=142px,top=0px,left=0px");
}

function detail_map01_view()
{
	window.open("/multi/Detail_map01_view.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_map01_print()
{
	window.open("/multi/Detail_map01_print.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_map02_view()
{
	window.open("/multi/Detail_map02_view.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_map02_print()
{
	window.open("/multi/Detail_map02_print.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_map03_view()
{
	window.open("/multi/Detail_map03_view.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_map03_print()
{
	window.open("/multi/Detail_map03_print.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function zipcode(a,b,c,d)
{
	window.open("/include/zip.jsp?fn="+a+"&pn="+b+"&qn="+c+"&an="+d,"new","width=500px,height=300px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no");
}

function ej_shilla_map()
{
	window.open("/enjoy/Detail_ej_shilla_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_sesim_map()
{
	window.open("/enjoy/Detail_ej_sesim_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_haenuri_map()
{
	window.open("/enjoy/Detail_ej_haenuri_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}
function ej_menner_map()
{
	window.open("/enjoy/Detail_ej_menner_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}
function ej_mpark_map()
{
	window.open("/enjoy/Detail_ej_mpark_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_expo_map()
{
	window.open("/enjoy/Detail_ej_expo_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_dream_map()
{
	window.open("/enjoy/Detail_ej_dream_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_moon_map()
{
	window.open("/enjoy/Detail_ej_moon_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_trip_map()
{
	window.open("/enjoy/Detail_ej_trip_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_child_map()
{
	window.open("/enjoy/Detail_ej_child_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_honeymoon_map()
{
	window.open("/enjoy/Detail_ej_honeymoon_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_gjpark_map()
{
	window.open("/enjoy/Detail_ej_gjpark_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_7road_map()
{
	window.open("/enjoy/Detail_ej_7road_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_20road_map()
{
	window.open("/enjoy/Detail_ej_20road_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_4road_map()
{
	window.open("/enjoy/Detail_ej_4road_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_31road_map()
{
	window.open("/enjoy/Detail_ej_31road_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_35road_map()
{
	window.open("/enjoy/Detail_ej_35road_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_namsan_map()
{
	window.open("/enjoy/Detail_ej_namsan_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_fishing_map()
{
	window.open("/enjoy/Detail_ej_fishing_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_dansuck_map()
{
	window.open("/enjoy/Detail_ej_dansuck_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_sogum_map()
{
	window.open("/enjoy/Detail_ej_sogum_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_toham_map()
{
	window.open("/enjoy/Detail_ej_toham_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function nakdong_map()
{
	window.open("/enjoy/Detail_nakdong_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function homi_map()
{
	window.open("/enjoy/Detail_homi_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function samtai_map()
{
	window.open("/enjoy/Detail_samtai_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function sl_walk_course_66km()
{
	window.open("/enjoy/Detail_sl_walk_course_66km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function sl_walk_course_33km()
{
	window.open("/enjoy/Detail_sl_walk_course_33km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_pull()
{
	window.open("/enjoy/Detail_kj_marathon_course_pull.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_half()
{
	window.open("/enjoy/Detail_kj_marathon_course_half.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_10km()
{
	window.open("/enjoy/Detail_kj_marathon_course_10km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_5km()
{
	window.open("/enjoy/Detail_kj_marathon_course_5km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_jp10km()
{
	window.open("/enjoy/Detail_kj_marathon_course_jp10km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kj_marathon_course_jp5km()
{
	window.open("/enjoy/Detail_kj_marathon_course_jp5km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function da_marathon_course_pull()
{
	window.open("/enjoy/Detail_da_marathon_course_pull.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function da_marathon_course_half()
{
	window.open("/enjoy/Detail_da_marathon_course_half.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function da_marathon_course_10km()
{
	window.open("/enjoy/Detail_da_marathon_course_10km.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function eat_map()
{
	window.open("/eat/Detail_eat_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function et_ssam_map()
{
	window.open("/eat/Detail_et_ssam_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_haijang_map()
{
	window.open("/eat/Detail_et_haijang_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_kal_map()
{
	window.open("/eat/Detail_et_kal_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_sup_map()
{
	window.open("/eat/Detail_et_sup_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_buk_map()
{
	window.open("/eat/Detail_et_buk_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_bomun_map()
{
	window.open("/eat/Detail_et_bomun_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_san_map()
{
	window.open("/eat/Detail_et_san_map.jsp","new","width=750px,height=660px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function et_wd_map()
{
	window.open("/eat/Detail_et_wd_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_hwa_map()
{
	window.open("/eat/Detail_et_hwa_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_hwang_map()
{
	window.open("/eat/Detail_et_hwang_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_cal_map()
{
	window.open("/eat/Detail_et_cal_map.jsp","new","width=730px,height=660px,top=0px,left=0px");
}

function et_sun_map()
{
	window.open("/eat/Detail_et_sun_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function et_angang_map()
{
	window.open("/eat/Detail_et_angang_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_bus_inline(vStopid){
if(vStopid){
   window.open("/busroute/Detail_bus_inline.jsp?stop_id="+vStopid,"buspop","width=560px,height=630px,top=0px,left=0px,toolbar=no,directories=no,status=no");
} 
}

function detail_training01()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000013","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
} 

function detail_training02()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000002","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
} 

function detail_training03()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000004","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
} 

function detail_training04()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000012","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
} 

function detail_training05()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000003","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function detail_training06()
{
   window.open("http://wel.gyeongju.go.kr/Member/index.php?id=B0000011","new","width=780px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function kiosk_map()
{
	window.open("/help/Detail_kiosk_map.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
} 

function coupon_print()
{
	window.open("/coupon_stamp_print.jsp","new","width=700px,height=250px,top=0px,left=0px");
}

function stamp_map()
{
	window.open("/stamp_map.jsp","new","width=820px,height=595px,top=100px,left=100px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ucc_help01()
{
	window.open("http://ucc.gyeongju.go.kr/help_pop01.jsp","new","width=423px,height=310px,top=0px,left=0px");
}

function ucc_help02()
{
	window.open("http://ucc.gyeongju.go.kr/help_pop02.jsp","new","width=423px,height=365px,top=0px,left=0px");
}

function ucc_help03()
{
	window.open("http://ucc.gyeongju.go.kr/help_pop03.jsp","new","width=423px,height=525px,top=0px,left=0px");
}

function ej_bicycle_map06()
{
	window.open("/enjoy/Detail_ej_bicycle_map06.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map06s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=16","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map05()
{
	window.open("/enjoy/Detail_ej_bicycle_map05.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map05s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=15","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map04()
{
	window.open("/enjoy/Detail_ej_bicycle_map04.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map04s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=14","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map03()
{
	window.open("/enjoy/Detail_ej_bicycle_map03.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map03s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=13","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map02()
{
	window.open("/enjoy/Detail_ej_bicycle_map02.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map02s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=12","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map01()
{
	window.open("/enjoy/Detail_ej_bicycle_map01.jsp","new","width=820px,height=595px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_bicycle_map01s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=11","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function sl_walk_course_66kms()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=165","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function nakdong_course01s()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=166","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_namsan_course01()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=21","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_namsan_course02()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=22","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_namsan_course03()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=23","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}

function ej_namsan_course04()
{
	window.open("http://guide.gyeongju.go.kr/smartmap/GoogleEarth.jsp?id=24","new","width=900px,height=700px,top=0px,left=0px,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes");
}
/*새창끝*/





/*셀렉트새창시작*/
function changeURL(url) {
if (url != "") window.open(url);
}
/*셀렉트새창끝*/





/*게시판탭시작*/
function board(o) {
	images_on = new Array("/images/board_tab01.gif","/images/board_tab02.gif","/images/board_tab03.gif","/images/board_tab04.gif");
	images = new Array("board_tab01","board_tab02","board_tab03","board_tab04");

//alert("SRC::"+document.getElementById("board_tab").src);

	for(i=0;i < images.length;i++) {
		if(images[i]==o) {
			///document.board_tab1.src = images_on[i];
			document.getElementById("board_tab").src = images_on[i];
			eval(images[i]).style.display="block";
		}else {
			eval(images[i]).style.display="none";
		}
	}
}
/*게시판탭끝*/





/*인기검색어탭시작*/
function tag(o) {
	images_on = new Array("/images/tag_tab01.gif","/images/tag_tab02.gif");
	images = new Array("tag_tab01","tag_tab02");

//alert("SRC::"+document.getElementById("tag_tab").src);

	for(i=0;i < images.length;i++) {
		if(images[i]==o) {
			///document.tag_tab1.src = images_on[i];
			document.getElementById("tag_tab").src = images_on[i];
			eval(images[i]).style.display="block";
		}else {
			eval(images[i]).style.display="none";
		}
	}
}
/*인기검색어탭끝*/




/*지도펼침메뉴시작*/
function showCorrect_inner(a, pname) {
	var obj1 = document.getElementById("01");
	var obj2 = document.getElementById("02");
	var obj3 = document.getElementById("03");
	var obj4 = document.getElementById("04");
	if(pname=="List_70")
	{
		objArr = new Array(obj1, obj2, obj3, obj4);
	}else{
		var obj5 = document.getElementById("05");
		var obj6 = document.getElementById("06");
		objArr = new Array(obj1, obj2, obj3, obj4, obj5, obj6);
	}

	for(i=0; i<(objArr.length); i++)
	{
		if((i+1)==a) {
			objArr[i].style.display="block";
		}else {
			objArr[i].style.display="none";
		}
	}
}
/*지도펼침메뉴끝*/





/*서브왼쪽메뉴시작*/
function menuOver() {
	this.src = this.src.replace("off.gif", "on.gif");
	
}
function menuOut() {
	//this.src = this.src.replace("on.gif", "off.gif"); //수정:2009-06-12
	this.src = this.src.replace("off.gif", "on.gif");
}


function initSubmenu(depth1, depth2, depth3) {
	selectDepth1 = "menu" + depth1 + "-" + depth2;
	selectDepth2 = "menu" + depth1 + "-" + depth2 + "-" + depth3;
	
	
	if(eval(depth2)<=9) depth2 = "0"+depth2;
	if(eval(depth3)<=9) depth3 = "0"+depth3;
	var aNum=depth2+depth3;
	
	nav = document.getElementById("sub_leftmenu");
	menuEl = nav.getElementsByTagName("li");
	

	for(i = 0; i < menuEl.length; i++) {	   
	   
		//if (menuEl.item(i).id == selectDepth1 || menuEl.item(i).id == selectDepth2  ) { //수정:2009-06-12
		if ( menuEl.item(i).id == selectDepth1 || (menuEl.item(i).id).length<=8) {
			menuEl.item(i).getElementsByTagName("img").item(0).src = menuEl.item(i).getElementsByTagName("img").item(0).src.replace("off.gif", "on.gif");
		} else {
		   
   		   if ( menuEl.item(i).id.length > 8 && menuEl.item(i).id.substring(0,7) != selectDepth1) {
   				//menuEl.item(i).style.display = 'none'; //수정:2009-06-12
   		   }
			
		}
	}
	
}




function initSubmenu20090612(depth1, depth2, depth3) {
	selectDepth1 = "menu" + depth1 + "-" + depth2;
	selectDepth2 = "menu" + depth1 + "-" + depth2 + "-" + depth3;
	
	
	if(eval(depth2)<=9) depth2 = "0"+depth2;
	if(eval(depth3)<=9) depth3 = "0"+depth3;
	var aNum=depth2+depth3;
	
	nav = document.getElementById("sub_leftmenu");
	menuEl = nav.getElementsByTagName("li");
	

	for(i = 0; i < menuEl.length; i++) {	   
	   
		if (menuEl.item(i).id == selectDepth1 || menuEl.item(i).id == selectDepth2  ) { //수정:2009-06-12
			menuEl.item(i).getElementsByTagName("img").item(0).src = menuEl.item(i).getElementsByTagName("img").item(0).src.replace("off.gif", "on.gif");
		} else {
		   
   		   if ( menuEl.item(i).id.length > 8 && menuEl.item(i).id.substring(0,7) != selectDepth1) {
   				menuEl.item(i).style.display = 'none'; //수정:2009-06-12
   		   }
			
		}
	}
	
}
/*서브왼쪽메뉴끝*/



/*TOP 화면인쇄시작*/
function initTopPrint() {
	
	nav = document.getElementById("wrapBody");
	menuEl = nav.getElementsByTagName("div");
	
	for(i = 0; i < menuEl.length; i++) {
		if( (menuEl.item(i).id) != "sub_content")
		{
			//alert(menuEl.item(i).id);
			menuEl.item(i).style.visibility = 'hidden';
		}
	}
	
	document.getElementById('sub_bottom').style.visibility = 'hidden';
	document.getElementById('sub_content').style.visibility = 'visible';

	
}
/*TOP 화면인쇄끝*/



/*탑버튼시작*/
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;
	el.cy = el.sy = sy;
	el.sP=function(x,y){
		this.style.left=x+px;
		this.style.top=y+px;
	};

	el.floatIt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.getElementById("wrapBody").clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.getElementById("wrapBody").scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.getElementById("wrapBody").clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 40);
	}
	return el;
}
//사용법: 움직일 객체 다음에 아래코드 삽입
//JSFX_FloatDiv("wing", 880,143).floatIt();
/*탑버튼끝*/





/*VR시작*/
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
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; }
}
/*VR끝*/





/*동영상시작*/
function funcPlay(){
if( document.winplayer.PlayState != 2 ){
document.winplayer.Play();
//MM_swapImage('imgPlay1','','/{TEMPLATE}/Main/Images/Btn_play.gif',1);
//MM_swapImage('imgPAUSE','','/{TEMPLATE}/Main/Images/Btn_once.gif',1);
//MM_swapImage('imgSTOP','','/{TEMPLATE}/Main/Images/Btn_stop.gif',1);
}
}
function funcPause(){
if( document.winplayer.PlayState == 2 ){
document.winplayer.Pause();
//MM_swapImage('imgPlay1','','/{TEMPLATE}/Main/Images/Btn_play.gif',1);
//MM_swapImage('imgPAUSE','','/{TEMPLATE}/Main/Images/Btn_once.gif',1);
//MM_swapImage('imgSTOP','','/{TEMPLATE}/Main/Images/Btn_stop.gif',1);
}
}
function funcStop(){
//MM_swapImage('imgSTOP','','/{TEMPLATE}/Main/Images/Btn_stop.gif',1);
//MM_swapImage('imgPlay1','','/{TEMPLATE}/Main/Images/Btn_play.gif',1);
//MM_swapImage('imgPAUSE','','/{TEMPLATE}/Main/Images/Btn_once.gif',1);
document.winplayer.Stop();
}
/*동영상끝*/





/*입체검색시작*/
var selectedCode;

function resizingCart(height) {
	var obj = document.getElementById("tourCart");
	obj.height = height + "px";
	var obj_layer = document.getElementById("tourCartLayer");
	obj_layer.style.height = height + "px";
}

function addCartButton(n) {
	var obj = document.getElementById("tourCart");
	selectedCode = n;
	obj.addCart();
}

function getCodeNumber() {
	return selectedCode;
}
/*입체검색끝*/





/*쿠폰/스템프탭시작*/
function coupon_stamp(o) {
	images_on = new Array("/images/coupon_stamp_tab_01.gif","/images/coupon_stamp_tab_02.gif");
	images = new Array("coupon_stamp_tab01","coupon_stamp_tab02");

//alert("SRC::"+document.getElementById("coupon_stamp_tab").src);

	for(i=0;i < images.length;i++) {
		if(images[i]==o) {
			///document.coupon_stamp_tab.src = images_on[i];
			document.getElementById("coupon_stamp_tab").src = images_on[i];
			eval(images[i]).style.display="block";
		}else {
			eval(images[i]).style.display="none";
		}
	}
}
/*쿠폰/스템프탭끝*/





/*vm탭시작*/
function vm(o) {
	images_on = new Array("/images/vm_tab_01.gif","/images/vm_tab_02.gif","/images/vm_tab_03.gif","/images/vm_tab_04.gif","/images/vm_tab_05.gif");
	images = new Array("vm_tab01","vm_tab02","vm_tab03","vm_tab04","vm_tab05");

//alert("SRC::"+document.getElementById("vm_tab").src);

	for(i=0;i < images.length;i++) {
		if(images[i]==o) {
			///document.vm_tab.src = images_on[i];
			document.getElementById("vm_tab").src = images_on[i];
			eval(images[i]).style.display="block";
		}else {
			eval(images[i]).style.display="none";
		}
	}
}
/*vm탭끝*/



/*wap탭시작*/
function wap(o) {
	images_on = new Array("/images/wap_tab_01.gif","/images/wap_tab_02.gif","/images/wap_tab_03.gif","/images/wap_tab_04.gif","/images/wap_tab_05.gif","/images/wap_tab_06.gif");
	images = new Array("wap_tab01","wap_tab02","wap_tab03","wap_tab04","wap_tab05","wap_tab06");

//alert("SRC::"+document.getElementById("wap_tab").src);

	for(i=0;i < images.length;i++) {
		if(images[i]==o) {
			///document.wap_tab.src = images_on[i];
			document.getElementById("wap_tab").src = images_on[i];
			eval(images[i]).style.display="block";
		}else {
			eval(images[i]).style.display="none";
		}
	}
}
/*wap탭끝*/





/*게시판스크립트체크시작*/
function chk_wbtn(returl) {
	alert('글쓰기는 로그인 후 가능합니다.\n\n로그인 하시기 바랍니다.');
	location.href="/member/Login.jsp?retUrl="+returl;
}


function chk_viewbtn() {
	alert('[관광불편신고]의 내용보기는 로그인 후 확인이 가능합니다.\n\n로그인 하시기 바랍니다.');
	location.href="/member/Login.jsp";
}

function chk_viewbtn2(url) {
	alert('[신고처리여부]는 로그인 후 확인이 가능합니다.\n\n로그인 하시기 바랍니다.');
	location.href="/member/Login.jsp?retUrl="+url+"";
}


function chk_seek(frm) {
	if (!frm.ssubject.checked && !frm.swriter.checked && !frm.scontent.checked) {
		alert('검색값 체크...\n검색을 원하는 필드를 선택해 주세요');
		return false;
	}
	else {
		if (frm.seek.value == "") {
			alert('검색값 입력...\n검색을 원하는 단어를 입력 주세요');
			frm.seek.focus();
			return false;
		}
		return true;
	}
}


function chk_seek2(frm) {
		if (frm.seek.value == "") {
			alert('검색값 입력...\n검색을 원하는 단어를 입력 주세요');
			frm.seek.focus();
			return false;
		}
		return true;
}



function chk_seek3(frm) {
	if (!frm.ssubject.checked && !frm.swriter.checked ) {
		alert('검색값 체크...\n검색을 원하는 필드를 선택해 주세요');
		return false;
	}
	else {
		if (frm.seek.value == "") {
			alert('검색값 입력...\n검색을 원하는 단어를 입력 주세요');
			frm.seek.focus();
			return false;
		}
		return true;
	}
}




function goPage(p,subj,swriter,scontent,seek){
   location.href="?start="+p+"&amp;swriter="+swriter+"&amp;ssubject="+subj+"&amp;scontent="+scontent+"&amp;seek="+seek;
}

function goDetailPage(p,cid,tab,scontent,seek){
   location.href="?start="+p+"&amp;tab="+tab+"&amp;cid="+cid+"&amp;scontent="+scontent+"&amp;seek="+seek;
}

function goReplyPage(s,p,c_class,c_temp1,scontent,seek){
   location.href="?start="+s+"&amp;start2="+p+"&amp;c_class="+c_class+"&amp;n="+c_temp1+"&amp;scontent="+scontent+"&amp;seek="+seek;
}

function goPageMyList(p,subj,swriter,scontent,seek, cclass){
   location.href="?start="+p+"&amp;swriter="+swriter+"&amp;ssubject="+subj+"&amp;scontent="+scontent+"&amp;seek="+seek+"&amp;c="+cclass;
}

/*게시판스크립트체크끝*/


/* 회원정보 스크립트 시작 (2009-02-28) */
function goPageMem(p,subj,swriter,scontent,seek, goP){
   location.href="?start="+p+"&amp;swriter="+swriter+"&amp;ssubject="+subj+"&amp;scontent="+scontent+"&amp;seek="+escape(encodeURIComponent(seek))+"&amp;p="+goP;
}

function goPageReg(p,subj,swriter,scontent,seek){
   location.href="?start="+p+"&amp;swriter="+swriter+"&amp;ssubject="+subj+"&amp;scontent="+scontent+"&amp;seek="+escape(encodeURIComponent(seek));
}


function goPageClc(p,subj,swriter,scontent,seek, c_class){
   location.href="?start="+p+"&amp;c_class="+c_class+"&amp;swriter="+swriter+"&amp;ssubject="+subj+"&amp;scontent="+scontent+"&amp;seek="+escape(encodeURIComponent(seek));
}
/* 회원정보 스크립트 끝 */


/*클릭펼침메뉴시작*/
function course(id) {
var len = document.all.length;
   for(i = 0; i < len; i++) {
   var obj = document.all[i];
      if(obj.name == "course") {
      var tp = obj.style.display;
      if(obj.id == id) {
      if(tp == "none") obj.style.display = "";
      else obj.style.display = "none";
      } else {
      obj.style.display = "none";
      }
   }
   }
}
/*클릭펼침메뉴끝*/

/*화면확대축소시작 */
   
   function getCookieVal (offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return (document.cookie.substring(offset, endstr));
}



   document.onkeypress = getKey;
    
    function getKey(keyStroke) {
        isNetscape=(document.layers);
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
        which = String.fromCharCode(eventChooser).toLowerCase();
        which2 = eventChooser;

        var el=event.srcElement;

        if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))
        {            
            if(which == "+" )
                zoomInOut('zoom', 'in');
            else if(which == "-" )
                zoomInOut('zoom', 'out');
        }  
        
    }


   function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return getCookieVal (j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break;
    }
    return null;
}

   function SetCookie (name,value,expires,path,domain,secure) {
       document.cookie = name + "=" +  (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
   }

    var zoomRate = 10;
    var maxRate = 300;
    var minRate = 100;
    var divMenu_left;
    
    function zoomInOut(contentid, how) {

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{            
            document.all[contentid].style.zoom = '100%';             
            currZoom = '100%';
        }
        
        if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
            return; 
        }
        
        if (how == "in") {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%';
            
        }
        else {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%';
        }

        expires = new Date();
        expires.setTime(expires.getTime() + 24 * 60 * 60 * 365 * 5);
        SetCookie("zoomVal",document.all[contentid].style.zoom,expires,"/","","");
        //SetCookie("SeatLeft",STATICMENU.style.left,expires,"/","","");

        GoZoomLeft();    
    }

    function GoZoom(contentid){
        var rate = parseInt(GetCookie("zoomVal")) - 100;

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
        GoZoomLeft();        
    }

    function GoZoomMain(contentid){
        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
        
    }

    function GoZoomLeft(){
        var rate = 0 ;

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            rate = parseInt(GetCookie("zoomVal")) - 100;
        }
    }
    
    
    
    
    
    
var mFirst=[8,15];
var mFont;
var mZoom;
var cFont;
var moFirst, mClass;
var initFlag = false;
var zoomVal = 1;
function zoomview(dir) {
	//alert(document.body.style.zoom)
	//contents
	if (dir == "+") {
		if (zoomVal <= 2) {
			//alert(zoomVal)
			document.body.style.zoom = zoomVal + 0.1;
			//document.getElementById("rightTabMenu").style.zoom = zoomVal + 0.1;
			document.getElementById("mainContent").style.minWidth = document.getElementById("mainContent").clientWidth + (document.getElementById("mainContent").clientWidth * 0.1);
			zoomVal = zoomVal + 0.1;
			
		}
		else {
			document.body.style.zoom = 2;
		}
	}
	else if (dir == "-") {
		if (zoomVal > 1) {
			document.body.style.zoom = zoomVal - 0.1;
			//document.getElementById("rightTabMenu").style.zoom = zoomVal - 0.1;
			document.getElementById("mainContent").style.minWidth = document.getElementById("mainContent").clientWidth - (document.getElementById("mainContent").clientWidth * 0.1);
			zoomVal = zoomVal - 0.1;
		}
		else {
			document.body.style.zoom = 1;
			//document.getElementById("rightTabMenu").style.zoom = 1;
		}
	}
}
/*화면확대축소끝 */

function ShowFlash(url, width, height, wmode){
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.28.0" width="' + width + '" height="' + height + '" VIEWASTEXT style="z-index:0;">');
        document.write('<param name="allowScriptAccess" value="sameDomain" />');
        document.write('<param name="allowFullScreen" value="false" />');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="menu" value="false" />');
        document.write('<param name="quality" value="best" />');
		if (!wmode) {
			document.write('<param name="wmode" value="transparent" />');
		}
		else {
			document.write('<param name="wmode" value="window" />');
		}
        document.write('<param name="bgcolor" value="#ffffff" />');
        document.write('<embed src="' + url + '"menu="false" quality="best" wmode="opaque" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="mainImage" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('</object>');
}



function board_showHideLayers() { //v6.0
  var i,p,v,obj,args=board_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=='block')?'block':(v=='none')?'none':v; }
    obj.display=v; }
}




  function syncHeight(el) {
          el = typeof el == 'string' ? document.getElementById(el) : el;
          el.setExpression('height','contentWindow.document.body.scrollHeight+5');
  }


//새창

function OpenWindow(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0") ;
}

//아이프레임
function iframe_autoresize(arg) 

{
    arg.height = eval(arg.name+".document.body.scrollHeight");
}



