/*
	Flash Activete

	»ç¿ë¹ý
	<script type="text/javascript" language="JavaScript">
	// <![CDATA[
		GnxFlashActivate('http://s.nx.com/S2/Bigshot2/swf/sub_nav.swf',890,175,'opaque','TopNavi','TopNavi','Flashvars');
	// ]]>
	</script>
*/
function GnxFlashActivate ( strFlashUrl , n4Witdh , n4Height , strWmode , strId , strClassName , strFlashvar ) {
	//width,height ¿©ºÎ & ¹­À½ (width,height°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (n4Witdh != 0) {
		objSize_attribute = " width='"+ n4Witdh +"' height='"+ n4Height +"'";
	} else {
		objSize_attribute = "";
	}
	//id ¿©ºÎ (ID ¼¿·º·ºÅÍ°¡ ¾øÀ»°æ¿ì 0À¸·Î¼±¾ð)
	if (strId != 0) {
		objId_attribute = " id='" + strId + "'";
		objId_IE_attribute = " id='" + strId + "'";
	} else {
		objId_attribute = "";
		objId_IE_attribute = "";
	}
	//class ¿©ºÎ (class°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strClassName != 0) {
		className_attribute = " class='" + strClassName + "'";
	} else {
		className_attribute = "";
	}
	//wmode ¿©ºÎ (wmode°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strWmode != 0) {
		wmode_param = "<param name='wmode' value='" + strWmode + "' />";
		wmode_attribute = " wmode='" + strWmode + "'";
	} else {
		wmode_param = "";
		wmode_attribute = "";
	}
	//Flashvar ¿©ºÎ (wmode°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strFlashvar != 0) {
		Flashvar_param = "<param name='flashvars' value='" + strFlashvar + "' />";
		Flashvar_attribute = " Flashvars='" + strFlashvar + "'";
	} else {
		Flashvar_param = "";
		Flashvar_attribute = "";
	}
	document.writeln( "<div style='z-index:3'>" );
	document.writeln( "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' style='z-index:1' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,12,36' " + objSize_attribute + objId_IE_attribute + className_attribute + ">" );
	document.writeln( "<param name='movie' value='"+ strFlashUrl +"' />" );
	document.writeln( "<param name='quality' value='high' />" );
	document.writeln( "<param name='allowScriptAccess' value='always' />" );
	document.writeln( "<param name='scale' value='noscale' />" );
	document.writeln( wmode_param );
	document.writeln( Flashvar_param );
	document.writeln( "<!-- Hixie method -->" );
	document.writeln( "<!--[if !IE]> <-->" );
	document.writeln( "<object type='application/x-shockwave-flash' data='"+ strFlashUrl +"'" + Flashvar_attribute + objSize_attribute + objId_attribute +  wmode_attribute +  className_attribute + "></object>" );
	document.writeln( "<!--> <![endif]-->" );
	document.writeln( "</object>" );
	document.writeln( "</div>" );
}

function topPage(){
	window.scrollTo(0,0);
}

function couponPrint(){
	window.open("http://www.goworld.co.kr/common/coupon.htm","coupon_print","width=640, height=600,toolbar=n,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}

var old_top = 0;
function goUpDown(cnt,val){
	var recent_top = old_top + val
	if (recent_top==57){alert('¸Ç Ã³À½ÀÔ´Ï´Ù.');return;}
	if ((cnt==0)||(recent_top==cnt*-57)){alert('¸Ç ¸¶Áö¸·ÀÔ´Ï´Ù.');return;}
	document.getElementById("recent_frame").style.top = recent_top+"px"
	old_top = recent_top
}

function goodsPrint(val){
	window.open("/resort/print.asp?g_seq="+val,"goods_print","width=660, height=700,toolbar=n,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}

function sendMail(val){
	var swidth=(screen.width-620)/2;
	var sheight=(screen.height-540)/2;
	window.open("/resort/send_mail.asp?g_seq="+val,"send_mail","width=620, height=540,top="+sheight+",left="+swidth+",scrollbars=yes");
}

function infoOpen(){
window.open("http://www.goworld.co.kr/common/personInfo.html","°³ÀÎº¸È£","width=650,height=700,left=0, top=0,toolbar=0, menubar=0, statusbar=0, scrollbars=no,resizable=no");
}

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 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){ 
	setCookie( val, "done" , 1); 
	self.close(); 
} 
