document.title="¿Õ¼Ò³ª¹«ÁýÆæ¼Ç";


function showAlert(){
		window.alert("ÁØºñÁßÀÔ´Ï´Ù");
	}

function printOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("print.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	

function timeOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("time.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
	function reserOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("http://reservation.gpension.kr/reser/reservation.php?pension_id=king","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
	
	
	function trafficOpen2(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("time2.php","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
	function mainOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("main.html","","scrollbars=yes,resizable=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	

	
		 
function fullopen(url){
newwin=window.open("","","scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes")
if (document.all) {
newwin.moveTo(0,0)
newwin.resizeTo(screen.width,screen.height)
}
newwin.location = url
}
								 
                                
								
								if (window.Event) // ³Ý½ºÄÉÀÌÇÁ¿¡¼­¸¸ ´ë¹®ÀÚ E.
								document.captureEvents(Event.MOUSEUP); // mouse up ÀÌº¥Æ®¸¦ ÀâÀ½
								
								function nocontextmenu() // IE4¿¡¼­¸¸ Àû¿ë, ´Ù¸¥ ºê¶ó¿ìÀú´Â ¹«½Ã
								{
								event.cancelBubble = true
								event.returnValue = false;
								
								return false;
								}
								
								function norightclick(e) // ´Ù¸¥ ¸ðµç ºê¶ó¿ìÀú¿¡¼­ ÀÛµ¿
								{
								if (window.Event) // ´Ù½Ã, IE ¶Ç´Â NAV ?
								{
								if (e.which == 2 || e.which == 3)
								return false;
								}
								else
								if (event.button == 2 || event.button == 3)
								{
								event.cancelBubble = true
								event.returnValue = false;
								return false;
								}
								
								}
								
								document.oncontextmenu = nocontextmenu; // IE5+ ¿ë
								document.onmousedown = norightclick; // ´Ù¸¥ ºê¶ó¿ìÀú ¿ë
								
								
								
																

function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

function OpenWindow(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=0") ;
}



// Áß¾ÓÆË¾÷Ã¢¶ç¿ì±â
var UserBrowserWidth = window.screen.width ; //ÁÂÇ¥¼³Á¤
var UserBrowserHeight = window.screen.height ; //ÁÂÇ¥¼³Á¤
var OpenWinVal ;
function openWindow(filename,w,h,name,center,scrollbars)
{
  var StrOption ;
	
  StrOption  = "width=" + w + ",height=" + h + ",";
  StrOption += "toolbar=no,location=no,directories=no,status=no,";
  StrOption += "menubar=no,scrollbars=" + scrollbars + ",resizable=no";
		
  //if(OpenWinVal != null && !OpenWinVal.closed)
    //OpenWinVal.close() ;
  OpenWinVal = window.open(filename, name, StrOption) ;
  if(center == "yes") OpenWinVal.moveTo((UserBrowserWidth/2) - (w/2),(UserBrowserHeight/2) - (h/2)) ;
  return ;
}

//javascript: openWindow('link','640','600','r001','yes','no')

function flash(url, width, height, allowDomain) {
	if (allowDomain = "") {allowDomain = false;}
	try {document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
		document.write('<param name="movie" value="' + url + '">');
	if (allowDomain = true) {
		document.write('<param name="allowScriptAccess" allowFullScreen="true" value="always"/>');}
		document.write('<param name="quality" value="high"><param name="wmode" value="transparent"><PARAM NAME="menu" VALUE="false">');
		document.write('<embed src="' + url + '" quality="high" allowFullScreen="true" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" menu="false"></embed>');
		document.write('</object>');} catch(E){}
}



function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(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 bookMark(){
window.external.AddFavorite('http://www.happytoya.com/','¡Å  ³²ÀÌ¼¶ Åä¾ßÆæ¼Ç  ¡Å')
}*/

function bookMark($url,$name){
window.external.AddFavorite($url,$name)
}

timer = null; // Å¸ÀÌ¸Ó
sizeMinH = 0; //³ôÀÌ ÃÖ¼ÒÄ¡
sizeMaxH = 0; //³ôÀÌ ÃÖ´ëÄ¡ °ª.
sizeMinW =0;
speed = 50;   // °»½Å¼Óµµ
 
function setSize(minH,maxH,minW) {
 sizeMinH = minH; //³ôÀÌ ÃÖ¼ÒÄ¡
 sizeMaxH = maxH; //³ôÀÌ ÃÖ´ëÄ¡ °ª.
 sizeMinW = minW; //³ÐÀÌ ÃÖ¼Ò°ª.
 myObj = document.getElementById("main"); // °³Ã¼ÀÇ ±¸¼º ¿ä¼Ò °¡Á®¿È
 stageHeight = parseInt(document.body.clientHeight);
 stageWidth = parseInt(document.body.clientWidth);
// alert(stageHeight);

 // ³ôÀÌÁ¶Àý½ÃÀÛ
 if(stageHeight < sizeMinH) { // ÃÖ¼ÒÄ¡º¸´Ù ÀÛÀ¸¸é
  myObj.style.height = sizeMinH+"px"; // ÃÖ¼ÒÄ¡·Î/
 
 }
 else if(stageHeight > sizeMaxH) { // ÃÖ´ëÄ¡º¸´Ù Å©¸é
  myObj.style.height = sizeMaxH+"px"; // ÃÖ´ëÄ¡·Î/
 
 }
 else { // ÃÖ¼ÒÄ¡º¸´Ù Å©°í ÃÖ´ëÄ¡º¸´Ù ÀÛ´Ù¸é. Ã¢Å©±â·Î.
 myObj.style.height = stageHeight+"px";
 }
 
 // ³ÐÀÌÁ¶Àý ½ÃÀÛ
 if(stageWidth < sizeMinW) { // ÃÖ¼ÒÄ¡º¸´Ù ÀÛÀ¸¸é
  myObj.style.width = sizeMinW+"px"; // ÃÖ¼ÒÄ¡·Î/
  } else { // 
 myObj.style.width = stageWidth+"px";
 }
 timer = setTimeout("setSize(sizeMinH,sizeMaxH,sizeMinW)", speed);
}




