/************************************************************************
* flash¸¦ ÀÚ¹Ù½ºÅ©¸³Æ®·Î ºÒ·¯¿Í¼­ »Ñ·ÁÁÜ. (¸¶¼Ò¿¡¼­ flash¸¦ html¿¡¼­ ¸øºÒ·¯¿À°ÔÇØ¼­ ±×·¸´Ù°íÇÔ)
************************************************************************/
function setEmbed()
{
var obj = new String;
var parameter = new String;
var embed = new String;
var html = new String;
var allParameter = new String;
var clsid = new String;
var codebase = new String;
var pluginspace = new String;
var embedType = new String;
var src = new String;
var width = new String;
var height = new String;
var clsid = new String;
var codebase = new String;
var pluginspage = new String;
var embedType = new String;
var getType = new String;
var id = new String;
this.init = function( getType , s ,w , h ) {
this.getType = getType;
if ( getType == "flash")
{
this.clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
this.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
this.pluginspage = "http://www.macromedia.com/go/getflashplayer";
this.embedType = "application/x-shockwave-flash";
parameter += "<param name='movie' value='"+ s + "'>\n";
parameter += "<param name='quality' value='high'>\n";
}
/* type Ãß°¡
else if ( )
{
}
*/
this.src = s;
this.width = w;
this.height = h;
}
this.parameter = function( parm , value ) {
parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
allParameter += " "+parm + "='"+ value+"'";
}
this.show = function() {
if ( this.getType == "flash" )
{
obj = "<object classid=\"clsid:"+ this.clsid +"\" codebase=\""+ this.codebase +"\" width='"+ this.width +"' height='"+ this.height +"'>\n";
embed = "<embed src='" + this.src + "' pluginspage='"+ this.pluginspage + "' type='"+ this.embedType + "' width='"+ this.width + "' height='"+ this.height +";border:1px solid gray'"+ allParameter +" ></embed>\n";
} else if ( this.getType == "object" ) {
obj = "<object type='"+ this.embedType +"' id='"+ this.id +"' classid=\"clsid:"+ this.clsid +"\" codebase=\""+ this.codebase +"\" style='width:"+ this.width +"; height:"+ this.height +";border:1px solid gray'>\n";
}
if ( obj )
{
embed += "</object>\n";
}
html = obj + parameter + embed;
document.write( html );
//alert(html);
}
}

