
function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'" id="'+LnkId+'"  />');
    document.write('            </embed></object>');
	if ( Frm == 'Y' ) { // form 태그 들어가는 페이지에 적용
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}

function big_pop() {
	big_swf = new Popup("big_div","/big_swf.asp",{overlay:true,top: 127, left: 0, width: 0, height: 0});
}

/*퀵메뉴 스크립트*/
function initMoving(target, position, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = 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";
	}, 30)
}



function goTop() {
	window.scrollTo(0,0);
}
function ready() {
	alert('준비중입니다.');
}

//Top Navi
function topNavi(obj) {
	//open
	if (obj=='1') {
		document.getElementById("subnavi").style.height = 500 + "px";
	}
	//close
	else if (obj=='2') {
		document.getElementById("subnavi").style.height = 160 + "px";
	}
}

//Footer Navi
function footNavi(obj) {
	//open
	if (obj=='1') {
		document.getElementById("footnavi").style.height = 300 + "px";
		document.getElementById("footnavi").style.bottom = 90 + "px";
	}
	//close
	else if (obj=='2') {
		document.getElementById("footnavi").style.height = 20 + "px";
	}
}

//Quick Navi
function quickNavi(obj) {
	//open
	if (obj=='1') {
		document.getElementById("quickArea").style.width = 300 + "px";
	}
	//close
	else if (obj=='2') {
		document.getElementById("quickArea").style.width = 19 + "px";
	}
}

function map_select(num1,num2) {	
	swf_name = document.getElementById("map");	
	swf_name.returnValue(num1,num2);
}
function quick_open() {	
	qmenu = document.getElementById("quickArea");	
	
	if(qmenu.style.width == "17px"){
		qmenu.style.width = "406px";
		
	}else{
		qmenu.style.width = "17px";
	}
}

function left_size(n) {	
	left_m = document.getElementById("left_menu");	
	left_swf = document.getElementById("left_menu_swf");	
	
	left_m.style.height = n+"px";	
	left_swf.style.height = n+"px";	
}

function y_tab(n) {	
	tab_img = document.getElementById("y_tab_img");	
	
	tab_img.src="/images/etc/pop_tab_0"+n+".gif";
}

function show_tab(n) {	
	tab_img = document.getElementById("show_img");		
	tab_img.src="/images/ticket/show_tab_0"+n+".gif";
}

function popsy(url,trgt,w,h) { 
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no,status=no'); 
}
