	/*
		# Notice - required prototype.js
	*/

	var FlashObj = Class.create();
	FlashObj.prototype = {
		initialize: function (__hashArg__) {
			this.hashArg = __hashArg__;
		},

  	  	clsid: 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
        codebase: location.protocol + '//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
        version: '9, 0, 0, 0',
        wmode: 'opaque', //'transparent',
        quality: 'high',
        type: 'application/x-shockwave-flash',
        pluginspage: location.protocol + '//www.macromedia.com/go/getflashplayer',

	    toString: function() {
	    	var basePath = location.protocol + '//' + location.hostname;
	        if ('object' != typeof this.hashArg /*|| 0 >= typeof this.hashArg.length*/) return '';
	        var tmpVal = $H(this.hashArg);
    	    var tag = new String(), embTag = new String();
    	    embTag = '<embed';
            tag += '<object classid="' + this.clsid + '"';
    	    tag += ' codebase="' + this.codebase + '#version=' + (tmpVal['version'] || this.version).strip() + '"';
    	    if (undefined != tmpVal['id']) {
    		    tag += ' id="' + tmpVal['id'].strip() + '"';
    	    }
            tag += ' width="' + (tmpVal['width'] || 0) + '"';
            tag += ' height="' + (tmpVal['height'] || 0) + '"';
            tag += ' >';
            if (undefined != tmpVal['src']) {
                tag += '<param name="movie" value="' + basePath + '/' + tmpVal['src'].strip() + '" />';
                embTag += ' src="' + basePath + '/' + tmpVal['src'].strip();
                if (undefined != tmpVal['vars']) {
                	embTag += '?' + tmpVal['vars'].strip();
               	}
               	embTag  += '"';
            }

            tag += '<param name="base" value=".">'
            tag += '<param name="allowScriptAccess" value="sameDomain" />';
            tag += '<param name="quality" value="' + (tmpVal['quality'] || this.quality).strip() + '" />';
            embTag += ' quality="' + (tmpVal['quality'] || this.quality).strip() + '"';
            tag += '<param name="wmode" value="' + (tmpVal['wmode'] || this.wmode).strip() + '" />';
            embTag += ' wmode="' + (tmpVal['wmode'] || this.wmode).strip() + '"';
            if (undefined != tmpVal['vars']) {
                tag += '<param name="flashvars" value="' + tmpVal['vars'].strip() + '" />';
            }

            embTag += ' base="."';
            embTag += ' allowScriptAccess="sameDomain"';
            embTag += ' type="' + this.type + '"';
            embTag += ' pluginspage="' + this.pluginspage + '"';
            embTag += ' width="' + (tmpVal['width'] || 0) + '"';
            embTag += ' height="' + (tmpVal['height'] || 0) + '"';
            embTag += ' />';
            tag += embTag + '</object>';
    	    return tag;
  	    },

  	    write: function() { document.write(this.toString()); },
  	    innerHTML : function() { return this.toString(); }
    }

	function LoginChk(strUrl){
		alert('·Î±×ÀÎ ÈÄ »ç¿ë °¡´ÉÇÑ ¸Þ´ºÀÔ´Ï´Ù.');
		if ( strUrl == '' ){
			location.href = '/myasiana/myasiana00.asp';
		} else {
			location.href = '/myasiana/myasiana00.asp?AsianaGoURL='+ strUrl;
		}
	}

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 loadFlash(fname,w,h,gubun) {
	var oStr = "";
	switch(gubun) {
	
		case "movie":

		    oStr += "<object id=mediaPlayer classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 standby=Loading Microsoft Windows Media Player components... type=application/x-oleobject width="+w+" height="+h+">"
			oStr += "<param name=Filename value="+fname+">"
			oStr += "<param name=AutoStart value=1>"
			oStr += "<param name=ShowControls value=0>"
			oStr += "<param name=ShowStatusBar value=0>"
			oStr += "<param name=ShowDisplay value=0>"
			oStr += "<param name=ShowTracker value=0>"
			oStr += "<param name=height value="+h+">"
			oStr += "<param name=width value="+w+">"
			oStr += "<param name=SendMouseClickEvents value=1>"
			oStr += "<param name=EnableContextMenu value=false>"
			oStr += "<embed src="+fname+" width="+w+" height="+h+" autostart=1 filename="+fname+" showcontrols=0 showstatusbar=0 showdisplay=0 showtracker=0 sendmouseclickevents=1 enablecontextmenu=false></embed>"
			oStr += "</object>"
			break;

		default:
			oStr = "<Embed src='"+fname+"'+ quality=high width="+w+" height="+h
			oStr += "	pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash></Embed>"
			break;	
	}
	
	document.write(oStr);
}






// add 080930 sloppy

////////////////////////////////////////////////////////////////////////////////////
// flash ¿¬µ¿ °ü·Ã function
////////////////////////////////////////////////////////////////////////////////////
//
// Flash Grid Component µ¿ÀÛ °³°ý
//
// 1. flash°¡ ·ÎµùÀÌ ¿Ï·áµÇ¸é flash ==> script dataGridLoadOk() È£Ãâ
// 2. ·Îµù Á÷ÈÄ Object ÅÂ±×ÀÇ param¿¡¼­ flashVars¼Ó¼ºÀÇ requestUrlÀÌ Á¸ÀçÇÏ¸é flash ==> script flash_enc() È£Ãâ
// 3. ·Îµù Á÷ÈÄ Object ÅÂ±×ÀÇ param¿¡¼­ flashVars¼Ó¼ºÀÇ requestUrlÀÌ Á¸ÀçÇÏÁö ¾ÊÀ¸¸é ¸ØÃã
// 4. Àü¼Û ¹öÆ°À» Å¬¸¯ ½Ã¿¡ flashDataGridSend()¸¦ È£ÃâÇÏ¸é flash ==> script flash_enc() È£Ãâ
////////////////////////////////////////////////////////////////////////////////////

// Flash Grid load ¿Ï·á ¿©ºÎ
var isFlashGridLoadOk = false;

// Flash Grid ÀÛ¾÷Áß ¿©ºÎ
var isFlashGridWorkingOk = false;

// flashLoad(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashLoad(url,w,h,id,bg,vars,win) {	

	win = "transparent";	

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ

	var flashStr=
	"<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='"+w+"' height='"+h+"' id='"+id+"' align='middle' alt='flash object' title=''>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<param name='base' value='.'>"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";



	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);	

	//FlashÀÇ ExternalInterface°¡ Form Tag³»¿¡¼­ ¿À·ù³ª´Â ¹ö±×¸¦ ÇØ°áÇÏ´Â ÄÚµå     
	eval("window." + id + " = document.getElementById('" + id + "');");



}

/***************************************
* IMAGE_ROLLOVER
***************************************/

function menuOn(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}

function menuOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}


	/***************************************
	* Åõ¸í png Ä¡È¯
	***************************************/
	function setPng24(obj,switche) {
	//aa = document.getElementById(obj).className;
	//alert(aa);
			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 '';
	}
