	/*
		# 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°³ÀÎÁ¤º¸º¸È£¸¦ À§ÇØ ´Ù½Ã ÇÑ¹ø ·Î±×ÀÎÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.');
		}
//		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>')
}


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;
}


//.. 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>');
}



//.. popup script

	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 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 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 = goTextmode;

	function goTextmode(){

		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/20th.html','20th','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');
	}



	function ClubMessage(){
alert('¾Æ½Ã¾Æ³ªÅ¬·´ Àü¿ë È¨ÆäÀÌÁö¿¡¼­ ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.\nÇÏ´Ü È®ÀÎÀ» ´©¸£½Ã¸é ÇØ´ç È¨ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù.');
		window.open('http://flyasianaclub.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="220" 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="220" 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="220" 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="220" 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="220" 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="220" 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_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="570" id="main" align="middle">';
//	 html += '<param name="allowScriptAccess" value="always" />';
//	 html += '<param name="movie" value="/common/swf/sub_1.swf" />';
//	 html += '<param name="quality" value="high" />';
//	 html += '<param name=FlashVars value="flvlink=/common/flv/test.flv" />';
//	 html += '<param name="bgcolor" value="#ffffff" />';
//	 html += '<param name="wmode" value="transparent" />';
//	 html += '<embed src="/common/swf/sub_1.swf" flashvars="flvlink=/common/flv/test.flv" wmode="transparent" quality="high" bgcolor="#ffffff" width="770" height="570" name="sub_1" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
//	 html += '</object>';
//	 document.write(html);
//}
//function sub_2(){
//	 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="520" id="main" align="middle">';
//	 html += '<param name="allowScriptAccess" value="always" />';
//	 html += '<param name="movie" value="/common/swf/sub_2.swf" />';
//	 html += '<param name="quality" value="high" />';
//	 html += '<param name=FlashVars value="number=/common/xml/number.asp" />';
//	 html += '<param name="bgcolor" value="#ffffff" />';
//	 html += '<param name="wmode" value="transparent" />';
//	 html += '<embed src="/common/swf/sub_2.swf" flashvars="number=/common/xml/number.asp" wmode="transparent" quality="high" bgcolor="#ffffff" width="770" height="950" name="sub_2" 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(){ 
	/*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];
		}
}
