	//ÀÌº¥Æ® ÆË¾÷¶ç¿ì±â.
	function event_showPopup()
	{ 
		popwin = window.open('/popup/20081010/popup.html','tourPopup_20090504','left=100, top=100, width=300, height=370');
       //qjatn07 2005-11-29 - ¼³¹®Á¶»çÆË¾÷
    	//popwin = window.open('/event/200512/poll/popup_main/popup.html','tourPopup_200512','left=100, top=100, width=487, height=480');
	}

	function onlinehelp_showPopup()
	{
	   	popwin = window.open('/tourinfo/tourinfoframe.jsp','tourinfo','width=640, height=570, scrollbars=yes');
	}
	
    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 getCookieVal(offset)
	{
		var endstr = document.cookie.indexOf(";", offset);
		if(endstr == -1)
			endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}


	//Áö¿ªÀÌµ¿
	var srch_url = "/servlet/common/InvilServlet?module=srch_new&action=srch_exp";
	function changeRegion(rcode){
		document.searchForm.action = srch_url;
		document.searchForm.currentpage.value = "0";
		document.searchForm.rcode.value = rcode;
		document.searchForm.vcode.value = "";
		document.searchForm.method = "post";
		document.searchForm.submit();
	}
	
	//ÄÜÅÙÃ÷º¸±â.
	function conView(con_no,tour_kind){
		if(tour_kind == 'E'){
			url = 'http://tour.invil.com/experience/PtDetlretrieveExp.jsp';
		}else if(tour_kind == 'W'){
			url = 'http://tour.invil.com/farm/PtDetlretrieveFarm.jsp';
		}else if(tour_kind == 'T'){
			url = 'http://tour.invil.com/travel/PtDetlretrieveTravel.jsp';
		}else if(tour_kind == 'L'){
			url = 'http://tour.invil.com/lodge/PtDetlretrieveLodge.jsp';
		}
		document.location.href = url+"?con_no="+con_no;
	}
	
	//°Ô½Ã±Ûº¸±â.
	function goBoardDetail(board_no, morgue_no, cls){
    	document.boardForm.morgue_no.value = morgue_no;
    	document.boardForm.board_no.value = board_no;
    	document.boardForm.board_code.value = board_no;
    	    	
		if(cls == 'after'){
	    	document.boardForm.action = "/board/afternote/PtDetlretrieveAfternote.jsp?depth3=2";
		} else if(cls == 'notice'){
			document.boardForm.action = "/servlet/common/InvilServlet?module=notice&action=detail&depth3=1";
		} else {
			document.boardForm.action = "#";
		}
		document.boardForm.submit();
	}
	
	//¼­ºê¸Þ´º°¡±â.
	function goSubMain(tour_kind){
		if(tour_kind == 'E'){
			url = 'http://tour.invil.com/experience/';
		}else if(tour_kind == 'W'){
			url = 'http://tour.invil.com/farm/';
		}else if(tour_kind == 'T'){
			url = 'http://tour.invil.com/travel/';
		}else if(tour_kind == 'L'){
			url = 'http://tour.invil.com/lodge/';
		}
		document.location.href = url;
	}
	
	
	function searchDetail(str) {
			document.getElementById("C1-search1").style.display = "none";
			document.getElementById("C1-search2").style.display = "none";
		if(str == "detail") {
			document.getElementById("C1-search2").style.display = "block";
		} else {
			document.getElementById("C1-search1").style.display = "block";
		}
	}
	
	function uf_sendMessage(receiver,mode){	
		var ax_root ="http://memo.invil.org";
		if(!receiver) receiver="";
		if(!mode) mode="";
		var height="410";
		if(mode=="manager") height="450";	
		window.open(ax_root+"/send_message.jsp?receiver="+receiver+"&mode="+mode,"","width=500,height=" + height);	
	}
	
	function displayBlock(blockId, imgId){

	
		var noneId = "";
		var noneImgId = "";
		for(var i=0; i<9; i++) {
			noneId = "C3-themetypeR0"+(i+1);
			noneImgId = "themetypeR0"+(i+1);
			document.getElementById(noneId).style.display = "none";	
			document.getElementById(noneImgId).src = "/images/main_2010/c3_thty_menu0"+(i+1)+".gif";				
		}
		document.getElementById(blockId).style.display = "block";		
		document.getElementById(imgId).src = "/images/main_2010/c3_thty_menu0"+imgId.split("themetypeR0")[1]+"_on.gif";				
	
	}
