/*
===============================================================================
* common
===============================================================================
*/

//image link bluring
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


//one day
function setCookie( name, value, expiredays )
{
    var todayDate = new Date();
    todayDate.setDate( todayDate.getDate() + expiredays );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function closeWin(val)
{
    if ( document.forms[0].Notice.checked )
	setCookie( "popup", "ok" ,1);

	 if(val=='ly'){
		parent.layerhide('popup_layer');
	 }
}

function notice_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 chng_bg(obj){
obj.bgColor='#FFFFFF'; 
}

function chng_back(n_obj){
n_obj.bgColor='#DBE9F6'; 
}
/*
/////////// ÆË¾÷ html ¿¡ »ðÀÔºÎºÐ :
<form>
<table cellpadding="0" cellspacing="0" width="415">
 <tr>
  <td><img src="/popup/popup_box.jpg"></td>
 </tr>
   <tr>
  <td bgcolor="#EDEDED" height="40" valign="top">
  <table cellpadding="0" cellspacing="0" width="415" align="center">
   <tr>
    <td height="40" align="right" align="center">
     <input type="checkbox" name="Notice" onClick="closeWin();">
     <font face="µ¸¿ò" size="2" color="#343434">ÇÏ·ç µ¿¾È ¿­Áö ¾ÊÀ½</font>
             <a href="#" onClick="javascript:history.onclick=closeWin()"
                                         style="font-family:±¼¸²Ã¼;font-size:9pt;background-color:#ffffff;color:#3300cc;">[´Ý±â]</a>
     </td>    
   </tr>
  </table></td>
   </tr>
</table>
</form>

/////////// insert html 
<script language="JavaScript"> 
<!-- JavaScript 
if ( notice_getCookie( "popup" ) != "ok" ) 
{ 
 window.open('/popup/popup.html','_blank','toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=no,width=460,height=580');
} 
// - JavaScript - --> 
*/

//slide menu #02
var stmnGAP1 = 52; //default
var stmnWatchGAP1 = 30; //default
var stmnGAP2 = 20; //scroll
var stmnBASE = 30;
var stmnActivateSpeed = 300; 
var stmnScrollSpeed = 10; 

        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

                stmnStartPoint = parseInt(STATICMENU.style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                        stmnRefreshTimer = stmnScrollSpeed;
                }
                                         else {
                        stmnRefreshTimer = stmnActivateSpeed;
                }

                setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }

        function RefreshWatchMenu()
        {
                var WatchStartPoint, WatchEndPoint, WatchRefreshTimer;

                WatchStartPoint = parseInt(WATCHMENU.style.top, 10);
                WatchEndPoint = document.body.scrollTop + stmnGAP2;
                if (WatchEndPoint < stmnWatchGAP1) WatchEndPoint = stmnWatchGAP1;

                if ( WatchStartPoint != WatchEndPoint ) {
                        WatchScrollAmount = Math.ceil( Math.abs( WatchEndPoint - WatchStartPoint ) / 15 );
                        WATCHMENU.style.top = parseInt(WATCHMENU.style.top, 10) + ( ( WatchEndPoint<WatchStartPoint ) ? -WatchScrollAmount : WatchScrollAmount );
                        WatchRefreshTimer = stmnScrollSpeed;
                }
                                         else {
                        WatchRefreshTimer = stmnActivateSpeed;
                }

                setTimeout ("RefreshWatchMenu();", WatchRefreshTimer);
        }



        function InitializeStaticMenu()
        {
                STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshStaticMenu();
                }

		function InitializeWatchMenu()
        {
                WATCHMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshWatchMenu();
                }

/*
<div id="STATICMENU" style="width:81px; height:294px; position:absolute; left:878px; top:231px; z-index:100;" >
<table cellpadding="0" cellspacing="0">
    <table align="center" cellpadding="0" cellspacing="0" width="140" height="20">
        <tr>
            <td>
            </td>
        </tr>
    </table>
</div>     
<script language="javascript">InitializeStaticMenu();</script> 
*/


//slide menu #02

//top link
var Xpos = 0;
var Ypos = 0;
var Ygravity = 0.85;
var scrollPos = 0;
var oldScrollPos = 0;

function FloatMenu() {
docWidth = document.body.clientWidth; // Update document width
docHeight = document.body.clientHeight; // Update document height
oldScrollPos = scrollPos;
scrollPos = document.body.scrollTop; // Update scrollbar position

Xpos = 907;
//Xpos = (docWidth - floater.offsetWidth) - 10; //¿À¸¥ÂÊ ¿©¹é ¹è³Ê°¡ ¿À¸¥ÂÊ¿¡ ºÙÀ»°æ¿ì
//Xpos = (docWidth / 2) + 410; // Áß¾ÓÁ¤·ÄÀÏ°æ¿ì. " + 410 Àº Å×ÀÌºí Å©±â / 2 "
Yboundary = ((scrollPos + docHeight) - floater.offsetHeight) - 155; //ÇÏ´Ü¿©¹é

if (floater.offsetTop < Yboundary - 1) // Object is behind boundary
Ypos += 2;

if (floater.offsetTop > Yboundary + 1) // Object is past boundary
Ypos -= 1;

Ypos *= Ygravity; // Slow object down

floater.style.pixelLeft = Xpos;
floater.style.pixelTop += Ypos; // Make object bounce
}


