	/*
		# Notice - required prototype.js
	*/

	function LoginChk(strUrl){
		alert('로그인 후 사용 가능한 메뉴입니다.');
		if ( strUrl == '' ){
			location.href = '/myasiana/myasiana00.asp';
		} else {
			location.href = '/myasiana/myasiana00.asp?AsianaGoURL='+ strUrl;
		}
	}

	function Check_AwB(){
		if( $('t210').value != "0" || $('t220').value != "0" ){
			alert('소아/유아의 나이 구분은 여행일 기준이며, 나이를 확인할 수 있는 서류\n\n(의료보험증,주민등록등본,여권 중 택일)를 지참하시기 바랍니다.');
		}
		if($('t200').value < $('t220').value) {
			alert('유아가 동반 성인보다 많을 수 없습니다.');
			$('t220').options[0].selected=true;
			return false;
		} else {
			return true;
		}
	}

	function Check_AwB2(){
		if( $('t210').value != "0" || $('t220').value != "0" ){
			alert('소아/유아의 나이 구분은 여행일 기준이며, 나이를 확인할 수 있는 서류\n\n(의료보험증,주민등록등본,여권 중 택일)를 지참하시기 바랍니다.');
		}
	}

	function getCookie( name ){
		var nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length ){
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ){
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
					endOfCookie = document.cookie.length;
					return unescape( document.cookie.substring( y, endOfCookie ) );
				}
			x = document.cookie.indexOf( " ", x ) + 1;
			if ( x == 0 )
				break;
			}
		return "";
	}

	function alertMsg(url){
		/*
		if( !getCookie('ASIANASN') ){
			alert('아시아나클럽 회원 전용 홈페이지로 이동합니다.');
		} else {
			alert('아시아나클럽 회원 전용 홈페이지로 이동합니다.\n이동하시겠습니까?');
		}
		*/
//		if( confirm('아시아나클럽 회원 전용 홈페이지로 이동합니다.\n이동하시겠습니까?') )
//		{
//		window.open(url);
		ACEF_Tracking(url, 'FLASH', '_blank', '', 1, 'AsianaClub');
//		}
	}
//.. swf

function asianaSWF(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}



//.. tvcf
function tv(){
  document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" name="MediaPlayer1" id="MediaPlayer1" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="320" height="240" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
						+ '		<param name="transparentAtStart" value="True">'
						+ '		<param name="transparentAtStop" value="False">'
						+ '		<param name="AnimationAtStart" value="False">'
						+ '		<param name="AutoStart" value="true">'
						+ '		<param name="AutoRewind" value="true">'
						+ '		<param name="SendMouseClickEvents" value="True">'
						+ '		<param name="DisplaySize" value="0">'
						+ '		<param name="AutoSize" value="False">'
						+ '		<param name="ShowDisplay" value="False">'
						+ '		<param name="ShowControls" value="False">'
						+ '		<param name="ShowTracker" value="True">'
						+ '		<param name="Enabled" value="1">'
						+ '		<param name="EnableContextMenu" value="0">'
						+ '		<param name="EnablePositionControls" value="1">'
						+ '		<param name="EnableFullScreenControls" value="1">'
						+ '		<param name="ShowPositionControls" value="1">'
						+ '		<param name="Mute" value="0">'
						+ '		<param name="Rate" value="1">'
						+ '		<param name="SAMILang" value="">'
						+ '		<param name="SAMIStyle" value="">'
						+ '		<param name="SAMIFileName" value="">'
						+ '		<param name="ClickToPlay" value="0">'
						+ '		<param name="CursorType" value="1">'
						+ '		<param name="FileName" value="">'
						+ '	</object>');
}

	function popup(page,name,x,y){
		opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=no,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
		window.open(page,name,opt)
	}

	function popups(page,name,x,y){
		opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=yes,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
		window.open(page,name,opt)
	}

	function popup_opt(page,name,x,y,t,l){
		opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=yes,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top="+t+", left="+l
		window.open(page,name,opt)
	}

	function search(page,name,x,y){
		opt = "toolbar=yes,alwaysRaised=no,location=no,status=yes,menubar=yes,scrollbars=yes,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
		window.open(page,name,opt)
	}

//.. swf script

