function img_f(name,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,28,0' width='"+width+"' height='"+height+"'>");;
document.write("<param name=movie value='../flash/main/"+name+"'><param name='quality' value='high'><param name='wmode' value='transparent'>");
document.write("<embed src='../flash/main/"+name+"' wmode='transparent' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
};; //¸ÞÀÎÆäÀÌÁö¿¡¼­ Flash Ãâ·Â

function img_mf(name,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,28,0' width='"+width+"' height='"+height+"'>");;
document.write("<param name=movie value='../flash/"+name+"'><param name='quality' value='high'><param name='wmode' value='transparent'>");
document.write("<embed src='../flash/"+name+"' wmode='transparent' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
}; // Flash Ãâ·Â

function img_if(name,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,28,0' width='"+width+"' height='"+height+"'>");;
document.write("<param name=movie value='flash/"+name+"'><param name='quality' value='high'><param name='wmode' value='transparent'>");
document.write("<embed src='flash/"+name+"' wmode='transparent' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
}; // index¿¡¼­ Flash Ãâ·Â


function OPWD(name,tt,otl,opt,opw,oph,scr,res) {
window.open(name, tt, "left="+otl+", top="+opt+", width="+opw+", height="+oph+", menubar=no, statusbar=no, scrollbars="+scr+", directories=no, toolbar=no, location=no, resizable="+res);
};//»õÃ¢ ¶ç¿ì±â

function  opSite() {
		window.open('fs.html' , '' , 'width='+(screen.width)+',height='+(screen.height)+',left=0,top=0,fullscreen=1,channelmode=1,location=0,menubar=0,scrollbars=no,status=0,toolbar=0,resizable=no"');
}

// ¸Þ´º ³×ÀÌ¹Ö ±ÔÄ¢
 

	  function linkS11(){ 
      self.location = "w_invite.html";
      }
	  function linkS12(){ 
      self.location = "w_landscape.html";
      }
	  //sub1
	  function linkS21(){ 
      self.location = "r_preview.html";
      }
	  function linkS22(){ 
      self.location = "r_stone.html";
      }
	  function linkS23(){ 
      self.location = "r_wood.html";
      }
	  function linkS24(){ 
      self.location = "r_sufer.html";
      }
	  function linkS25(){ 
      self.location = "r_queen.html";
      }
	
	  
	  //sub2
	  
	  function linkS32(){ 
      self.location = "s_babecue.html";
      }
	  function linkS33(){ 
      self.location = "s_pickup.html";
      }
	  function linkS34(){ 
      self.location = "s_breakfast.html";
      }
	  
	  
	  //sub3

	  function linkS41(){ 
      self.location = "e_cafe.html";
      }
	   function linkS42(){ 
      self.location = "e_babecue.html";
      }
	   function linkS43(){ 
      self.location = "e_garden.html";
      }
	   function linkS44(){ 
      self.location = "e_field.html";
      }
	  
	  
	  //sub4
	  function linkS51(){ 
      self.location = "t_koji.html";
      }
	  function linkS52(){ 
      self.location = "t_sungsan.html";
      }
	  function linkS53(){ 
      self.location = "t_wood.html";
      }
	  function linkS54(){ 
      self.location = "t_song.html";
      }
	  function linkS55(){ 
      self.location = "t_village.html";
      }
	  
	  
	  
	  //sub5
	  function linkS61(){ 
      self.location = "r_guid.html";
      }
	  function linkS62(){ 
      self.location = "r_fee.html";
      }
	  
	  
	  
	  //sub6
	  function linkS71(){ 
      self.location = "d_car.html";
      }
	  function linkS72(){ 
      self.location = "d_bus.html";
      }
	  function linkS73(){ 
      self.location = "d_map.html";
      }
	  function linkS74(){ 
      self.location = "d_zoommap.html";
      }
	  //sub7

	  
	  
	  
	  
/* ·¹ÀÌ¾î ÆË¾÷ */
function popupLayer(s,w,h){
	if (!w) w = 800;
	if (!h) h = 500;

	var pixelBorder = 3;
	var titleHeight = 0;
	w += pixelBorder * 2;
	h += pixelBorder * 3 + titleHeight;

	var bodyW = document.body.clientWidth;
	var bodyH = document.body.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;

	hiddenSelectBox('hidden');

/* ¹é±×¶ó¿îµå ·¹ÀÌ¾î */
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		zIndex =2;
		left = 0;
		top = 0;
		height = document.body.scrollHeight;
		width= document.body.clientWidth;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=55)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

/* ³»¿ë */
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		zIndex = 3;
		left = posX + document.body.scrollLeft;
		top = posY + document.body.scrollTop;
		width = w;
		height = h;
		backgroundColor = "#000000";
		border = "5px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

/* ´Ý±â¹öÆ° ·¹ÀÌ¾î */
	var bottom = document.createElement("div");
	with (bottom.style){
		position = "absolute";
		zIndex = 2;
		width = w - pixelBorder * 2+7;
		height = titleHeight + 20;
		left = 0;
		top =0;
		padding = "0px 0 0px 0";
		textAlign = "right";
		backgroundColor = "#000000";
		color = "#000000";
	}
	
	bottom.innerHTML = "<a href='javascript:closeLayer()'><img src='../img/gall_close.gif' border='0'/></a>";
	obj.appendChild(bottom);

/* ¾ÆÀÌÇÁ·¹ÀÓ */
	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w - 6;
		height = h - pixelBorder * 2 - titleHeight+8;
		border = "5 solid #000000";
		backgroundColor ="#000000";
		allowTransparency= true 

	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	ifrm.className = "scroll";
	obj.appendChild(ifrm);	
}


function _ID(obj){
	return document.getElementById(obj)
}

function hiddenSelectBox(mode){
	var obj = document.getElementsByTagName('select');
	for (i=0;i<obj.length;i++){
		obj[i].style.visibility = mode;
	}
}

function closeLayer(){
	hiddenSelectBox('visible');
	_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
	_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
}



//±³Åë
function traffic(){
	popupLayer("traffic.html", 800, 520);
}

//½Ç½Ã°£¿¹¾à
function reservation() {
	popupLayer("http://www.pentour.com/real/index.php?pid=355", 800, 520);
	//var window_left = (screen.width-750)/2;
	//var window_top = (screen.height-580)/2;
	//window.open('http://artinheaven.staywith.net/m_member/', 'cat_win', 'width=' + 750 + ', height=' + 580 + ', status=no scrollbars=yes, top=' + window_top + ',left=' + window_left + ',scrollbars=yes');
}

//°øÁö»çÇ×
function notice(){
	popupLayer("s8_notice.html", 800, 520);
}

//Ãß¾ï
function script(){
	popupLayer("s8_review.html", 800, 520);
}

//ÀÚÀ¯
function board(){
	popupLayer("s8_board.html", 800, 520);
}

//Æ÷Åä
function gallery(){
	popupLayer("s8_photo.html", 800, 520);
}

//faq
function faq(){
	popupLayer("s8_faq.html", 800, 520);
}

	  
	  