//rollover image
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_showHideLayers() { //v6.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; }

}

//jump menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//ÆË¾÷¶ç¿ì±â
function winOpen (doc, wname, top, left, width, height) {
  window.open(doc, wname, 'scrollbars=yes,resizable=no,top='+top+',left='+left+',width='+width+',height='+height);
}
function winOpen2 (doc, wname, top, left, width, height) {
  window.open(doc, wname, 'scrollbars=no,resizable=no,top='+top+',left='+left+',width='+width+',height='+height);
}

//layer display
function layerdisplay ( name ) {
  div1 = document.getElementById( name );
  abc = div1.style.display;
  if ( abc == 'none' ) {
    div1.style.display = 'block';
  } else if ( abc == 'block' ) {
    div1.style.display = 'none';
  }
}

//layer hide
function layerhide ( name ) {
  div1 = document.getElementById( name );
  div1.style.display = 'none';
}

//layer block
function layerblock ( name ) {
  div1 = document.getElementById( name );
  div1.style.display = 'block';
}

//layer toggle
function layertoggle ( name ) {
  div1 = document.getElementById( name );
  abc = div1.style.display;
  if ( abc == 'none' ) {
    div1.style.display = 'block';
  } else if ( abc == 'block' ) {
    div1.style.display = 'none';
  }
}

function layerdisplay2 ( name ) {
  div1 = document.getElementById('layer01');
  div2 = document.getElementById('layer02');
  if ( name == 'layer01' ) {
    div1.style.display = 'block';
    div2.style.display = 'none';
  } else if ( name == 'layer02' ) {
    div1.style.display = 'none';
    div2.style.display = 'block';
  }
}




//FOR LAYER HIDE
function hideSelectList(name,val)	//' name : select name, val :»óÅÂ (no-º¸ÀÓ, yes-¼û±è)
{
	var obj;
	obj = document.getElementById(name);
	if(val=="no"){
		if( obj ) obj.style.visibility = "visible";
	}else if(val=="yes"){
		if( obj ) obj.style.visibility = "hidden";
	}

}


