/* ----------------------------------------------------------------------------------------------------
 *	Daonsoft Publishing.Div
 * Author	: 2008-08-02 by 2dea
 * Descript	: 2dea Common Script
 * Last Edit+	: 2009-06-14 by 2dea
 ---------------------------------------------------------------------------------------------------- */

//	수정사항 스무스무브레이어 크로스브라우징, FAQ부분 수정, 탭메뉴 추가, 이미지롤오버 추가
//	top.document.title = "2dea.com";
//	window.onload=new Function(preloadImages("/www/resource/flash_img/poster1.jpg","/www/resource/flash_img/poster2.jpg","/www/resource/flash_img/poster3.jpg","/www/resource/flash_img/poster4.jpg");');

function about(url,w,h,s) {
	if (self.innerHeight) {
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	}
	else if (document.body) {
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}
	x = (windowWidth-w)/2
	y = (windowHeight-h)/1.25

	//window.open(url,"_blank","left="+x+",top="+y+",width="+w+",height="+h+",scrollbars="+s+",resizable=0,status=1");
	window.open(url,"_blank","width="+w+",height="+h+",scrollbars="+s+",resizable=0,status=1");
}

function aboutFull(url) {
	window.open(url,"_blank","fullscreen");
}

function flash(url,id,w,h) {
	var embed = "";
	embed = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+id+'" width="'+w+'" height="'+h+'">';
	embed += '	<param name="movie" value="'+url+'" \/>';
	embed += '	<param name="quality" value="high" \/>';
	embed += '	<param name="bgcolor" value="#FFFFFF" \/>';
	embed += '	<param name="wmode" value="transparent" \/>';
	embed += '	<param name="menu" value="false" \/>';
	embed += '	<param name="allowScriptAccess" value="sameDomain" \/>';
	embed += '	<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="'+id+'" src="'+url+'" width="'+w+'" height="'+h+'" quality="high" bgcolor="#FFFFFF" wmode="transparent" menu="false" allowScriptAccess="sameDomain"><\/embed>';
	embed += '<\/object>';

	document.write(embed);
}

function media(url,id,w,h,autostart) {
	var embed = "";
	embed = '<object type="application/x-oleobject" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112" id="'+id+'" name="'+id+'" width="'+w+'" height="'+h+'" standby="Loading Windows Media Player components...">';
	embed += '	<param name="url" value="'+url+'" \/>';
	embed += '	<param name="autostart" value="'+autostart+'" \/>';
	embed += '	<param name="autosize" value="0" \/>';
	embed += '	<embed type="application/x-mplayer2" name="'+id+'" id="'+id+'" src="'+url+'" width="'+w+'" height="'+h+'" autostart="'+autostart+'" autosize="0"><\/embed>';
	embed += '<\/object>';

	document.write(embed);
}

function E(param) {
	return document.getElementById(param);
}

function depthNavi(menuNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			document.getElementById("navi_main"+i).src="/www/resource/images/common/nav_main"+i+"_on.gif";
			showHideLayers(subObj,'','show');
		} else {
			if(document.getElementById("navi_main"+i) != null) {
				document.getElementById("navi_main"+i).src="/www/resource/images/common/nav_main"+i+".gif";
				showHideLayers(subObj,'','hide');
			}
		}
	}
}

function returnNavi(menuNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			document.getElementById("navi_main"+i).src="/www/resource/images/common/nav_main"+i+".gif";
			showHideLayers(subObj,'','hide');
		}
	}
}

function depth2Navi(menuNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			showHideLayers(subObj,'','show');
		}
	}
}

function return2Navi(menuNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			showHideLayers(subObj,'','hide');
		}
	}
}

function depthENavi(menuNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			document.getElementById("navi_main"+i).src="/english/resource/images/common/nav_main"+i+"_on.gif";
			showHideLayers(subObj,'','show');
		} else {
			if(document.getElementById("navi_main"+i) != null) {
				document.getElementById("navi_main"+i).src="/english/resource/images/common/nav_main"+i+".gif";
				showHideLayers(subObj,'','hide');
			}
		}
	}
}

