// flash embed //
function FlashEmbed(fid,fn,wd,ht,para)
{
	if(fid == "GNB")
	{
		var navi = document.getElementById("main_menu").innerText;
		url = fn+para+'&gnbmenu='+navi;
	}
	else if(fid == "MAP")
	{
		var dong_cd = document.getElementById("dhtmlgoodies_city").value;
		url = fn+'?city_code='+dong_cd;
	}
	else
	{
		url = fn+para;
	}
	document.write('<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="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="' + url + '">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + url + '" menu="false" quality="high" wmode="transparent" width="' + wd + '" height="' + ht + '" name="' + fid + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
// jump menu //
function selectURL(url){
	if (url){
		window.open(url);
	}
}

// IEÆÐÄ¡¿¡ ´ëÇÑ ´ë¾ÈÇÔ¼ö
	function js_viewObj(objTag)
	{
		document.write(objTag.replace(/\n/g, ""));
	}
	//¹Ì´ÏÁö¾Øºñº¸±â
	function mini_open(mini_cd)
	{
		var win = parent.window.open("/mini_gnb/?mini_cd="+mini_cd, "mini", "width=800, height=500, resizable=0, scrollbars=0, status=0, titlebar=0, location=0");
		win.focus();
	}

	//ÄíÅ°È®ÀÎ
	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 "";
	}