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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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_showHideLayers() { //v3.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')?'block':(v='hide')?'none':v; }
    obj.display=v; }
}

// 공통 팝업 
function pop(pPage,name,Opt) {
	var popUpWin;
	popUpWin = window.open(pPage,name,Opt);
	popUpWin.focus();
}
// 공통 object 
function obj_comm(strObjectTag){
	document.write(strObjectTag);
}


function showhideLayer(targetId) {                                        
    var el = document.getElementById(targetId);                             
    if((el) && (el.style.display == "none")) el.style.display = "block";    
    else if((el) && (el.style.display =="block")) el.style.display = "none";
}


//링크 주변 점선 없애기
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	} 
}



//*****왼쪽메뉴 롤오버*****
var MENU;
var OVER;
// 해당메뉴 선택시
function Over(n)
{
	
		obj = eval("document.all.menu"+n);
		obj.src = "../img/"+MENU+"/menu"+n+"_on.gif";
}
//------ 공통 좌측메뉴 롤오버/아웃
function OverImg(n)
{
	if(OVER!=n)
	{
	obj = eval("document.all.menu"+n);
	obj.src = "../img/"+MENU+"/menu"+n+"_on.gif";
	}
}

function OutImg(n)
{
	if(OVER!=n)
	{
	obj = eval("document.all.menu"+n);
	obj.src = "../img/"+MENU+"/menu"+n+".gif";
	}
}

// Image Over
function commOver(imgName,url)
{
	obj = eval("document.all."+imgName);
	obj.src = url + imgName + "_on.gif";
}
// Image Out
function commOut(imgName,url)
{
	obj = eval("document.all."+imgName);
	obj.src = url + imgName + ".gif";
}

function goPerfSale(idPerf, month)
{
    window.open("http://www.clubbalcony.com/Home/classic/ticket_detail.aspx?id="+idPerf+"&perfmode=bal2&y=2011&m=" + month);
}


//<script>showFlashObject('','/image/common/swf/hazzys_top.swf?xmlURL=/image/common/swf/menulink.xml&pageCode=000000','1000','120','','','');</script>

// 플래쉬메뉴 공통
function showFlashObject(objSource, objflashvars)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1024" height="280" id="sub_menu" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="allowFullScreen" value="false">');
	document.write('<param name="movie" value="'+ objSource +'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="flashvars" value="'+ objflashvars +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+ objSource +'" flashvars="'+ objflashvars +'" wmode="transparent" quality="high" bgcolor="#666666" width="1024" height="280" name="sub_menu" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}

/***************************************
* 탑버튼
***************************************/
function initMoving(target, position, topLimit, btmLimit) { 
	if (!target) return false;  
	
		var obj = target; 
		obj.initTop = position; 
		obj.topLimit = topLimit; 
		obj.bottomLimit = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) - btmLimit - obj.offsetHeight;  
		obj.style.position = "absolute"; 
		obj.top = obj.initTop; 
		obj.left = obj.initLeft;  
		
		if (typeof(window.pageYOffset) == "number") { //WebKit 
		obj.getTop = function() { 
		return window.pageYOffset; 
		} 
		} else if (typeof(document.documentElement.scrollTop) == "number") { 
		obj.getTop = function() { 
		return Math.max(document.documentElement.scrollTop, document.body.scrollTop); 
		} 
		} else { 
		obj.getTop = function() { 
		return 0; 
		} 
	}  
		
	if (self.innerHeight) { //WebKit 
	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"; }, 30)
} 


/***************************************
* 하단 풋터 고정영역
***************************************/
if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {
	cot_t1_DOCtp='_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);_width:expression(document.body.clientWidth);}';
}
else {
	cot_t1_DOCtp='_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);_width:expression(document.body.clientWidth);}';
}
var cot_tl_bodyCSS='* html {}';
var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'z-index:10000;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'width:100%;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'text-align:center;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100% 100% 0);';
var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp;
document.write('<style type=text/css>'+ cot_tl_bodyCSS + cot_tl_fixedCSS +'</style>');