function returnENavi(menuNum, returnNum) {
	for (var i=1; i<10; i++) {
		var subObj = "depth2-"+i;
		if(i == menuNum) {
			document.getElementById("navi_main"+i).src="/english/resource/images/common/nav_main"+i+".gif";
			showHideLayers(subObj,'','hide');
		}
	}

	if(returnNum > 0 && returnNum != null) {
		document.getElementById("navi_main"+returnNum).src="/english/resource/images/common/nav_main"+returnNum+".gif";
		showHideLayers("depth2-"+returnNum,'','show');
	}
}

function setOn(category,subpair) {
	document.getElementById("navi_main"+category+"-"+subpair).src="/www/resource/images/common/nav_main"+category+"-"+subpair+"_on.gif";
}

function setOut(category,subpair) {
	document.getElementById("navi_main"+category+"-"+subpair).src="/www/resource/images/common/nav_main"+category+"-"+subpair+".gif";
}

function ovrImg(id) {
	var obj = document.getElementById(id);
	obj.src = obj.src.replace('.gif','_on.gif');
}

function outImg(id) {
	var obj = document.getElementById(id);
	obj.src = obj.src.replace('_on.gif','.gif');
}

function tabMenu(dotabid,num) {
	var inum=parseInt(num)-1;
	var linkTab=document.getElementById(dotabid).getElementsByTagName("li");
	for (i=0;i<linkTab.length;i++) {
		var tabimg = linkTab.item(i).getElementsByTagName("img").item(0);
		var tabContents= document.getElementById(dotabid+(1+i));
		if (i==inum) {
			if(tabContents.style.display!="block") {
				tabimg.src=tabimg.src.replace(".gif","_on.gif");
				tabContents.style.display="block";
			}
		} else {
			tabimg.src=tabimg.src.replace("_on.gif",".gif");
			tabContents.style.display="none";
		}
	}
}

function txtMenu(dotabid,num) {
	var inum=parseInt(num)-1;
	var linkTab=document.getElementById(dotabid).getElementsByTagName("li");
	for (i=0;i<linkTab.length;i++) {
		var tabContents= document.getElementById(dotabid+(1+i));
		if (i==inum) {
			if(tabContents.style.display!="block") {
				linkTab.item(inum).className="focus";
				tabContents.style.display="block";
			}
		} else {
			linkTab.item(i).className="";
			tabContents.style.display="none";
		}
	}
}