//popup in center window
 function centerWindow(URL, name, width, height, scroll) {
  var iMyWidth = (window.screen.width-width)/2;
  var iMyHeight= (window.screen.height-height)/2 - 20;
  var child = window.open(URL, name, "width="+ width +", height="+ height + " resizable=no, left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ", scrollbars=" + scroll);
  child.focus();
}


/*
===============================================================================
* ´å³Ý ÇÃ·¡½Ã ÀÎ¼ö ¿¬°á
* return ['°æ·Î', ÀÎ¼ö1,ÀÎ¼ö2,°¡·Î,¼¼·Î];
===============================================================================
*/

	//ÆäÀÌÁö Á¤º¸ ³Ñ±â´Â ¹æ¹ýÀº ÆäÀÌÁö ÀÌ¸§º°·Î ´øÁö µð·ºÅä¸®º°·Î ÇÏ´øÁö ¾Æ´Ï¸é ÆäÀÌÁö »ó´Ü¿¡ º¯¼ö¸¦ µÎ¾î¼­µµ °¡´ÉÇÕ´Ï´Ù.
	// top ÇÃ·¡½Ã ÀÎÀÚ°ª Àü´Þ
	function getTopFlashInfo()
	{
		var subLM10;
		var subLM11;

		var url = window.location.href;
		var array_url = url.split("/");  // split ÇÔ¼ö»ç¿ë..
		var array_length = array_url.length - 2 ;   // ¸¶Áö¸· Æú´õ¸í
		var FolderName = array_url[array_length];
		url = url.substring(url.lastIndexOf("/")+1);
		url = url.substring(0, url.indexOf("."));	 //ÆÄÀÏ ÀÌ¸§
		url_set = FolderName+"/"+url;

		switch(url_set)
		{
			case "main" :			return [,];
			
			case "restaurant/eating04" :		
			case "restaurant/eating05" :		
			case "restaurant/eating08" :		
			case "restaurant/eating10" :		
			case "ski/kid" :		
				return [2,4];
				break;
			default :				return [,];
		}	
	}	

	// ·¹ÇÁÆ® ÇÃ·¡½Ã ÀÎÀÚ°ª Àü´Þ
	function getLeftFlashInfo()
	{
		var subLM10;
		var subLM11;

		var url = window.location.href;
		var array1_url = url.split("?");  //  ÀÎÀÚ°ªÀ» À§ÇÑ ¹è¿­ ¼³Á¤.
		var Params = array1_url[1];		  // ? ÀÌÈÄÀÇ ÀÎÀÚ°ª
		var array_url = array1_url[0].split("/");  // split ÇÔ¼ö»ç¿ë..
		
		
		var array_length = array_url.length - 2 ;   // ¸¶Áö¸· Æú´õ¸í
		var FolderName = array_url[array_length];   // Æú´õ³×ÀÓ
		
		url = url.substring(url.lastIndexOf("/")+1);
		url = url.substring(0, url.indexOf("."));	 //ÆÄÀÏ ÀÌ¸§
		url_set = FolderName+"/"+url;
		

		//alert (url);
		//alert (array_url);
		//alert (array_url.length);
		//alert (array_length);
		//alert (FolderName);
		//alert (url_set);
		
		//alert (Params);
		

		switch(url_set)
		{
			case "main" :			return [,];

			case "room/index" :			return [0,0];
			case "room/condo" :			return [1,1];
			case "room/condo_02" :		return [1,2];
			case "room/hotel" :			return [2,0];
			case "room/youth" :			return [3,0];
			case "room/online" :		return [4,0];
			case "community/group":	    return[6,0]
			case "room/realpackage" :
			case "room/package_detail" :   
				return [5,0];
			case "favorite/realpackage" :			return [5,0]; //¸®¾óÆÐÅ°Áö
			case "condodrawing/condo_drawing" : return [0,0];
			//case "favorite/realpackage3" :			return [5,0]; //¸®¾óÆÐÅ°Áö 12/25ÀÏ ÆÇ¸Å
			//case "favorite/realpackage0708" :		return [5,0]; //¸®¾óÆÐÅ°Áö0708
			//case "favorite/snowpackage" :           return [5,0];
			//case "favorite/mnblove" :			    return [5,0];


			case "restaurant/index" :
			case "restaurant/eating02" :
			case "restaurant/eating03" :
			case "restaurant/eating04" :
			case "restaurant/eating05" :
			case "restaurant/eating06" : 
			case "restaurant/eating10" : 
			case "restaurant/eating08" :
				return [1,0];
		
			case "facility/index" :
			case "facility/facility02" :
			case "facility/facility03" :
			case "facility/facility04" :
			case "facility/facility05" :
			case "facility/facility06" :
			case "facility/facility07" :
			case "facility/facility08" :
			case "facility/facility09" :
			case "facility/shopping07" :
				return [2,0];

			case "facility/shopping" :
			case "facility/shopping02" :
			case "facility/shopping03" :
			case "facility/shopping04" :
			case "facility/shopping05" :
			case "facility/shopping06" :
			case "facility/shopping08" :
			case "facility/shopping09" :
				return [3,0];

			case "facility/seminar" :
			case "facility/seminar02" :
			case "facility/seminar03" :
			case "facility/seminar04" :
			case "facility/seminar05" :
			case "facility/seminar06" :
			case "facility/seminar07" :
				return [4,0];

			case "facility/ski" :
			case "facility/ski02" :
			case "facility/ski03" :
			case "facility/ski04" :
			case "facility/ski05" :
			case "facility/ski06" :
			case "facility/ski07" :
			case "facility/ski08" :
			case "facility/ski09" :
				return [5,0];

			case "facility/wedding" :			return [6,0];


			case "golf/index" :	return [1,1];		
			case "golf/mgc_02" :		return [1,2];
			case "golf/mgc_03" :		return [1,3];
			case "golf/mgc_04" :return [1,4];
			case "golf/golf_online" :			return [3,0];
			case "golf/pgc" :			return [2,1];
			case "golf/pgc_02" :			return [2,2];
			case "golf/pgc_03" :			return [2,3];
			case "golf/outdoor" :			return [4,1];			
			case "ski/slope" :			return [6,0];
			case "ski/master" :
			case "ski/master_view" :
				return [8,0];
			//case "ski/kid" :			return [4,0];			
			//case "ski/daemon" :			return [5,0];			
			//case "ski/snow" :			return [7,0];
			//case "ski/open" :			return [8,0];
			//case "ski/ski_schedule" :			return [10,0];
			//case "ski/ski_schedule02" :			return [10,0];
			//case "ski/ski_schedule03" :			return [10,0];
			//case "ski/ski_schedule04" :			return [10,0];


            case "wellbeing/waterpark" :			return [1,0];


			case "wellbeing/leports" :			return [1,1];
			case "wellbeing/leports_xball01" :
			case "wellbeing/leports_xball02" :
			case "wellbeing/leports_xball03" :
				return [1,2];
			case "wellbeing/leports_challengepark01" :
			case "wellbeing/leports_challengepark02" :
			case "wellbeing/leports_challengepark03" :
				return [1,3];
			case "wellbeing/leports_rafting" :			return [1,4];
			case "wellbeing/leports_challengefamily" :			return [1,5];
			case "wellbeing/leports_atv" :			return [1,6];
			case "wellbeing/sky" :
			case "wellbeing/sky02" :
			case "wellbeing/sky03" :
				return [2,0];
			case "wellbeing/garden" :			return [2,0];
			case "wellbeing/montblanc" :			return [3,0];  
			case "wellbeing/air" :			return [4,0];
			case "wellbeing/penguin" :			return [5,0];
			case "wellbeing/walk" :			return [6,0];
			case "wellbeing/road" :			return [7,0];
			case "wellbeing/mountain_a01" :			return [8,1];

			case "wellbeing/mountain" :
			case "wellbeing/mountain_b02" :
			case "wellbeing/mountain_b03" :
			case "wellbeing/mountain_b04" :
			case "wellbeing/mountain_b05" :
			case "wellbeing/mountain_b06" :
			case "wellbeing/mountain_b07" :
			case "wellbeing/mountain_b08" :
				return [8,2];

			case "wellbeing/mountain_c01" :
			case "wellbeing/mountain_c02" :
			case "wellbeing/mountain_c03" :
			case "wellbeing/mountain_c04" :
			case "wellbeing/mountain_c05" :
				return [8,3];

			case "wellbeing/mountain_d01" :
			case "wellbeing/mountain_d02" :
			case "wellbeing/mountain_d03" :
			case "wellbeing/mountain_d04" :
				return [8,4];
			case "business/insurance" :			return [10,0];


			case "business/member1" :			return [1,1];
			case "business/member2" :			return [1,2];
			case "business/jeju" :			return [2,0];
			case "business/ebrochure" :
			//case "business/ebrochure_apply" :
			//case "business/ebrochure_apply_view" :
			//case "business/ebrochure_apply_write" :			return [3,0];
			case "business/boardlist" :
			case "business/boardview" :
			case "business/boardwrite" :			return [3,0];



			case "community/guidemap" :			return [1,0];

			case "community/customer" :			return [2,0];

			case "community/customer_faq" :			return [2,1];

			case "community/customer_counsel" :			
			case "community/customer_counsel_replylist" :		
			case "community/customer_counsel_alllist" :	
				return [2,2];

			case "community/customer_postscript" :			
			case "community/customer_postscript_replylist" :		
			case "community/customer_postscript_alllist" :
			case "community/customer_postscript_read" :
				return [2,3];

			case "community/customer_hot" :			
			case "community/customer_hot_view_1" :
			case "community/customer_hot_view_2" :
			case "community/customer_hot_view_3" :
			case "community/customer_hot_view_4" :
			case "community/customer_hot_view_5" :
			case "community/customer_hot_view_6" :
			case "community/customer_hot_view_7" :
			case "community/customer_hot_view_8" :
			case "community/customer_hot_view_9" :
			case "community/customer_hot_view_10" :
			case "community/customer_hot_view_11" :
			case "community/customer_hot_view_12" :
				return [2,4];

			case "community/boardlist" :
				switch(Params){
					case "Table=W_Notice&Category=WNotice" :	// °øÁö»çÇ×
						return [3,0];
					case "Table=W_News&Category=WNews" : // ÈÖÆÅ¼Ò½Ä
						return [4,0];
					case "Table=W_Freeboard&Category=WFreeboard" : // ÀÚÀ¯°Ô½ÃÆÇ
						return [5,0];
					case "Table=W_Mobile&Category=WMobile" : //¸ð¹ÙÀÏ Q&A
						return [6,0];
					case "Table=W_TourNews&Category=WTourNews" : 
						return [11,0];
					case "Table=W_center&Category=Wcenter" :
						return [7,0];

				}	
			case "community/boardview" :  

				if(Params.indexOf("Table=W_Notice&Category=WNotice") > -1 ){	//°øÁö
					return [3,0];
				}else if(Params.indexOf("Table=W_News&Category=WNews") > -1 ){	//ÈÖÆÅ
					return [4,0];
				}else if(Params.indexOf("Table=W_Freeboard&Category=WFreeboard") > -1 ){	// ÀÚÀ¯
					return [5,0];
				}else if(Params.indexOf("Table=W_Mobile&Category=WMobile") > -1 ){	//¸ð¹ÙÀÏ
					return [6,0];
				}else if(Params.indexOf("Table=W_TourNews&Category=WTourNews") > -1 ){
					return [11,0];
				}else if(Params.indexOf("Table=W_center&Category=Wcenter") > -1 ){
					return [7,0];
				}

			case "community/boardlist_3" :			
			case "community/boardview_3" :
			case "community/boardwrite_3" :
				return [5,0];

			case "community/boardlist_4" :			
			case "community/boardview_4" :
			case "community/boardwrite_4" :
				return [6,0];

			case "community/boardlist_5" :			
			case "community/boardview_5" :
				return [11,0];

			case "community/group" :			return [8,0];

			case "community/boardlist_6" :			
			case "community/boardview_6" :
			case "community/boardwrite_6" :
				return [9,0];


			case "etc/sitemap" :			return [1,0];

			case "etc/company" :			return [1,0];

			case "etc/promotion" :			return [2,0];

			case "etc/map" :			return [3,0];

			case "etc/recruit_01" :			return [1,0];

			case "etc/recruit_007" :        return [1,0];

			case "etc/recruit_02" :			return [2,0];

			case "etc/recruit_03" :			return [3,0];

			case "etc/recruit_04" :			return [4,0];

			case "etc/recruit_theban" :			return [5,0];

			case "etc/recruit_ppisland" :  return [6,0];

			case "etc/recruit_resort" : return [7,0];

			case "etc/member" :			
			case "etc/member01_02" :
			case "etc/member01_03" :
				return [1,0];

			case "etc/member02_01" :			
			case "etc/member02_02" :
			case "etc/member02_03" :
				return [2,0];

			case "etc/character" :			return [1,0];

			case "seasonticket0708/passmain" :			return [1,0];

			case "seasonticket0708/pass_02" :			return [2,0];


			case "member/login" :			return [2,0];

			case "member/join" :			
			case "member/reg_name19" :
			case "member/join_fm" :
			case "member/memchoice":
				return [1,0];

			

			case "favorite/event" :		
			case "favorite/event_2" :
			case "favorite/event_3" :
			case "favorite/event02" :
			case "favorite/event03" :
			case "favorite/event04" :
			case "favorite/event05" :
			case "favorite/event06" :
			case "favorite/event07" :
			case "favorite/ppucc" :
				return [1,0];

			case "favorite/environs_food" :			
			case "favorite/environs_food02" :
			case "favorite/environs_food03" :
			case "favorite/environs_food04" :
				return [2,3];

			case "favorite/package":
			case "favorite/package_2":
			case "favorite/package_3":
			//case "favorite/winterpackage" :
				return [3,0]; //ÆÐÅ°Áö

			case "favorite/sketch" :			
			case "favorite/sketch_view" :
			case "favorite/sketch_read" :	
			
			case "favorite/news_read" :
				return [4,0];

			case "favorite/online_cam" :			
				return [5,0];

			case "favorite/fee_ski" :			
			case "favorite/fee_ski02" :
			case "favorite/fee_ski03" :
			case "favorite/fee_ski04" :
			case "favorite/fee_ski05" :
				return [6,1];

			case "favorite/fee_room" :			
			case "favorite/fee_room02" :
				return [6,1];

			//case "favorite/dcinfo" :			
				return [6,3];



			//case "favorite/gallery_photo" :			
		//	case "favorite/gallery_photo_read" :
		//		return [9,1];

			case "favorite/gallery_autumn" :			
			case "favorite/gallery_autumn2" :
				return [7,1];

			case "favorite/gallery_ad" :			
			case "favorite/gallery_ad02" :
			case "favorite/gallery_ad03" :
				return [7,2];

			case "favorite/gallery_movie" :			
			case "favorite/gallery_movie02" :
				return [7,3];

			case "favorite/gallery_web" :			return [7,4];

			
			case "favorite/traffic_stated_01" :			return [8,1];

/*			case "favorite/traffic_stated" :			return [8,1];

			case "favorite/traffic_0708" :			
			case "favorite/traffic_0708_gyeonggi" :
			case "favorite/traffic_0708_inchun" :
				return [8,2];

			case "favorite/traffic_0708_cheonan_asan" :			
			case "favorite/traffic_0708_cheongiu" :
			case "favorite/traffic_0708_daejun" :
			case "favorite/traffic_0708_kwangju" :
			case "favorite/traffic_0708_cdaegu" :
			case "favorite/traffic_0708_pohang" :
			case "favorite/traffic_0708_gumi" :
			case "favorite/traffic_0708_ulsan" :
			case "favorite/traffic_0708_busan" :
			case "favorite/traffic_0708_etc" :
				return [8,3];
*/
			case "favorite/traffic_free" :			
			case "favorite/traffic_free_2" :
			case "favorite/traffic_free_3" :
			case "favorite/traffic_free_4" :
			case "favorite/traffic_free_5" :
				return [8,2];
			
			case "favorite/traffic_map" :			return [8,3];

	
			case "favorite/weather" :			return [9,0];

			case "favorite/mobile" :			return [10,0];

			case "favorite/game" :			return [11,0];

			case "favorite/music" :			return [12,0];


		/*	case "restaurant/eating05" :		
			case "restaurant/eating08" :		
			case "restaurant/eating10" :		
			case "ski/kid" :		
				return [6,1];
				break;    */
			default :				return [2,1];
		}	

	}	

// flashWrite 
function DotflashWrite(url,w,h,id,bg,vars,win){ 

	if(vars =="TOP"){
		var pageInfoObj = getTopFlashInfo();
	}else{
		var pageInfoObj = getLeftFlashInfo();
	}

	 //alert(pageInfoObj);  //ÆÐ½ºÇ¥½ÃºÎºÐ

	var subLM00 = ""+pageInfoObj[0];
	var subLM01 = ""+pageInfoObj[1];

	 //code
	 var flashStr= "";

		 flashStr= flashStr +"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ";
		 flashStr= flashStr +"codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ";
		 flashStr= flashStr +"width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>";
		 flashStr= flashStr +"<param name='AllowScriptAccess' value='always' />";
	 if(vars =="TOP"){
		 flashStr= flashStr +"<param name='movie' value='"+url+"?pageNum=$subLM00&subNum=$subLM01' />";
	 }else{
		 flashStr= flashStr +"<param name='movie' value='"+url+"?menu=$subLM00&VRleft=$subLM01' />";
	 }
		flashStr= flashStr +"<param name='wmode' value='"+win+"' />";
		 flashStr= flashStr +"<param name='menu' value='false' />";
		 flashStr= flashStr +"<param name='quality' value='high' />";
		 flashStr= flashStr +"<param name='bgcolor' value='"+bg+"' />";
	 if(vars =="TOP"){
		 flashStr= flashStr +"<embed src='"+url+"?pageNum=$subLM00&subNum=$subLM01' wmode='"+win+"' menu='false' ";
		 flashStr= flashStr +"quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' ";
		 flashStr= flashStr +"AllowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	 }else{
		 flashStr= flashStr +"<embed src='"+url+"?menu=$subLM00&VRleft=$subLM01' wmode='"+win+"' menu='false' ";
		 flashStr= flashStr +"quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' ";
		 flashStr= flashStr +"AllowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	 }
		flashStr= flashStr +"</object>"; 

	flashStr = flashStr.replace(/\$subLM00/, subLM00);
	flashStr = flashStr.replace(/\$subLM01/, subLM01);

	 //code print
	 document.write(flashStr); 
}



/*
===============================================================================
*  i.e patch
===============================================================================
*/

// flashWrite 
function flashWrite(url,w,h,id,bg,vars,win){ 

 //code
 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'>"+ 
 "<param name='AllowScriptAccess' value='always' />"+ 
 "<param name='movie' value='"+url+"' />"+ 
 "<param name='wmode' value='"+win+"' />"+ 
 "<param name='menu' value='false' />"+ 
 "<param name='quality' value='high' />"+ 
 "<param name='bgcolor' value='"+bg+"' />"+ 
 "<param name='allowScriptAccess' value='always' />"+ 
 "<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>"; 

 //code print
 document.write(flashStr); 

} 
//avi
function aviPlay(src,w,h) { 
document.write('<embed src="'+src+'" width='+w+' height='+h+'>') 
} 



/*
===============================================================================
*  Äü¸Þ´º Link
===============================================================================
*/
//Quick Menu Link
function QuickLink(menuName){
 if(menuName=="M01"){  //ÀÌ¿ë¿ä±Ý
  location.href="/favorite/fee_room.aspx";
 }else if(menuName=="M02"){  //±³Åë¾È³»
	location.href="/favorite/traffic_stated_01.aspx";
 }else if(menuName=="M03"){  //³¯¾¾¾È³»
	location.href="/favorite/weather.aspx";
 }else if(menuName=="M04"){  //°´½Ç¿¹¾à °¡´ÉÀÏÁ¶È¸
	window.open('/Reservation/room_ava_inq_main.aspx','room_ava_inq_main','toolbar=no,scrollbars=no,width=650,height=420');
 }else if(menuName=="M05"){  //°´½Ç¿¹¾à
	location.href="/room/online.aspx";
 }else if(menuName=="M06"){  //¿þµù½Ã¼³
	location.href="/facility/wedding.aspx";
 }else if(menuName=="M07"){  //ÀÌº¥Æ®
	location.href="/favorite/event.aspx";
 }else if(menuName=="M08"){  //ÆÐÅ°Áö
	location.href="/favorite/package.aspx";
 }else if(menuName=="M09"){  //¿Â¶óÀÎÄ·
	location.href="/favorite/online_cam.aspx";
 }else if(menuName=="M10"){  //´ÜÃ¼ÀÌ¿ë
	location.href="/community/group.aspx";
 }else if(menuName=="M11"){  //ÁÖº¯°ü±¤
	location.href="/favorite/environs_tour/ntour_06_01.aspx";
 }else if(menuName=="M12"){  //ÁÖº¯¼÷¹Ú
	location.href="javascript:winOpen ('/favorite/environs_lodging.aspx', 'popup', '0', '0', '1000', '740')";
 }else if(menuName=="M20"){  //È¸¿ø±ÇºÐ¾ç
	location.href="/business/member1.aspx";
 }else if(menuName=="M21"){  //ÈÖ´Ð½º¾ÆÀÏ·£µå
	window.open("http://www.ppisland.co.kr");
 }else if(menuName=="M22"){  //¿öÅÍÆÄÅ©
	location.href="/wellbeing/waterpark.aspx";
 }else if(menuName=="M23"){  //´õ¹Ý°ñÇÁÀå
	window.open("http://www.theban.co.kr");
 }else if(menuName=="M24"){  //±Â¹ö½º
	window.open("http://www.goodbus.co.kr");
 }else if(menuName=="M30"){  //½ÎÀÌ¿ùµå
	window.open("http://town.cyworld.com/pp");
 }
}


/*
===============================================================================
*  event Link
===============================================================================
*/

function EventLink(EventCode){ 

    if(EventCode=="M01"){ // ÀÌº¥Æ®01 ½ÃÁð±Ç
        //location.href="/seasonticket0708/passmain.aspx"; 
    }else if(EventCode=="M02"){  //ÀÌº¥Æ®02 ¼÷¹ÚÆÐÅ°Áö
        location.href="/favorite/package.aspx"; 
    }else if(EventCode=="M03"){  //ÀÌº¥Æ®03 ¸ð¹ÙÀÏ
        location.href="/favorite/mobile.aspx";
    }else if(EventCode=="M04"){  //ÀÌº¥Æ®04  ´Ù¾çÇÑ ÇýÅÃ
        location.href="/favorite/event.aspx";
    }else if(EventCode=="M05"){  //ÀÌº¥Æ®05  ¸®¾óÈÖÆÅ ½ºÅ°ÆÐÅ°Áö
        location.href="/favorite/realpackage.aspx";
	}else{
        alert(EventCode);
    }  
}

/*
===============================================================================
*  left contents Link
===============================================================================
*/

function LeftLink(LeftCode){ 

    if(LeftCode=="M01"){ //#1 ´ÜÃ¼ÀÌ¿ë¾È³»
        location.href="/community/group.aspx"; 
    }else if(LeftCode=="M02"){  //#2 ½ÃÁð±Ç
        //location.href="/seasonticket0708/passmain.aspx"; 
    }else if(LeftCode=="M03"){  //#3 ÁÖÂ÷Àå¾È³»µµ
		window.open('/popup/parkingmap.aspx','parkingmap','toolbar=no,scrollbars=no,width=971,height=644');
    }else if(LeftCode=="M04"){  //#4 ¸ð¹ÙÀÏ
        location.href="/favorite/mobile.aspx"; 
    }else if(LeftCode=="M05"){  //#5 ÁÖº¯¼÷¹Ú
		window.open('/favorite/environs_lodging.aspx','personalinfo','toolbar=no,scrollbars=yes,width=1000,height=800');
    }else if(LeftCode=="M06"){  //#6 ÇöÀå½ºÄÉÄ¡
        location.href="/favorite/sketch.aspx"; 
    }else{
        alert(LeftCode);
    }  
}

/*
===============================================================================
*  right contents Link
===============================================================================
*/

function RightLink(RightCode){ 

    if(RightCode=="M01"){ //#1 ÇÇ´Ð½º ¾ÆÀÏ·£µå
        window.open('http://www.ppisland.co.kr'); 
    }else if(RightCode=="M02"){  //#2 ¿öÅÍÆÄÅ©
		location.href="/wellbeing/waterpark.aspx"; 
    }else if(RightCode=="M03"){  //#3 ´õ¹Ý
        window.open('http://www.theban.co.kr'); 
    }else if(RightCode=="M04"){  //#4 ±Â¹ö½º
        window.open('http://www.goodbus.co.kr'); 
    }else{
        alert(RightCode);
    }  
}

/*
===============================================================================
*  small Link
===============================================================================
*/

function SmallLink(SmallCode){ 

    if(SmallCode=="M01"){
        location.href="/etc/character.aspx"; 
    }else if(SmallCode=="M02"){
        location.href="/facility/wedding.aspx"; 
    }else if(SmallCode=="M03"){
        location.href="/favorite/music.aspx"; 
    }else{
        alert(SmallCode);
    }  
}


/*
===============================================================================
*  copyright Link
===============================================================================
*/

function CopyrightLink(CopyrightCode){ 

    if(CopyrightCode=="M01"){ // È¸»ç¼Ò°³
        location.href="/etc/company.aspx"; 
    }else if(CopyrightCode=="M02"){  //°í°´¼¾ÅÍ
        location.href="/community/customer.aspx"; 
    }else if(CopyrightCode=="M03"){  //»çÀÌÆ®¸Ê
        location.href="/etc/sitemap.aspx"; 
    }else if(CopyrightCode=="M04"){  //Ã£¾Æ¿À½Ã´Â ±æ
        location.href="/favorite/traffic_map.aspx"; 
    }else if(CopyrightCode=="M05"){  //ÇÁ·Î¸ð¼Ç ¾È³»
        location.href="/etc/promotion.aspx"; 
    }else if(CopyrightCode=="M06"){  //Ã¤¿ë¾È³»
        location.href="/etc/recruit_01.aspx"; 
    }else if(CopyrightCode=="M07"){  //È¸¿ø¼­ºñ½º
        location.href="/etc/member.aspx"; 
    }else if(CopyrightCode=="M08"){  //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
		window.open('/popup/personalinfo.aspx','displayWindow','toolbar=no,scrollbars=yes,width=768,height=600');
    }else if(CopyrightCode=="M09"){  //ÀÌ¸ÞÀÏÃßÃâ¹æÁöÁ¤Ã¥
		window.open('/popup/emailinfo.aspx','displayWindow','toolbar=no,scrollbars=no,width=750,height=376');
    }else if(CopyrightCode=="M10"){  //´ÜÃ¼¿¹¾à¾È³»
        location.href="/community/group.aspx"; 
    
	}else{
        alert(CopyrightCode);
    }  
}


/*
===============================================================================
*  Today's phoenix Link
===============================================================================
*/

function TodayLink(TodayCode){ 

    if(TodayCode=="M01"){ // °´½Ç ¿¹¾à°¡´ÉÀÏ Á¶È¸
		window.open('/Reservation/room_ava_inq_main.aspx','room_ava_inq','toolbar=no,scrollbars=no,width=650,height=420');
    }else if(TodayCode=="M02"){  //±ÝÀÏ¿ÀÇÂ ½½·ÎÇÁ
        location.href="/ski/open.aspx"; 
    }else if(TodayCode=="M03"){  //¿Â¶óÀÎÄ·
        location.href="/favorite/online_cam.aspx"; 
    }else if(TodayCode=="M04"){  //ÇöÀå½ºÄÉÄ¡
        location.href="/favorite/sketch.aspx"; 
    }else{
        alert(CopyrightCode);
    }  
}




function view(what) { 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 

imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>phoenixpark</title>\n"); 

imgwin.document.write("<sc"+"ript>\n"); 
imgwin.document.write("function resize() {\n"); 
imgwin.document.write("pic = document.il;\n"); 
//imgwin.document.write("alert(eval(pic).height);\n"); 
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 60; myWidth = eval(pic).width + 12;\n"); 
imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
imgwin.document.write("  clearTimeout();\n"); 
imgwin.document.write("  var height = screen.height;\n"); 
imgwin.document.write("  var width = screen.width;\n"); 
imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
imgwin.document.write("</sc"+"ript>\n"); 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
imgwin.document.write("<a href=javascript:self.close();><img Galleryimg=no border=0 src=/images/favorite/"+what+" xwidth=100 xheight=9 name=il onload='resize();'></a>\n"); 
imgwin.document.write("</body>\n"); 
imgwin.document.close(); 

} 
















/*1.******************************** ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ® ***************************/
function ActiveX_(objects){
	var objects = document.getElementById(objects);
	try
	{
		var obj = document.getElementById("SSOAgentClientOCX.ctrlClient");
		var userId = obj.GetSSOCredentialItemList();
		if(navigator.appName == "Microsoft Internet Explorer")
		{
		    if(userId)
		    {
	       		document.write("<object  type='application/x-shockwave-flash' width='1000' height='800' align='top' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'>");
	        	//document.write("<param name='allowScriptAccess' value='sameDomain' />");
	        	document.write("<param name='allowScriptAccess' value='always' />");
	        	document.write("<param name='movie' value='/flash/main.swf?member=9' />");
	        	document.write("<param name='quality' value='high' />");
	        	document.write("<param name='scale' value='noscale' />");
	        	document.write("<param name='wmode' value='transparent' />");
	        	document.write("<param name='bgcolor' value='#ffffff' />");
	        	document.write("<embed wmode='transparent' src='/flash/main.swf?member=9' width='1000' height='800' allowScriptAccess='always' type='application/x-shockwave-flash' allowFullScreen='true' ></embed>");
	        	document.write("</object>");
	            }
	    	    else
	   	    {
	        	document.write("<object  type='application/x-shockwave-flash' width='1000' height='800' align='top' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'>");
	        	//document.write("<param name='allowScriptAccess' value='sameDomain' />");
				document.write("<param name='allowScriptAccess' value='always' />");
	        	document.write("<param name='movie' value='/flash/main.swf?member=0' />");
	        	document.write("<param name='quality' value='high' />");
	        	document.write("<param name='scale' value='noscale' />");
	        	document.write("<param name='wmode' value='transparent' />");
	        	document.write("<param name='bgcolor' value='#ffffff' />");
	        	document.write("<embed wmode='transparent' src='/flash/main.swf?member=0' width='1000' height='800' allowScriptAccess='always' type='application/x-shockwave-flash' allowFullScreen='true' ></embed>");
            	document.write("</object>");
		    }
	
		}
	}
	catch(exception)
	{
		if(navigator.appName == "Microsoft Internet Explorer")
		{

	        document.write("<object  type='application/x-shockwave-flash' width='1000' height='800' align='top' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'>");
	        //document.write("<param name='allowScriptAccess' value='sameDomain' />");
			document.write("<param name='allowScriptAccess' value='always' />");
	        document.write("<param name='movie' value='/flash/main.swf?member=0' />");
	        document.write("<param name='quality' value='high' />");
	        document.write("<param name='scale' value='noscale' />");
	        document.write("<param name='wmode' value='transparent' />");
	        document.write("<param name='bgcolor' value='#ffffff' />");
	        document.write("<embed wmode='transparent' src='/flash/main.swf?member=0' width='1000' height='800' allowScriptAccess='always' type='application/x-shockwave-flash' allowFullScreen='true' ></embed>");
	        document.write("</object>");
		}
	
	}

}
function ActiveX(objects){
	var objects = document.getElementById(objects);
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		document.write(objects.text);
		
		objects.id = "";
	}
}
/******************************** ÇÃ·¡½Ã »ðÀÔ ½ºÅ©¸³Æ® ***************************/



