/* ¸µÅ© Á¡¼± Á¦°Å */

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
//document.onfocusin=bluring;




// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå) 
function flashWrite(url,w,h,id,bg,vars,win){ 

 // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ 
 var flashStr= 
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+ 
 "<param name='allowScriptAccess' value='always' />"+ 
 "<param name='movie' value='"+url+"' />"+ 
 "<param name='FlashVars' value='"+vars+"' />"+ 
 "<param name='wmode' value='"+win+"' />"+ 
 "<param name='wmode' value='opaque'>"+  
 "<param name='menu' value='false' />"+ 
 "<param name='quality' value='high' />"+ 
 "<param name='bgcolor' value='"+bg+"' />"+ 
 "<param name='wmode' value='transparent'>"+
 "<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' value='opaque' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+ 
 "</object>"; 

 // ÇÃ·¡½Ã ÄÚµå Ãâ·Â 
 document.writeln(flashStr); 

} 
//µ¿¿µ»ó 
function aviPlay(src,w,h) { 
document.writeln('<embed src="'+src+'" width='+w+' height='+h+' style="FILTER:xray">') 
} 

//¿¹½Ã <script>flashWrite('./image/swf/sub1.swf','100%','300','sub1','#ffffff','','transparent')</script>



//ÆË¾÷ ÄÚµå ¸µÅ©½Ã ¿¹½Ã href="javascript:new_window('win', 'ÆÄÀÏ¸í', ÁÂ, »ó, °¡·Î, ¼¼·Î, 0, 0, 0, 0, 0);"

function newWin(page,name,w,h,scroll) { 

	LeftPosition	= (screen.width)?(screen.width-w)/2:100;
	TopPosition		= (screen.height)?(screen.height-h)/2:100;

	settings		= 'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=no'; 

	mywin = window.open(page,name,settings); 
	mywin.self.focus();

} 

//ÀÌ¹ÌÁö°æ·Î
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 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 MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenu2(targ,selObj,restore){ //v3.0
window.open(selObj.options[selObj.selectedIndex].value,"");
}


// ¸ÞÀÎ ÃÖ±Ù±Û °ü·Ã
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; }
}

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_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_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 popupLayer(s,w,h){
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 6;
	var titleHeight = 6;
	w += pixelBorder * 2;
	h += pixelBorder * 2 + 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 =100;
		left = 0;
		top = 0;
		height = document.body.scrollHeight;
		width= document.body.clientWidth;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=65)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

/* ³»¿ë */
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		zIndex = 101;
		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;
		left = 0;
		top =0;
		padding = "3px 0 2px 0";
		textAlign = "right";
		backgroundColor = "#000000";
		color = "#000000";
	}
	bottom.innerHTML = "<a href='javascript:closeLayer()'><img src='/new_images/gall_close.gif' border='0'/></a>&nbsp;&nbsp;&nbsp;";
	obj.appendChild(bottom);

/* ¾ÆÀÌÇÁ·¹ÀÓ */
	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w - 6;
		height = h - pixelBorder * 2 - titleHeight+8;
		border = "0 solid #000000";
	}
	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 gallview(){
	popupLayer("/new_contents/gallery.htm", 980, 670);
}


//------------------------------------------------------------------------------------------------------------------------------- ÇÃ·¡½Ã ¸µÅ©

// 01-¸ÞÀÎ
function bm00(){location.href="http://www.happy700stay.com/";}
function sm0001(){location.href="http://www.happy700stay.com/";} // ¸ÞÀÎ

// 01-ÆòÃ¢Ã¼Çè¿©Çà
function bm01(){location.href="http://www.happy700stay.com/Page_1.php";}
function sm0101(){location.href="http://www.happy700stay.com/Page_1.php";} // ÆòÃ¢¼Ò°³
function sm0102(){location.href="http://www.happy700stay.com/Page_1.php?md=2";} // Ã¼Çè¿©Çà¼Ò°³
function sm0103(){location.href="http://www.happy700stay.com/Page_1.php?md=3";} // ÆòÃ¢±³ÅëÁ¤º¸
function sm0104(){location.href="http://www.happy700stay.com/Page_1.php?md=4";} // Áöµµ·Îº¸´Â ÆòÃ¢
function sm0105(){location.href="http://weather.naver.com/?m=subsi&fct=11D10503";} // ÆòÃ¢³¯¾¾Á¤º¸
function sm0106(){location.href="http://www.happy700stay.com/Page_1.php?md=6";} // ÆòÃ¢È«º¸µ¿¿µ»ó