function floatLayer(target,position,topLimit,btmLimit) {
	if (!target)
		return false;
	var obj = document.getElementById(target);
	obj.initTop = position;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;
	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;
	if (typeof(window.pageYOffset) == "number") {
		obj.getTop = function() {
			return window.pageYOffset;
		}
	} else if (typeof(document.documentElement.scrollTop) == "number") {
		obj.getTop = function() {
			return document.documentElement.scrollTop;
		}
	} else {
		obj.getTop = function() {
			return 0;
		}
	}
	if (self.innerHeight) {
		obj.getHeight = function() {
			return self.innerHeight;
		}
	} else if(document.documentElement.clientHeight) {
		obj.getHeight = function() {
			return document.documentElement.clientHeight;
		}
	} else {
		obj.getHeight = function() {
			return 500;
		}
	}
	obj.move = setInterval(function() {
		if (obj.initTop > 0) {
			pos = obj.getTop() + obj.initTop;
		} else {
			pos = obj.getTop() + obj.getHeight() + obj.initTop;
			//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		}
		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit;
		if (pos < obj.topLimit)
			pos = obj.topLimit;
		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 10)
}
function float() {
	E('tail').style.width='124px';
	E('quickbutton').src='/www/resource/images/common/button/btn_navi-quick_on.gif';
	E('quickmenu').style.display='inline';
	E('quickswitch').childNodes[0].title="퀵메뉴 감추기";
	document.getElementById("tail");
	floatLayer("tail",213,120,480);
}

function quickNavi() {
	if(E('quickmenu').style.display=='inline') {
		E('quickswitch').childNodes[0].title="퀵메뉴 보이기";
		E('quickmenu').style.display='none';
		E('quickbutton').src='/www/resource/images/common/button/btn_navi-quick.gif';
		E('tail').style.width='21px';
	} else {
		E('tail').style.width='124px';
		E('quickbutton').src='/www/resource/images/common/button/btn_navi-quick_on.gif';
		E('quickmenu').style.display='inline';
		E('quickswitch').childNodes[0].title="퀵메뉴 감추기";
	}
}

function pzonLoad() {
	E('popup_off').style.display='none';
	E('popup_on').style.display='block';
	setTimeout('pzonCtrl()',1000*8);
}

function pzonCtrl() {
	E('popup_on').style.display='none';
	E('popup_off').style.display='block';
}

function popZone() {
	if(E('popup_on').style.display=='block') {
		E('popup_on').style.display='none';
		E('popup_off').style.display='block';
	}
	else {
		E('popup_off').style.display='none';
		E('popup_on').style.display='block';
	}
}

var smoothObj=null;
var smoothDoing=false;

moveLayer={
	xy:function(obj) {
		if(document.getBoxObjectFor) {
			try {
				var tempXY=document.getBoxObjectFor(obj);
			} catch(e) {return [0,0,obj.offsetWidth,obj.offsetHeight]}
			return [tempXY.x,tempXY.y,obj.offsetWidth,obj.offsetHeight];
		} else if(obj.getBoundingClientRect) {
			var tempXY=obj.getBoundingClientRect();
			return [(tempXY.left+document.documentElement.scrollLeft),(tempXY.top+document.documentElement.scrollTop),obj.offsetWidth,obj.offsetHeight];
		} else return false;
	},

	moveSmooth:function(obj,x,y) {
		if(!smoothObj) smoothObj=obj;
		if(arguments[3]==undefined && smoothDoing) {
			return;
		}
		else smoothDoing=1;
		var loc=moveLayer.xy(smoothObj);

		if(x!=null) {
			if(Math.abs(Math.abs(loc[0])-Math.abs(x))<10) {
				obj.style.left=x;
				var xc=1;
			} else {
				obj.style.left=parseInt(loc[0]+(x-loc[0])/3);
			}
		} else var xc=1;

		if(y!=null) {
			if(Math.abs(Math.abs(loc[1])-Math.abs(y))<10) {
				obj.style.top=y;
				var yc=1;
			} else {
				obj.style.top=parseInt(loc[1]+(y-loc[1])/3);
			}
		} else var yc=1;

		if(xc && yc) {
			smoothDoing=0;
			smoothObj=null;
			return;
		}
		setTimeout('moveLayer.moveSmooth(smoothObj,'+x+','+y+',"1")',10);
	}
}

var elem = "tr";
var rClick;
function rowHiligh() {
	if(document.getElementsByTagName) {
		var el = document.getElementsByTagName(elem);
		for(var i=0; i<el.length; i++) {
			if(el[i].childNodes[0].tagName != "th"
			&& el[i].parentNode.parentNode.className.indexOf("list") != -1) {
				if (!(el[i].className == "notice" || el[i].className == "first-child notice")) {	//if (el[i].className != "notice") {
					if(i%2 == 1) {
						el[i].className = "first";
						el[i].oldClassName = "first";
						el[i].onmouseout  = function() {
							this.className = "first";
						}
					}
					else {
						el[i].className = "second";	//el[i].className = el[i].className+" second";
						el[i].oldClassName = "second";
						el[i].onmouseout  = function() {
							this.className = "second";
						}
					}
				}
				el[i].onmouseover = function() {
					if(!(this.className == "notice" || this.className == "first-child notice")) {	//if(this.className != "notice") {
						if(this.className == this.oldClassName) {
							this.className = "hover";
						}
						else if(this.onmouseout == null && this.className != "click") {
							this.onmouseout = function() {
								this.className = this.oldClassName;
							}
						}
					}
				}
/*				el[i].onclick = function() {
					if(!(this.className == "notice" || this.className == "first-child notice")) {	//if(this.className != "notice") {
						if(this.className != "click") {
							this.className = "click";
						}
						else {
							this.className = this.oldClassName;
						}
						this.onmouseout = null;
					}
				}*/
			}
		}
	}
}

var key = false;
function clearText(id) {
	if (!key) {
		document.getElementById(id).value='';
		key = true;
	}
}
function clearValue(id) {
	document.getElementById(id).style.backgroundImage='none';
}

function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image')";
	obj.src='';
	return '';
}

function bgFlickerPrevent() {
	try {
		document.execCommand('BackgroundImageCache', false, true);
	} catch(e) {
		return;
	}
}
bgFlickerPrevent();

function magicPop(id) {
	var obj = document.getElementById(id);
	if(obj) {
		if(obj.style.display == 'block') {
			document.getElementById('magic').className='none';
			obj.style.display='none';
		} else {
			document.getElementById('magic').className='show';
			obj.style.display='block';
		}
	}
}

function showBx(id) {
	var bx = document.getElementById(id);
	if (bx.style.display == 'block') {
		bx.style.display='none';
	} else {
		bx.style.display='block';
	}
}

function toggleStyle(id) {
	var obj = document.getElementById(id);
	if(obj) {
		if(obj.style.display == '')
			obj.style.display = 'none';
		else
			obj.style.display = '';
	}
}

function toggleClass(id) {
	var obj = document.getElementById(id);
	if(obj) {
		if(obj.className == 'cover')
			obj.className = 'view';
		else
			obj.className = 'cover';
	}
}

function autoResize(i) {
	var iframeHeight=
	(i).contentWindow.document.body.scrollHeight;
	(i).height=iframeHeight+20;
}

function firstChild(Elid,Etn,Num) {
	if(Num=="") {
		Num=0;
	}
	liEl = dEI(Elid).getElementsByTagName(Etn);
	if (liEl.item(Num)) {
		liEl.item(Num).className += " first-child";
	}
}

function setCookie(name, value, expire) {
	document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}
function getCookie(name) {
	var search = name + "=";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1)
			end = document.cookie.length;
			return unescape(document.cookie.substring(offset, end));
		}
	}
}
function memory(cookieValue) {
	var today = new Date();
	var expires = new Date();
	expires.setTime(today.getTime() + 5000); //\\test\\
//	expires.setTime(today.getTime() + 1000*60*60*24);
	setCookie("divpopup", cookieValue, expires);
}

