/*
var EMBED =
{
	timer : null,

	activateObjects : function(tagname)
	{
		var objects = document.getElementsByTagName(tagname);

		

		for (var i = 0; i < objects.length; i++)
		{
			if (!objects[i].done)
			{
				objects[i].outerHTML = objects[i].outerHTML;
				objects[i].done = true;

			}
		}
	},

	activateAllObjects : function()
	{
		EMBED.activateObjects("OBJECT");
		EMBED.activateObjects("EMBED");
	}
}

EMBED.timer = setInterval(EMBED.activateAllObjects, 200);
window.attachEvent("onload", function() { clearInterval(EMBED.timer); EMBED.timer = null; EMBED.activateAllObjects(); });
*/
// ÇÃ·¡½Ã ÇÃ·¹ÀÌ¾î
function fFlash_Activate(argSRC, argWIDTH, argHEIGHT, argID, argWMODE) {
	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC + '">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" ';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}

// ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 
function fPlayer_Activate(argWIDTH, argHEIGHT, argBASE_WORK_URL, argATT_PLAYER_NAME) {

	var contents = "<OBJECT id='mediaPlayer' type='application/x-oleobject' standby='Loading Microsoft?Windows?Media Player components...'"
		contents += " width= " + argWIDTH + " height= " + argHEIGHT + " classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95'>" 
		contents += " <PARAM NAME='FileName' VALUE=" + argBASE_WORK_URL + "/" + argATT_PLAYER_NAME + "> "
		contents += " <PARAM NAME='AnimationAtStart' VALUE='false'> "
		contents += " <PARAM NAME='TransparentAtStart' VALUE='true'> "
		contents += " <PARAM NAME='Mute' VALUE='0'> "
		contents += " <PARAM NAME='Rate' value='1'> "
		contents += " <PARAM NAME='AutoStart' VALUE='true'> "
		contents += " <PARAM NAME='Autosize' VALUE='false'> "
		contents += " <PARAM NAME='AutoRewind' VALUE='true'> "
		contents += " <PARAM NAME='ShowDisplay' VALUE='false'> "
		contents += " <PARAM NAME='ShowStatusBar' VALUE='false'> "
		contents += " <PARAM NAME='ShowControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowAudioControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowTracker' VALUE='false'> "
		contents += " <PARAM NAME='ShowPositionControls' VALUE='0'> "
		contents += " <PARAM NAME='EnableContextMenu' VALUE='false'> "
		contents += " </object> ";
		document.write(contents);
}


//****************************************************************************************
// ÇÃ·¡½¬ ÇÃ·¹ÀÌ ÇÏ±â
//****************************************************************************************
function swf_include(swfUrl,swfWidth,swfHeight,bgColor,swfName,access,flashVars){
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
/*
	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='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle' />"+
	"<param name='allowScriptAccess' value='"+access+"' />"+
	"<param name='wmode' value='transparent'>"+
	"<param name='movie' value='"+swfUrl+"' />"+
	"<param name='FlashVars' value='"+flashVars+"' />"+
	"<param name='loop' value='false' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
    "<param name='scale' value='noscale' />"+
	"<param name='bgcolor' value='"+bgColor+"' />"+
	"<embed src='"+swfUrl+"' wmode='transparent' FlashVars='"+flashVars+"'  quality='best' bgcolor='#EEF8FF' width='"+swfWidth+"' height='"+swfHeight+"' name='"+swfName+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
*/

	var flashStr= "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + swfWidth + "' height='" + swfHeight + "' id = '" + swfName + "'>"+
	"<param name='movie' value='" + swfUrl + "'>"+
	"<param name='wmode' value='transparent'>"+
	"<param name='allowScriptAccess' value='" + access + "' />"+
	"<param name='wmode' value='transparent'>"+
	"<param name='FlashVars' value='" + flashVars + "' />"+
	"<param name='loop' value='false' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
    "<param name='scale' value='noscale' />"+
	"<param name='bgcolor' value='" + bgColor + "' />"+
	"<!--[if !IE]> <-->"+
	"<object type='application/x-shockwave-flash' wmode='transparent' FlashVars='"+flashVars+"' scale='noscale' data='" + swfUrl + "' width='" + swfWidth + "' height='" + swfHeight + "' id='" + swfName + "' >"+
	"</object>"+
	"<!--> <![endif]-->"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
};

