function showAlert(){
		window.alert("±î²á");
	}
	
	
	

	
	function onlineOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("http://support.cabinstory.co.kr/homepage/calendar/?pensionNo=10002187&path=B","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
			
			
				function trafficOpen1(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("time1.html","","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.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
	
function printOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("map.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
function printOpen2(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("map2.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
	
function printOpen3(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("map3.html","","scrollbars=yes,width="+w+",height="+h+
",left="+cx+",top="+cy);
	}	
							 	
								
		function webzine(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("webzine/main.html","","width="+w+",height="+h+
",left="+cx+",top="+cy);
	}							
								
								
								function designOpen(w,h){
	//w=400;
	//h=300;
	cx=(screen.availWidth-w)/2;
	cy=(screen.availHeight-h)/2;
		window.open
("http://www.originative.co.kr/design.html","","scrollbars=no,resizable=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=no,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="sameDomain"/>');}
		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){}
}


var stmnGAP1 = 330;
var stmnGAP2 = 25;
var stmnBASE = 330;
var stmnActivateSpeed = 0;
var stmnScrollSpeed = 0;
var stmnTimer;

function InitializeStaticMenu()
{
		/*
		if (ReadCookie("ANIMATE") == "false") {
				ANIMATE.checked = false;
				STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
		}
		else {
				ANIMATE.checked = true;
				STATICMENU.style.top = document.body.scrollTop + stmnBASE;
				RefreshStaticMenu();
		}
		*/
		STATICMENU.style.top = document.body.scrollTop + stmnBASE;
		RefreshStaticMenu();
}

/*
function ReadCookie(name)
{
		var label = name + "=";
		var labelLen = label.length;
		var cLen = document.cookie.length;
		var i = 0;

		while (i < cLen) {
				var j = i + labelLen;

				if (document.cookie.substring(i, j) == label) {
						var cEnd = document.cookie.indexOf(";", j);
						if (cEnd == -1) cEnd = document.cookie.length;

						return unescape(document.cookie.substring(j, cEnd));
				}

				i++;
		}

		return "";
}
*/

function RefreshStaticMenu()
{
		var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

		stmnStartPoint = parseInt(STATICMENU.style.top, 10);
		stmnEndPoint = document.body.scrollTop + stmnGAP2;
		if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

		stmnRefreshTimer = stmnActivateSpeed;

		if ( stmnStartPoint != stmnEndPoint ) {
				stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
				STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
				stmnRefreshTimer = stmnScrollSpeed;
		}

		stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

/*
function ToggleAnimate()
{
		if (ANIMATE.checked) {
				RefreshStaticMenu();
				SaveCookie("ANIMATE", "true", 300);
		}
		else {
				clearTimeout(stmnTimer);
				STATICMENU.style.top = stmnGAP1;
				SaveCookie("ANIMATE", "false", 300);
		}
}

function SaveCookie(name, value, expire)
{
		var eDate = new Date();
		eDate.setDate(eDate.getDate() + expire);
		document.cookie = name + "=" + value + "; expires=" +  eDate.toGMTString()+ "; path=/";
}
*/


function windown() { 
   obj = new ActiveXObject("Shell.Application"); 
   obj.MinimizeAll(); 
} 
function Show(divid) { 
  divid.style.visibility = "visible";
} 
function Hide(divid) { 
  divid.style.visibility = "hidden";
}



function viewLayer(value,obj_id,no){
	var URL;
    var layer=document.getElementById(obj_id);
    layer.style.visibility=value;
	var fr_num=1;
	var fr=document.getElementById('fr_board'+fr_num);
	if(no){no=""}
	switch(fr_num){
	                case "1" : URL="talk.php";
	                break;

	   }

}
function hiddenLayer(){
var layer1=document.getElementById('board1')
layer1.style.visibility="hidden";
}