function autoPlayMuz() {
	top.frames['frame_blk'].location='/bgmuz.php';
}
function autoPauseMuz() {
	top.frames[0].document.getElementById("mplayer").pause();;
}
function autoCtrlMuz() {
	top.frames[0].document.getElementById("mplayer").play();;
}
/*
function playMedia(fileName) {
	$('player').Filename = fileName;
	$('player').play();
}
*/
function preloadImages() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() {
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) {
  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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() {
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=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 showNoneLayers() {
  var i,p,v,obj,args=showNoneLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
/*
function bluring() {
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

var myAnchors=document.all.tags("A");
function allblur() {
	for (i=0;i<myAnchors.length;i++) {
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	}
}
*/
var Hana = 'greatego@hotmail.com';

function msmsgs() {
	try {
		www2deacom.classid='clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28';
	}
	catch(e) {
		return;
	}
}
function msmsgsSend(name) {
	msmsgs();
	if(www2deacom.MyStatus==1) {
		www2deacom.SignIn(0,'','');
	}
	else {
		www2deacom.InstantMessage(name);
	}
}
function msmsgsAdd(name) {
	msmsgs();
	if(www2deacom.MyStatus==1) {
		www2deacom.SignIn(0,'','');
	}
	else {
		www2deacom.AddContact(0,name);
	}
}
//	document.write('<object id="www2deacom" class="hide"></object>');

function ovrView(obj) {
	document.getElementById(obj).style.display = "block";
	
}

function outView(obj) {
	document.getElementById(obj).style.display = "none";
	
}

function ovrMenuImg(id, did, img) {
	var obj = document.getElementById(id);
	obj.src = img;
	
	if(did != null) {
		if(document.getElementById(did)) {
			document.getElementById(did).className = "show";
			document.getElementById(did).style.display = "block";
		}
	}
}

function outMenuImg(id, did, img) {
	var obj = document.getElementById(id);
	obj.src = img;
	
	if(did != null) {
		if(document.getElementById(did)) {
			document.getElementById(did).className = "none";
			document.getElementById(did).style.display = "none";
		}
	}
}

var font_size = 100;

function jsZoom(param,id)
{
    
    if(document.getElementById(id).style.fontSize==null||document.getElementById(id).style.fontSize=="") font_size = 100;

    if(param=="in")
        font_size = font_size + 20;
    else
        font_size = font_size - 20;

    if (font_size > 200) {
		alert("최대크기입니다.");
		font_size = 200;
	}      

    if(font_size < 60){
		alert("최소크기입니다.");
		font_size = 60;
	} 
     
    document.getElementById(id).style.fontSize = font_size +"%";   
}

function jsZoomM(param)
{
    
    if(document.getElementById('main').style.fontSize==null||document.getElementById('main').style.fontSize=="") font_size = 100;

    if(param=="in")
        font_size = font_size + 20;
    else
        font_size = font_size - 20;

    if (font_size > 200) {
		alert("최대크기입니다.");
		font_size = 200;
	}      

    if(font_size < 60){
		alert("최소크기입니다.");
		font_size = 60;
	} 
     
    document.getElementById('main').style.fontSize = font_size +"%";   
}


/* 롤링  */
var targetRolling = "";
function jsRollingInit(targetId, direction, gap, dealy, pause) {
		
	if(direction == null) direction = 3;
	if(gap == null) gap = 1;
	if(dealy == null) dealy = 3;
	if(pause == null) pause = 1000;
		
	targetRolling = new js_rolling(document.getElementById(targetId));
	targetRolling.set_direction(direction);
	targetRolling.move_gap = gap;	//움직이는 픽셀단위
	targetRolling.time_dealy = dealy; //움직이는 타임딜레이
	targetRolling.time_dealy_pause = pause;//하나의 대상이 새로 시작할 때 멈추는 시간, 0 이면 적용 안함
	targetRolling.mouseover_pause = false; //마우스 오버시에도 안멈춘다.
	targetRolling.start();
		
}

var bannerRolling = "";
function jsRollingBanner(targetId, direction, gap, dealy, pause) {
		
	if(direction == null) direction = 3;
	if(gap == null) gap = 1;
	if(dealy == null) dealy = 3;
	if(pause == null) pause = 1000;
		
	bannerRolling = new js_rolling(document.getElementById(targetId));
	bannerRolling.set_direction(direction);
	bannerRolling.move_gap = gap;	//움직이는 픽셀단위
	bannerRolling.time_dealy = dealy; //움직이는 타임딜레이
	bannerRolling.time_dealy_pause = pause;//하나의 대상이 새로 시작할 때 멈추는 시간, 0 이면 적용 안함
	bannerRolling.mouseover_pause = false; //마우스 오버시에도 안멈춘다.
	bannerRolling.start();
		
}

/* tab 변경 */
function tabChange(obj, num, tabId, total) {
    
  	for (i=1; i <= total; i++)    {
    
	  	if (i == num)    {
	    	document.getElementById(obj+i).className = 'show';
	        document.getElementById(tabId+i).className = 'focus';
	    } else {
	        document.getElementById(obj+i).className = 'none';
	        document.getElementById(tabId+i).className = '';
	    }
	}
}

/* 공통 베너 및 팝업 존 오픈 */
function openBannerPopupzone(target, revUrl) {
    	
	var url = '';

   	if(revUrl.indexOf("http://") == -1) {
    	url = "http://"+revUrl;
    } else {
        url = revUrl;
	}
    window.open(url, target, "");
}


/* 공연정보 통합검색 */
function jsTotalSearch() {
	if(document.totalSearchForm.elements["search_val_v"].value.length < 1) {
		alert("검색어를 두자 이상 입력해 주세요.");
		return false;
	}
	
	document.totalSearchForm.action = "/www/playinfo/play_guide/play_info/play_monthinfo/playInfo/playInfoSearch.do";
	document.totalSearchForm.submit();
}

//----------------------- 화면확대축소 ----------------------------
var nowZoom = 100; // 현재비율
var maxZoom = 200; // 최대비율
var minZoom = 100; // 최소비율(현재와 같아야 함)
var increaseNum = 10; // 증/감 비율

//화면 키운다.
function zoomIn() {
	if (nowZoom < maxZoom) {
		nowZoom += increaseNum; 
	} else {
		return;
	}

	document.getElementById('auditorium').style.zoom = nowZoom + "%";
//	document.body.style.zoom = nowZoom + "%";
}

//화면 줄인다.
function zoomOut() {
	if (nowZoom > minZoom) {
		nowZoom -= increaseNum;
	} else {
		return;
	}

	document.getElementById('auditorium').style.zoom = nowZoom + "%";
//	document.body.style.zoom = nowZoom + "%";
}

//화면 줄인다.
function zoomRenew() {
	nowZoom = minZoom;
	document.getElementById('auditorium').style.zoom = nowZoom + "%";
//	document.body.style.zoom = minZoom + "%";
}

