//************ active È°¼ºÈ­ ÆÐÄ¡¿¡ µû¸¥ ¿ÜºÎ½ºÅ©¸³ **************

function SWF_Object(src,width,height,classid,version, id){
	if(classid == "") classid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	if(version == "") version = "9.0.124.0";
	if(id == "") id = "ShockwaveFlash1";
	
	Swf_Tag = '<object classid="clsid:'+classid+'"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'" id="'+id+'">';
	Swf_Tag += '<param name="movie" value="'+src+'">';
	Swf_Tag += '<param name="allowScriptAccess" value="always" />';
	Swf_Tag += '<param name="allowfullscreen" value="true" />';
	Swf_Tag += '<param name="quality" value="high">';
	Swf_Tag += '<param name="WMode" value="Transparent">';
	Swf_Tag += '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" allowfullscreen="true" allowScriptAccess="always"></embed>';
	Swf_Tag += '</object>';
	document.write(Swf_Tag);

}

function SWF_Object2(src,width,height,classid,version){
	if(classid == "") classid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	if(version == "") version = "9.0.124.0";
	
	Swf_Tag = '<object classid="clsid:'+classid+'"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'" id=ShockwaveFlash1>';
	Swf_Tag += '<param name="movie" value="'+src+'">';
	Swf_Tag += '<param name="allowScriptAccess" value="always" />';
	Swf_Tag += '<param name="allowfullscreen" value="true" />';
	Swf_Tag += '<param name="quality" value="high">';
	Swf_Tag += '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" allowfullscreen="true" allowScriptAccess="always"></embed>';
	Swf_Tag += '</object>';
	document.write(Swf_Tag);

}

function SWF_Object_Return(src,width,height,classid,version){
	if(classid == "") classid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	if(version == "") version = "9.0.124.0";
	
	Swf_Tag = '<object classid="clsid:'+classid+'"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'" id=ShockwaveFlash1>';
	Swf_Tag += '<param name="movie" value="'+src+'">';
	Swf_Tag += '<param name="allowScriptAccess" value="always" />';
	Swf_Tag += '<param name="allowfullscreen" value="true" />';
	Swf_Tag += '<param name="quality" value="high">';
	Swf_Tag += '<param name="WMode" value="Transparent">';
	Swf_Tag += '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>';
	Swf_Tag += '</object>';
	
	return Swf_Tag;

}

function SET_Media(src, Ow, Oh, id) { //object width, height, param width, height  //µ¿¿µ»óÆÄÀÏ
	if(id == "") id = "MediaPlayer";
	var Media_html = "";
	Media_html = "<object id='"+ id + "' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' VIEWASTEXT width='" + Ow + "' height='" + Oh + "'>";
	Media_html += "<param NAME='Filename' value='"+ src + "'>";
	Media_html += "<PARAM NAME='AutoSize' value='0'>";
	Media_html += "<PARAM NAME='autoStart' value='true'>";
	Media_html += "<PARAM NAME='PlayCount' VALUE=1>";
	Media_html += "<PARAM NAME='Rate' VALUE=1>";
	Media_html += "<param NAME='TransparentAtStart' VALUE='1'>";
	Media_html += "<param NAME='SendkeyboardEvents' VALUE='1'>";
	Media_html += "<param name='mute' value='false'>";
	Media_html += "<PARAM NAME='EnableContextMenu' VALUE='0'>";
	Media_html += "<PARAM NAME='volume' VALUE='90'>";
	Media_html += "<PARAM NAME='ShowStatusBar' VALUE='1'>";
	Media_html += "<PARAM NAME='ShowControls' VALUE='1'>";
	Media_html += "<param name='EnableFullScreenControls' value='1'>";
	Media_html += "<param name='DisplaySize' value='0'>";
	Media_html += "</object>";
	document.write(Media_html);
}

function SET_Media_Return(src, Ow, Oh, id) { //object width, height, param width, height  //µ¿¿µ»óÆÄÀÏ
	if(id == "") id = "MediaPlayer";
	var Media_html = "";
	Media_html = "<object id='"+ id + "' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' VIEWASTEXT width='" + Ow + "' height='" + Oh + "'>";
	Media_html += "<param NAME='Filename' value='"+ src + "'>";
	Media_html += "<PARAM NAME='AutoSize' value='0'>";
	Media_html += "<PARAM NAME='autoStart' value='true'>";
	Media_html += "<PARAM NAME='PlayCount' VALUE=1>";
	Media_html += "<PARAM NAME='Rate' VALUE=1>";
	Media_html += "<param NAME='TransparentAtStart' VALUE='1'>";
	Media_html += "<param NAME='SendkeyboardEvents' VALUE='1'>";
	Media_html += "<param name='mute' value='false'>";
	Media_html += "<PARAM NAME='EnableContextMenu' VALUE='0'>";
	Media_html += "<PARAM NAME='volume' VALUE='90'>";
	Media_html += "<PARAM NAME='ShowStatusBar' VALUE='1'>";
	Media_html += "<PARAM NAME='ShowControls' VALUE='1'>";
	Media_html += "<param name='EnableFullScreenControls' value='1'>";
	Media_html += "<param name='DisplaySize' value='0'>";
	Media_html += "</object>";

	return Media_html;
}

