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='s/"+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 vrpu(name,tt,otl,opt,opw,oph,scr,res) {
window.open(name, tt, "left="+((screen.width/2)-(1000/2))+", top="+((screen.height/2)-(500/2))+", width="+opw+", height="+oph+", menubar=no, statusbar=no, scrollbars="+scr+", directories=no, toolbar=no, location=no, resizable="+res+"");
};//»õÃ¢ ¶ç¿ì±â

function opSite() {
		window.open('html/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 reSizeWin(nWidth,nHeight){
	this.focus();
	this.resizeTo((eval(nWidth)+10), (eval(nHeight)+28));
}

function PlayBgm()
{
	top.frames[0].WMPlay.Play();
}

// BGM Player Stop
function StopBgm()
{
	top.frames[0].WMPlay.Stop();
}
//music

/* ·¹ÀÌ¾î ÆË¾÷ */
function iframeLayer(s,w,h){
	if (!w) w = 1000;
	if (!h) h = 1000;

	var pixelBorder = 3;
	var titleHeight = 10;
	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=85)";
		opacity = "0.5";
	}
	obj.id = "objiframeLayerBg";
	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";
		padding = "10px 0 0px 0";
	}
	obj.id = "objiframeLayer";
	document.body.appendChild(obj);

/* ´Ý±â¹öÆ° ·¹ÀÌ¾î */
	var bottom = document.createElement("div");
	with (bottom.style){
		position = "absolute";
		zIndex = 2;
		width = w - pixelBorder * 2+7;
		height = titleHeight + 10;
		left = 0;
		top =0;
		padding = "0px 0 0px 0";
		textAlign = "right";
		backgroundColor = "#000000";
		color = "#000000";
	}
	
	bottom.innerHTML = "<a href='javascript:closeLayer()' onFocus='blur();'><img src='../flash/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('objiframeLayer').parentNode.removeChild( _ID('objiframeLayer') );
	_ID('objiframeLayerBg').parentNode.removeChild( _ID('objiframeLayerBg') );
}



//µ¥ÀÌÁö
/*
function daisy(){
	iframeLayer("../VR/daisy.html", 1000, 500);
}*/

function daisy(){
vrpu('../VR/daisy.html','','','',1000,500,'','')
}

//¶óº¥´Ù
function lavender(){
	vrpu("../VR/lavender.html",'','','',1000,500,'','');
}

//¶óÀÓ
function lime(){
	vrpu("../VR/lime.html",'','','',1000,500,'','');
}

//·ÎÁî¸¶¸®
function rosemary(){
	vrpu("../VR/rosemary.html",'','','',1000,500,'','');
}

//¸á·Î¿ì
function mallows(){
	vrpu("../VR/mallows.html",'','','',1000,500,'','');
}

//¼¼ÀÌÁö
function sage(){
	vrpu("../VR/sage.html",'','','',1000,500,'','');
}

//ÇÏºñ½ºÄ¿½º
function hibiscus(){
	vrpu("../VR/hibiscus.html",'','','',1000,500,'','');
}

//ÀÚ½º¹Î
function jasmine(){
	vrpu("../VR/jasmine.html",'','','',1000,500,'','');
}

//¼ö¿µÀå
function pool(){
	vrpu("../VR/pool.html",'','','',1000,500,'','');
}

//¼ö¿µÀå
function pool_1(){
	vrpu("../VR/pool_1.html",'','','',840,500,'','');
}

//¿Ü°ü1
function exterior1(){
	vrpu("../VR/exterior1.html",'','','',1000,500,'','');
}


//¿Ü°ü2
function exterior2(){
	vrpu("../VR/exterior2.html",'','','',1000,500,'','');
}

//¿Ü°ü3
function exterior3(){
	vrpu("../VR/exterior3.html",'','','',1000,500,'','');
}

//¿Ü°ü4
function exterior4(){
	vrpu("../VR/exterior4.html",'','','',1000,500,'','');
}

//Æ®·¹ºñÄ«Æä
function cafe(){
	vrpu("../VR/cafe.html",'','','',1000,500,'','');
}





// ¸Þ´º ³×ÀÌ¹Ö ±ÔÄ¢
 

	  function linkS11(){ 
      self.location = "s1_invitation.html";
      }
	  function linkS12(){ 
      self.location = "s1_preview.html";
      }
	  //sub1
	  

	  function linkS21(){ 
      self.location = "s2_preview.html";
      }
	  function linkS22(){ 
      self.location = "s2_room1.html";
      }
	  function linkS23(){ 
      self.location = "s2_room2.html";
      }
	  function linkS24(){ 
      self.location = "s2_room3.html";
      }
	  function linkS25(){ 
      self.location = "s2_room4.html";
      }
	  function linkS26(){ 
      self.location = "s2_room5.html";
      }
	  function linkS27(){ 
      self.location = "s2_room6.html";
      }
	  function linkS28(){ 
      self.location = "s2_room7.html";
      }
	  function linkS29(){ 
      self.location = "s2_room8.html";
      }
	  //sub2
	  	  
	 
	  function linkS31(){ 
      self.location = "s3_spa.html";
      }
	  //sub3

	  
	  function linkS41(){ 
      self.location = "s4_cafe.html";
      }
	  function linkS42(){ 
      self.location = "s4_barbecue.html";
      }
	  function linkS43(){ 
      self.location = "s4_garden.html";
      }
	  function linkS44(){ 
      self.location = "s4_pool.html";
      }
	  function linkS45(){ 
      self.location = "s4_snow.html";
      }
	  function linkS46(){ 
      self.location = "s4_statue.html";
      }
	  function linkS47(){ 
      self.location = "s4_kgarden.html";
      }
	  
	  
	  //sub4
	  
	  function linkS51(){ 
      self.location = "s5_service.html";
      }
	  //sub5
	  
	  function linkS61(){
	  self.location = "s6_travel.html";
	  }
	  
	  //sub6
	  	  

	  function linkS71(){
	  self.location = "s7_car.html";
	  }
	  function linkS72(){
	  self.location = "s7_map.html";
	  }
	  //sub7
	  
	  function linkS81(){
	  self.location = "s8_fee.html";
	  }
	  function linkS82(){
	  self.location = "s8_guide.html";
	  }
	  function linkS83(){
	  self.location = "s8_reserve.html";
	  }
	  //sub8
	  
	  function linkS91(){
	  self.location = "s9_notice.html";
	  }
	  function linkS92(){
	  self.location = "s9_story.html";
	  }
	  function linkS93(){
	  self.location = "s9_faq.html";
	  }
	  function linkS94(){
	  self.location = "s9_gallery.html";
	  }
	  //sub9
	  
	 
	  



function bookmark(){
	window.external.AddFavorite('http://www.tivoliville.com', 'Æ÷ÃµÀÇ Ù¥Ê« ; Æ¼º¼¸®ºô')
}
