function GnxFlashActivate ( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) {
	document.writeln( GnxGetFlashActivateString( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) );
}

/* »ç¿ë¹ý
<script type="text/javascript" language="JavaScript">
// <![CDATA[
	GnxFlashActivate('http://s.nx.com/S2/Bigshot2/swf/sub_nav.swf',890,175,'opaque','TopNavi','TopNavi');
// ]]>
</script>
*/

function GnxGetFlashActivateString ( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) {
	//width,height ¿©ºÎ & ¹­À½ (width,height°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (n4Width != 0) {
		objSize_attribute = " width='"+ n4Width +"' 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 = "";
	}
	
	var textToWrite = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' " + objSize_attribute + objId_IE_attribute + className_attribute + ">\n";
	textToWrite += "<param name='movie' value='"+ strFlashUrl +"' />\n";
	textToWrite += "<param name='quality' value='high' />\n";
	textToWrite += "<param name=bgcolor value='#FFFFFF'>\n";
	textToWrite += "<param name='allowScriptAccess' value='always' />\n";
	textToWrite += wmode_param+"\n";
	textToWrite += "<!-- Hixie method -->\n";
	textToWrite += "<!--[if !IE]> <-->\n";
	textToWrite += "<object type='application/x-shockwave-flash' bgcolor='#FFFFFF' data='"+ strFlashUrl +"'" + objSize_attribute + objId_attribute + wmode_attribute + className_attribute + "></object>\n";
	textToWrite += "<!--> <![endif]-->\n";
	textToWrite += "</object>\n";

	return 	textToWrite;
}

function GnxSetFlashActiveteToControl( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName, targetObj ) 
{
	targetObj.insertAdjacentHTML( "beforeEnd", GnxGetFlashActivateString( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) );
}

function GnxSetObjectToControl( stringWhere, objectString, targetObj )
{
	targetObj.insertAdjacentHTML( stringWhere, objectString );
}

function GnxFlashActivateWithLayer( strFlashUrl , n4Width , n4Height , strWmode , strObjectId , strClassName, strDivID, n4XOffset, n4YOffset ) {
	document.writeln( "<div id='" + strDivID + "' style='position:absolute;top:" + n4XOffset + "px;left:" + n4YOffset + "px;'>" );
	GnxFlashActivate( strFlashUrl , n4Width , n4Height , strWmode , strObjectId , strClassName );
	document.writeln( "</div>" );
}

// ÂÐÀÌ´åÄÄ ÇÃ·¹½¬ ¼­ºñ½º Æ¯¼º»ó iframeÀÌ¿ë.
/* »ç¿ë¹ý
<script type="text/javascript" language="JavaScript">
// <![CDATA[
	GnxFlashActivateWithIframe('http://s.nx.com/S2/Portal/Nexon/Nexon2005/image/gworld/data/smaple.swf',500,500,'banner02','banner02');
// ]]>
</script>
*/
function GnxFlashActivateWithIframe( strFlashUrl , n4Width , n4Height , strIframeId , strClassName ) {
	document.writeln("<iframe id='" + strIframeId + "' src='" + strFlashUrl + "' width='" + n4Width + "' height='" + n4Height + "' class='" + strClassName + "' border='0' frameborder='0'></iframe>");
}