function GnxFlashActivate ( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) {
	document.writeln( GnxGetFlashActivateString( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) );
}

function GnxGetFlashActivateString ( strFlashUrl , n4Width , n4Height , strWmode , strId , strClassName ) {
	var objSize_attribute = "";
	var objId_attribute = "";
	var objId_IE_attribute = "";
	var className_attribute = "";
	var wmode_param = "";
	var wmode_attribute = "";

	
	if (n4Width != 0) {
		objSize_attribute = " width='"+ n4Width +"' height='"+ n4Height +"'";
	} 
	if (strId != 0) {
		objId_attribute = " id='" + strId + "'";
		objId_IE_attribute = " id='" + strId + "'";
	} 
	if (strClassName != 0) {
		className_attribute = " class='" + strClassName + "'";
	} 
	//wmode ¿©ºÎ (wmode°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strWmode != 0) {
		wmode_param = "<param name='wmode' value='" + strWmode + "' />";
		wmode_attribute = " wmode='" + strWmode + "'";
	} 
	
	var textToWrite = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://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>" );
}

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>");
}