
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];}
}





/*
①.width : 창 가로길이 지정 [no,yes(생김)]
②.height : 창 세로길이 지정 [no,yes(생김)]
③.toolbar : 단축도구창 유무지정 [no,yes(생김)]
④.menubar : 메뉴창 유무지정 [no,yes(생김)]
⑤.location : 주소창 유무지정 [no,yes(생김)]
⑦.scollbars : 스크롤바 지정 [no,yes(생김)]
⑧.status : 아래 상태바창 유무지정 [no,yes(생김)]
⑨.resizable : 창변형 유무지정 [no,yes(생김)]
⑩.fullscreen : 전체화면 유무지정 [no,yes(생김]
⑪.channelmode=yes : 앞&뒤로,창최소화.닫기등을 설정(F11번 키랑 같음)
⑫.left=0,top=0 : 창을 고정시킨다.왼쪽 구석에 고정
*/

function mm_openWindow(u, w, h, r, s) 
{
	opening_window = window.open(u, '', 'width='+w+',height='+h+', resizable='+r+', scrollbars='+s);
	opening_window.focus();
}

function kk_openWin(url, winname, width, height, tbar, mbar, sbar, loc, status, resizable, fscreen, left, top, cflag)
{
	if(cflag == 'yes' || cflag == 'y' || cflag == '1')
	{
		left = (window.screen.width - width ) / 2; 
		top  = (window.screen.height- height) / 2; 
	}

	opening_window = window.open(url, winname, 'width=' + width + ', height=' + height + ', toolbar=' + tbar + ', menubar=' + mbar + ', scrollbars=' + sbar + ', location=' + loc + ', status=' + status + ', resizable=' + resizable + ', fullscreen=' + fscreen + ', left=' + left + ', top=' + top);
	opening_window.focus();
}

/*하단메인메뉴*/
function menu01() { self.location.href = "/home/cyber/media/sub01.html";}
function menu02() { self.location.href = "/home/cyber/content01/sub02.html";}
function menu03() { self.location.href = "/home/cyber/content02/sub03.html";}
function menu04() { self.location.href = "/home/cyber/content03/sub04.html";}

/*사이버전시관메인*/
function menu05() { self.location.href = "/home/cyber/";}



/*종영상보기*/
	function menu0101() { self.location.href = "/home/cyber/media/sub01_01.html";}
	function menu0102() { self.location.href = "/home/cyber/media/sub01_02.html";}
	function menu0103() { self.location.href = "/home/cyber/media/sub01_03.html";}
	function menu0104() { self.location.href = "/home/cyber/media/sub01_04.html";}
	function menu0105() { self.location.href = "/home/cyber/media/sub01_05.html";}
	function menu0106() { self.location.href = "/home/cyber/media/sub01_06.html";}
	function menu0107() { self.location.href = "/home/cyber/media/sub01_07.html";}
	function menu0108() { self.location.href = "/home/cyber/media/sub01_08.html";}



/*제1전시실*/
	function menu0201() { self.location.href = "/home/cyber/content01/sub0201.html";}
	function menu0202() { self.location.href = "/home/cyber/content01/sub0202.html";}
	function menu0203() { self.location.href = "/home/cyber/content01/sub0203.html";}
	function menu0204() { self.location.href = "/home/cyber/content01/sub0204.html";}
	function menu0205() { self.location.href = "/home/cyber/content01/sub0205.html";}
	function menu0206() { self.location.href = "/home/cyber/content01/sub0206.html";}
	function menu0207() { self.location.href = "/home/cyber/content01/sub0207.html";}
	function menu0208() { self.location.href = "/home/cyber/content01/sub0208.html";}



/*제2전시실*/
	function menu0301() { self.location.href = "/home/cyber/content02/sub0301.html";}
	function menu0302() { self.location.href = "/home/cyber/content02/sub0302.html";}
	function menu0303() { self.location.href = "/home/cyber/content02/sub0303.html";}
	function menu0304() { self.location.href = "/home/cyber/content02/sub0304.html";}
	function menu0305() { self.location.href = "/home/cyber/content02/sub0305.html";}
	function menu0306() { self.location.href = "/home/cyber/content02/sub0306.html";}


/*제3전시장*/
	function menu0401() { self.location.href = "/home/cyber/content03/sub0401.html";}