function swf(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <param name=wmode value=transparent><embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}


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];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_NewwinMenu(targ,selObj,restore){ //v3.0
  open(selObj.options[selObj.selectedIndex].value);
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function swftrans(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <param name=wmode value=transparent> <embed src="'+add+'" quality=high menu=false wmode=transparent pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}

	//키 눌렀을 경우 수행-Ctrl+Enter키 누를 경우 시각장애인 사이트로 이동
	document.onkeydown = function(e){
		var appname = navigator.appName;
		if ( 'Netscape' == appname ){
			var key = e.keyCode;
			var ctrlKey = e.ctrlKey;

			if(ctrlKey){
				if(key == 13) {
					location.href='/textmode/main.asp';
				}
			}
		} else {
			var key = event.keyCode;
			var ctrlKey = event.ctrlKey;

			if(ctrlKey){
				if(key == 13) {
					location.href='/textmode/main.asp';
				}
			}
		}
	};

	/* 파리 팝업 */
	function pariPop(){
		window.open('/sub/event/2008paris/main.asp','aa','width=1013,height=630,left=0,top=0,scrollbars=yes');
	}

	/* 액체 휴대 팝업 */
	function waterPop(){
		window.open('/service/baggage/baggage03_pop01.asp','aa','width=625,height=529,left=0,top=0,scrollbars=yes');
	}


	/* 인천청사 이전 뉴스(080603) */
	function inchonPop(){
		window.open('/reservation/19icn_counter.html','aa','width=406,height=264,left=0,top=0,scrollbars=no');
	}

	/* 역사관 */
	function history_pop(){
		window.open('/about/introduce/23th.html','23th','width=820,height=580,left=0,top=0,scrollbars=no');
	}

	/* 200809 국문바디 기사 */
	function coupon200809(){
		window.open('/club/news/onmedia/200809/coupon.html','dd','width=606,height=264');
	}


	/* 200812 예약 발권 도울만 팝업*/
	function guidePop(){
		//window.open('/reservation/reservation_2008/reservation_guide080805.html','ee','width=810,height=663,scrollbars=no');
    window.open('/reservation/guide/guide01.html','ee','width=810,height=663,scrollbars=no');
	}

	/* FC 클래스 */
	function FC_pop(){
		window.open('/premium/main.html','FC','width=820,height=580,left=0,top=0,scrollbars=no');
	}

	/* 무료 수하물 뉴스 20090602 */

		function news_pop(){
		window.open('https://rsvweb.flyasiana.com/Korean/Fly2008/Booking/reserve/help_student.jsp?','news','width=621,height=600,left=0,top=0,scrollbars=yes');
	}


	/* green print */

		function GreenPrint(){
		window.open('/beautiful/green/print.asp','green','width=690,height=670,left=0,top=0,scrollbars=no');
	}



	/* 찬소중링 */

		function ZeroCo(){
		window.open('/about/enviroment/environment13.asp','ZeroCo','width=598,height=600,left=0,top=0,scrollbars=yes');
	}

	/* Premium Service */

		function PremiumPop(){
		window.open('/premium/main.html','PremiumPop','width=820,height=580,left=0,top=0,scrollbars=no');
	}



	function ClubMessage(){
//alert('아시아나클럽 전용 홈페이지에서 이용 가능합니다.\n하단 확인을 누르시면 해당 홈페이지로 이동합니다.');
		window.open('http://asianaclub.flyasiana.com/Korean/Club2008/index.jsp','Club','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')
	}



	function addTextArea (objForm, div) {
		// 인터넷 익스플로러 4 이상
		if (document.all){
		var strHtml = "<br><input type=file name=strFile style=width:470px; onChange=\"javascript:addTextArea(this.form,'"+ div +"');\">";
		eval("document.all." + div).insertAdjacentHTML('beforeEnd', strHtml)
		}
		// 넷스케이프 6 이상
		else if (document.getElementById) {
		var objTextarea = document.createElement('TEXTAREA');
		objTextarea.name = 'nameTextArea' + c++;
		objTextarea.rows = 5;
		objTextarea.cols = 40;
		objForm.appendChild(document.createElement('BR'));
		objForm.appendChild(objTextarea);
		}
		// 넷스케이프 4
		else if (document.layers) {
		var objLayer = new Layer (window.innerWidth);
		var strHtml = '';
		strHtml += '<HTML><BODY><FORM NAME="myForm">';
		strHtml += '<TEXTAREA NAME="nameTextArea" ROWS="5" COLS="40"><\/TEXTAREA>';
		strHtml += '<\/FORM><\/BODY><\/HTML>';
		objLayer.document.open();
		objLayer.document.write(strHtml);
		objLayer.document.close();
		objLayer.top = document.height;
		document.height += objLayer.document.height;
		objLayer.visibility = 'show';
		}
	}

/* 2009 navi */
var XML_PATH = "/common/xml/navidata.xml";
var ROOT_PATH = "/common/swf/";
var LOGIN_CHK_URL = "/common/func/flash_login_chk.asp";
var MAIN_BANNER_PATH = "/common/xml/main_banner_data.xml";
var SLIDE_BANNER_PATH = "/common/xml/slide_banner_data.xml";

var SUB_BANNER_PATH1 = "/common/xml/sub_banner_data1.xml";
var SUB_BANNER_PATH2 = "/common/xml/sub_banner_data2.xml";
var BOARDING_BANNER_PATH = "/service/boarding/images/xml/galleryData02.xml";

/* 2010 tcc 이미지경로 */
var TCC_IMG_PATH = "http://img.flyasiana.com/tcc/";

var jsReady = false;


function isReady(){
	return jsReady;
}

function pageInit(){
    jsReady = true;
}

function flashLoad(url,w,h,id,xml){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+id+"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width="+w+" height="+h+"><param name='movie' value="+url+"><param name=quality value=high><param name=wmode value=transparent><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /><param name=FlashVars value="+xml+" /><embed src="+url+" name='"+id+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width="+w+" height="+h+" wmode=transparent flashvars="+xml+"></embed></object>");
}

/* 캠페인 추가 */
function main(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="525" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/beautiful_main.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/beautiful_main.swf" flashvars="pageNum=3&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="1000" height="525" name="main" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function snb(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="193" height="330" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/snb.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pageNum=1&xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/snb.swf" flashvars="pageNum=1&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="193" height="330" name="snb" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function snb02_1(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="193" height="330" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/snb.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pageNum=2&xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/snb.swf" flashvars="pageNum=2&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="193" height="330" name="snb" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function snb03_1(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="193" height="330" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/snb.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pageNum=3&xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/snb.swf" flashvars="pageNum=3&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="193" height="330" name="snb" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function snb04_1(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="193" height="330" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/snb.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pageNum=4&xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/snb.swf" flashvars="pageNum=3&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="193" height="330" name="snb" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function snb05_1(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="193" height="330" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/snb.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pageNum=5&xmlmenu=/common/xml/menu.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/snb.swf" flashvars="pageNum=3&xmlmenu=/common/xml/menu.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="193" height="330" name="snb" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function sub_2_1(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="770" height="950" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/sub_2_1.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="travel=/common/xml/travel.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/sub_2_1.swf" flashvars="travel=/common/xml/travel.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="770" height="950" name="sub_2_1" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}

function sub_3(){
	 html = '';
	 html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="770" height="525" id="main" align="middle">';
	 html += '<param name="allowScriptAccess" value="always" />';
	 html += '<param name="movie" value="/common/swf/sub_3.swf" />';
	 html += '<param name="quality" value="high" />';
	 html += '<param name=FlashVars value="pic=/common/xml/pic.xml" />';
	 html += '<param name="bgcolor" value="#ffffff" />';
	 html += '<param name="wmode" value="transparent" />';
	 html += '<embed src="/common/swf/sub_3.swf" flashvars="pic=/common/xml/pic.xml" wmode="transparent" quality="high" bgcolor="#ffffff" width="770" height="525" name="sub_3" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	 html += '</object>';
	 document.write(html);
}


function popWin(loc,w,h){
			window.open(loc, 'popupName', 'width='+w+',height='+h);
		}


/*이벤트 팝업 관련 함수 시작*/
function setCookie( name, value, expiredays ){
	var today = new Date();
	today.setDate( today.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";
}

function getCookieVal( offset ){
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function showLayer( obj ){
	//$(obj).show();
}

function hideLayer( obj ){
	//$(obj).hide();
}

function getToday(){
var today = new Date();
var today_date;

today_yy = today.getFullYear();
today_mm = today.getMonth() + 1;
if (today_mm < 10)
	today_mm = "0" + today_mm;
today_dd = today.getDate();
if (today_dd < 10)
	today_dd = "0" + today_dd;
today_date = today_yy + '' + today_mm + '' + today_dd;

return today_date;
}

function notToday( obj ){
	setCookie( obj, "done", 1);
	hideLayer(obj);
}

function notTodayWin( obj ){
	setCookie( obj, "done", 1);
	self.close();
}

function setEventLayerPopup( obj, start_date, end_date){
	if ( (start_date <= getToday()) && (getToday() <= end_date) ){
		if(getCookie(obj) == "done"){
			hideLayer(obj);
		} else {
			showLayer(obj);
		}
	}
	else{
		hideLayer(obj);
	}
}

function setEventWinPopup( url, width, height, obj, start_date, end_date){
	if ( (start_date <= getToday()) && (getToday() <= end_date) ){
		if(getCookie(obj) != "done"){
			window.open( url ,'','width='+width+', height='+height);
		}
	}
}

function setEventWinPopupOption( url, option, obj, start_date, end_date){
	if ( (start_date <= getToday()) && (getToday() <= end_date) ){
		if(getCookie(obj) != "done"){
			window.open( url, '',option);
		}
	}
}

/*이벤트 팝업 관련 함수 끝*/

/***************************************
* 배경깜박임 제어
***************************************/
(function(){
	/*Use Object Detection to detect IE6*/
	var m = document.uniqueID /*IE*/
	document.compatMode /*>=IE6*/
	!window.XMLHttpRequest /*<=IE6*/
	document.execCommand ;
	try{
		if(!!m){
			m("BackgroundImageCache", false, true) /* = IE6 only */
		}
	}catch(oh){};
})();


/***************************************
* 투명 png 치환
***************************************/
	function setPng24(obj,switche){
		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 '';
	}

	/* 091023 */
	function hiddenSitemap(){
		document.getElementById("SitemapFrame").style.display = "none";
		SLB();
	}

	function viewSiteMap(){
		SLB("<div id='SitemapFrame'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='SiteMap' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='906' height='599'><param name='movie' value='/common/swf/navigation_SiteMap_mother.swf'><param name=quality value=high><param name=wmode value=transparent><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /><embed src='/common/swf/navigation_SiteMap_mother.swf' name='SiteMap' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='906' height='599' wmode=transparent></embed></object></div>");
		document.getElementById("SitemapFrame").style.display = "block";

		var sitemapId = setInterval(function(){
		flashThisMovie("SiteMap").viewSiteMap();
		clearInterval(sitemapId);
		sitemapId = null;
		},100);
	}


	function flashThisMovie(movieName){
		if(navigator.appName.indexOf("Microsoft") != -1){
			return window[movieName];
		}else{
			return document[movieName];
		}
	}
	
	//focus 이동
	function nextFocus(sFormName,sNow,sNext){
		var sForm = 'document.'+ sFormName +'.'
		var oNow = eval(sForm + sNow);

		if (typeof oNow == 'object')
		{
			if ( oNow.value.length == oNow.maxLength)
			{
				var oNext = eval(sForm + sNext);

				if ((typeof oNext) == 'object')
					oNext.focus();
			}
		}
	}

	function helpie9() {
		window.open('/reservation/guide/guide16.html','','width=810,height=735,scrollbars=no');
	}

	function isMobileBrowser(a){
		 return (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iphone|ipad|iris|kindle|lge |maemo|midp|mmp|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) 
	}


/* 2011.10.06 ms-sql 버전업그레이드 작업 안내 */
function alert_2011100616() {
	alert("16:00~16:30 서비스 점검 중입니다.\n잠시 후에 이용해주시기 바랍니다.\n이용에 불편을 드려 죄송합니다.");
}

function move_2011100616() {
	alert("16:00~16:30 서비스 점검 중입니다.\n잠시 후에 이용해주시기 바랍니다.\n이용에 불편을 드려 죄송합니다.");
//	location.href = '/main.asp';
}

// 이부분부터 20111025 작업

/* _ 이미지 over */
function imgMenuOver(containderID) {
	var objwrap = document.getElementById(containderID);
	var imgMenu = objwrap.getElementsByTagName("a");

	for (i=0; i<imgMenu.length; i++) {
		if(imgMenu[i].getElementsByTagName("img").length == 0) continue;

		if (imgMenu[i].getElementsByTagName("img")[0].src.indexOf("_on.gif") != -1 ) {
			continue;
		}
		imgMenu[i].onmouseover = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onfocus = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onmouseout = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
		imgMenu[i].onblur = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
	}
}

function MglmoMenu(obj) {
	var menu = document.getElementById(obj);
	menu.len = menu.childNodes.length;
	menu.topmenu = new Array();
	menu.menuseq = -1;
	menu.submenuseq = -1;
	menu.current = null;
	menu.subcurrent = null;
	menu.isOver = null;

	submenuTag = menu.getElementsByTagName("ul");

	for(i = 0; i < submenuTag.length; i++) {
		submenuTag.item(i).onmouseover = submenuTag.item(i).onfocus = function () {
			menu.isOver = true;
		}
		submenuTag.item(i).onmouseout = submenuTag.item(i).onblur = function () {
			menu.isOver = false;
			
			setTimeout(function () {
				if (menu.isOver == false) {
					if (menu.topmenu[menu.menuseq])
						menu.topmenu[menu.menuseq].onmouseover();
					else if(menu.current) {
						menuImg = menu.current.childNodes.item(0);
						menuImg.src = menuImg.src.replace("on.gif", "off.gif");
						if (menu.current.submenu)
							menu.current.submenu.style.display = "none";
						menu.current = null;
					}
				}
			}, 300);
		}
	}

	//Menu item 정의
	for ( i = 0; i < menu.len; i++ ) {
		tempNode = menu.childNodes.item(i);

		//FF, Chrome 빈 textNode를 제외하고 추출
		if (tempNode.nodeType != '3') {
			var j = menu.topmenu.length;
			menu.topmenu[j] = tempNode.getElementsByTagName("a").item(0);
			menu.topmenu[j].submenu = tempNode.getElementsByTagName("ul").item(0);
			menu.topmenu[j].submenuA = new Array();

			for ( k = 0; k < tempNode.getElementsByTagName("ul").item(0).childNodes.length; k++ ) {
				tempChildNode = tempNode.getElementsByTagName("ul").item(0).childNodes.item(k);
				
				if (tempChildNode.nodeType != '3') {
					var l = menu.topmenu[j].submenuA.length;
					menu.topmenu[j].submenuA[l] = tempChildNode.getElementsByTagName("a").item(0);
				}
			}
		}
	}
	
	//Event 정의
	for ( i = 0; i < menu.topmenu.length; i++ )	{
		menu.topmenu[i].onmouseover = function () {
			if (menu.current) {
				menuImg = menu.current.childNodes.item(0);
				menuImg.src = menuImg.src.replace("_on.gif", "_off.gif");
				if (menu.current.submenu)
					menu.current.submenu.style.display = "none";
				menu.current = null;
			}

			if (menu.current != this) {
				menuImg = this.childNodes.item(0);
				menuImg.src = menuImg.src.replace("_off.gif", "_on.gif");
				menu.current = this;
				if (this.submenu)
					this.submenu.style.display = "block";
			} 

			menu.isOver = true;

		}

		for ( j = 0; j < menu.topmenu[i].submenuA.length; j++ )	{
			menu.topmenu[i].submenuA[j].onmouseover = function() {
				
				if (menu.subcurrent != this) {
					menuImg = this.childNodes.item(0);
					if ( menuImg.src.indexOf("_on.gif") < 0 ) 
						menuImg.src = menuImg.src.replace("_off.gif", "_on.gif");
				} 
				
				menu.isOver = true;

			}
			menu.topmenu[i].submenuA[j].onmouseout = function() {
				if (menu.subcurrent != this) {
					menuImg = this.childNodes.item(0);
					menuImg.src = menuImg.src.replace("_on.gif", "_off.gif");
				}
				menu.isOver == false
			}
		}

		menu.topmenu[i].onmouseout = function () {
		}
	}
	
	this.init = function(menuSeq, submenuSeq) {
		if (menuSeq != '-1') {		
			if (menu.topmenu[menuSeq])
				menu.topmenu[menuSeq].onmouseover();
		} 

		if (menuSeq != '-1' && submenuSeq != '-1') {		
			if (menu.topmenu[menuSeq].submenuA[submenuSeq]) {
				menu.topmenu[menuSeq].submenuA[submenuSeq].childNodes.item(0).src 
					= menu.topmenu[menuSeq].submenuA[submenuSeq].childNodes.item(0).src.replace("_off.gif", "_on.gif");
				menu.subcurrent = menu.topmenu[menuSeq].submenuA[submenuSeq]
			}
		} 
			
		menu.menuseq = menuSeq;
		menu.submenuseq = submenuSeq
	}
}

//표준 swf 플레이소스
function showFlash(url,w,h,wmode,id,vars,bg){
 var swfStr = "";
 swfStr = "<object id=\""+id+"\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=" + w + " height=" + h + ">"
 swfStr += "<param name=\"movie\" value=" + url + ">";
 swfStr += "<param name=\"flashvars\" value=" + vars + ">";
 swfStr += "<param name=\"name\" value=\.\">";
 swfStr += "<param name=\"wmode\" value=" + wmode + ">";
 swfStr += "<!--[if !IE]> <-->";
 swfStr += "<object id=\""+id+"\" type=\"application/x-shockwave-flash\" data=" + url + " width=" + w + " height=" + h + ">";
 swfStr += "<param name=\"wmode\" value=" + wmode + ">";
 swfStr += "</object>";
 swfStr += "<!--> <![endif]-->";
 swfStr += "</object>";
 document.write(swfStr);
}