// 02-ÆòÃ¢º£½ºÆ®Ææ¼Ç100¼±
function bm02(){location.href="http://www.happy700stay.com/Page_2.php";}
function sm0201(){location.href="http://www.happy700stay.com/Page_2.php";} // Áö¿ªº°Ææ¼Ç¾È³»
function sm0202(){location.href="http://www.happy700stay.com/Page_2.php?tab=theme";} // Å×¸¶°¡ÀÖ´ÂÇØÇÇ½ºÅ×ÀÌ
function sm0203(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=1";} // ¸Þ¹Ð²É¸¶À»Ææ¼Ç
function sm0204(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=2";} // ¿À´ë»ê¸¶À»Ææ¼Ç
function sm0205(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=3";} // ±Ý´ç°è°î¸¶À»Ææ¼Ç
function sm0206(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=4";} // ÆòÃ¢°­¸¶À»Ææ¼Ç
function sm0207(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=5";} // ¹é´ö»ê¸¶À»Ææ¼Ç
function sm0208(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=6";} // µ¿°­¸¶À»Ææ¼Ç
function sm0209(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=7";} // °è¹æ»ê¸¶À»Ææ¼Ç
function sm0210(){location.href="http://www.happy700stay.com/Page_2.php?tab=local&ct=8";} // ´ë°ü·É¸¶À»Ææ¼Ç

// 03-Ã¼Çè¸¶À»
function bm03(){location.href="http://www.happy700stay.com/Page_3.php";}
function sm0301(){location.href="http://www.happy700stay.com/detail_Vill.php?number=9";} // ±¤Ãµ¸¶À»
function sm0302(){location.href="http://www.happy700stay.com/detail_Vill.php?number=10";} // ´«²É¸¶À»
function sm0303(){location.href="http://www.happy700stay.com/detail_Vill.php?number=11";} // ¹Ù¶÷¸¶À»ÀÇ¾ßÁö
function sm0304(){location.href="http://www.happy700stay.com/detail_Vill.php?number=12";} // º´³»¸®¸¶À»
function sm0305(){location.href="http://www.happy700stay.com/detail_Vill.php?number=13";} // »êÃ¤À¸¶ä¸¶À»
function sm0306(){location.href="http://www.happy700stay.com/detail_Vill.php?number=14";} // ¼ö·¹¸¶À»
function sm0307(){location.href="http://www.happy700stay.com/detail_Vill.php?number=15";} // ¼ö¸²´ë¸¶À»
function sm0308(){location.href="http://www.happy700stay.com/detail_Vill.php?number=18";} // Å½°ñ¸¶À»
function sm0309(){location.href="http://www.happy700stay.com/detail_Vill.php?number=19";} // È²Åä±¸µé¸¶À»
function sm0310(){location.href="http://www.happy700stay.com/detail_Vill.php?number=17";} // ¾î¸§Ä¡¸¶À»
function sm0316(){location.href="http://www.happy700stay.com/detail_Vill.php?number=16";} // ¾àÃÊ¸¶À»
function sm0320(){location.href="http://www.happy700stay.com/detail_Vill.php?number=129";} // À£ÄÄÅõµ¿¸·°ñ
function sm0321(){location.href="http://www.happy700stay.com/detail_Vill.php?number=134";} // ¹öµ¢¸¶À»
function sm0322(){location.href="http://www.happy700stay.com/detail_Vill.php?number=135";} // ºÀÈ²´ë¸¶À»
function sm0323(){location.href="http://www.happy700stay.com/detail_Vill.php?number=143";} // ¼öµ¿¸¶À»



// 04-·¹Æ÷Ã÷
function bm04(){location.href="http://www.happy700stay.com/Page_4.php";}
function sm0401(){location.href="http://www.happy700stay.com/Page_4.php";} // ·¹Æ÷Ã÷
function sm0402(){location.href="http://www.happy700stay.com/Page_4.php?md=1";} // ·¡ÇÁÆÃ
function sm0403(){location.href="http://www.happy700stay.com/Page_4.php?md=2";} // »ê¾Ç¿ÀÅä¹ÙÀÌ
function sm0404(){location.href="http://www.happy700stay.com/Page_4.php?md=3";} // ÆÐ·¯±Û¶óÀÌµù
function sm0405(){location.href="http://www.happy700stay.com/Page_4.php?md=4";} // ¸»¸ñÀå
function sm0406(){location.href="http://www.happy700stay.com/Page_4.php?md=5";} // °³½ä¸Å
function sm0407(){location.href="http://www.happy700stay.com/Page_4.php?md=6";} // ¼­¹ÙÀÌ¹ú

// 05-°ü±¤³ó¿ø
function bm05(){location.href="http://www.happy700stay.com/Page_5.php";}
function sm0501(){location.href="http://www.happy700stay.com/Page_5.php";} // °ü±¤³ó¿ø


// 06-ÆÐÅ°Áö ¿©Çà
function bm06(){location.href="http://www.happy700stay.com/Page_6.php";}
function sm0601(){location.href="http://www.happy700stay.com/Page_6.php";} // ÆÐÅ°Áö ¿©Çà

// 07-ÁÖº¯¿©ÇàÁö
function bm07(){location.href="http://www.happy700stay.com/Page_7.php";}
function sm0701(){location.href="http://www.happy700stay.com/Page_7.php";} // °ü±¤Áö
function sm0702(){location.href="http://www.happy700stay.com/Page_7.php?md=2";} // ¸Ô°Å¸®/¸ÀÁý
function sm0703(){location.href="http://www.happy700stay.com/Page_7.php?md=3&sub=1";} // ÃàÁ¦
function sm0704(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_tourinfo";} // ÄÚ½ºº°¿©ÇàÁ¤º¸


// Ä¿¹Â´ÏÆ¼
function bm08(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_notice";} // °øÁö»çÇ×
function sm0801(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_notice";} // °øÁö»çÇ×
function sm0802(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_customer";} // °í°´°Ô½ÃÆÇ
function sm0803(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_after";} // ¿©ÇàÈÄ±â
function sm0804(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_photo";} // ¿©Çà¾Ù¹ü
function sm0805(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_tip2";} // ¿©Çà¾ËÂ¥ÆÁ
function sm0806(){location.href="http://www.happy700stay.com/bbs_list.php?tb=bbs_member";} // È¸¿øÀÚ·á½Ç


