function setEmbed() {
	var obj				= new String; 
	var parameter		= new String; 
	var allParameter	= new String; 
	var embed			= new String; 
	var html			= new String; 

	var clsid			= new String; 
	var codebase		= new String; 
	var pluginspace		= new String; 
	var embedType		= new String; 

	this.setParam = function(parm, value) {
		parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
		allParameter += " "+parm + "='"+ value+"'";
	}

	this.showFlash = function(objID, objSrc, objWidth, objHeight, cabVersion) {
		clsid = "D27CDB6E-AE6D-11CF-96B8-444553540000";
		codebase	= "https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ cabVersion; 
		pluginspage	 = "http://www.macromedia.com/go/getflashplayer"; 
		embedType	= "application/x-shockwave-flash"; 

		obj = "<object id='"+ objID +"' classid='clsid:"+ clsid +"' codebase='"+ codebase +"' width='"+ objWidth +"' height='"+ objHeight +"'>\n";

		embed = "<embed src='" + objSrc + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ objWidth + "' height='"+ objHeight +"'"+ allParameter +"></embed>\n";

		embed += "</object>\n"; 

		html = obj + parameter + embed;
		document.write(html);
	}
	
	this.showMedia = function(objID, objWidth, objHeight, objStyle) {
		clsid = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
	
		obj = "<object id='"+ objID +"' classid='clsid:"+ clsid +"' width='"+ objWidth +"' height='"+ objHeight +"'>\n";
		
		embed += "</object>\n"; 

		html = obj + parameter + embed;
		document.write(html);
	}
}



//<script type="text/javascript" language="javascript">
//    var footerswf = new sslmakeobject('flash','/front/flash/04_util/footer.swf','750','35','footerswf');
//	footerswf.writetag();
//</script>
// SSLÀü¿ë OBJECT ÅëÇÕ»ý¼º ½ºÅ©¸³Æ®
function sslmakeobject(type,path,w,h,id, full, vars,transparent,bg) {
	this.type = type; // flash, applet, movie
	this.id = id;
	this.path = path;
	this.w = w;
	this.h = h;
	this.vars = (vars) ? vars : '';
	this.trnasparent = (transparent) ? transparent : 'transparent';
	this.bg = (bg) ? bg : '#ffffff';
	this.full = (full) ? full : 'false';
	
	this.gettag =
		function() {
			switch(this.type) {
				case 'movie' :
					this.classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
					this.codebase = 'https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';
					this.tag = "<object classid='"+this.classid+"' codebase='"+this.codebase+"' id='"+this.id+"' width='"+this.w+"' height='"+this.h+"'>";
					this.tag += "<param name='movie' value='"+this.path+"' />";
					this.tag += "<param name='allowScriptAccess' value='always' />";
					if(this.vars) this.tag += "<param name='FlashVars' value='"+this.vars+"' />";
					if(this.trnasparent) this.tag += "<param name='wmode' value='"+this.trnasparent+"' />";
					this.tag += "<param name='menu' value='false' />";
					this.tag += "<param name='quality' value='high' />"
					this.tag += "<param name='allowFullScreen' value='true' />"
					this.tag += "<param name='bgcolor' value='"+this.bg+"' />";
					this.tag += "<param value='"+this.path+"'>";
					this.tag += "<param name='base' value='.'>";
					this.tag += "<embed src='"+this.path+"'";
					if(this.vars) this.tag += " FlashVars='"+this.vars+"'";
					if(this.trnasparent) this.tag += " wmode='"+this.trnasparent+"'";
					this.tag += " width='"+this.w+"'";
					this.tag += " height='"+this.h+"'";
					this.tag += " bgcolor='"+this.bg+"'";
					this.tag += " name='"+this.id+"'";
					this.tag += " menu='false'";
					this.tag += " quality='high'";
					this.tag += " allowScriptAccess='always'";
					this.tag += " type='application/x-shockwave-flash'";
					this.tag += " pluginspage='https://www.macromedia.com/go/etflashplayer'";
					this.tag += " />";
					this.tag += "</object>";
					return this.tag;
					break;
        case 'submovie' :
					this.classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
					this.codebase = 'https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';
					this.tag = "<object classid='"+this.classid+"' codebase='"+this.codebase+"' id='"+this.id+"' width='"+this.w+"' height='"+this.h+"'>";
					this.tag += "<param name='movie' value='"+this.path+"' />";
					this.tag += "<param name='allowScriptAccess' value='always' />";
					if(this.vars) this.tag += "<param name='FlashVars' value='"+this.vars+"' />";
					if(this.trnasparent) this.tag += "<param name='wmode' value='"+this.trnasparent+"' />";
					this.tag += "<param name='menu' value='false' />";
					this.tag += "<param name='quality' value='high' />"
					this.tag += "<param name='allowFullScreen' value='true' />"
					this.tag += "<param name='bgcolor' value='"+this.bg+"' />";
					this.tag += "<param value='"+this.path+"'>";
					this.tag += "<param name='base' value='.'>";
					this.tag += "<embed src='"+this.path+"'";
					if(this.vars) this.tag += " FlashVars='"+this.vars+"'";
					if(this.trnasparent) this.tag += " wmode='"+this.trnasparent+"'";
					this.tag += " width='"+this.w+"'";
					this.tag += " height='"+this.h+"'";
					this.tag += " bgcolor='"+this.bg+"'";
					this.tag += " name='"+this.id+"'";
					this.tag += " menu='false'";
					this.tag += " quality='high'";
					this.tag += " allowScriptAccess='always'";
					this.tag += " type='application/x-shockwave-flash'";
					this.tag += " pluginspage='https://www.macromedia.com/go/etflashplayer'";
					this.tag += " />";
					this.tag += "</object>";
					return this.tag;
					break;					
			}

		}	

	this.writetag =
		function() {
			document.write(this.gettag());
			//FlashÀÇ ExternalInterface°¡ Form Tag³»¿¡¼­ ¿À·ù³ª´Â ¹ö±×¸¦ ÇØ°áÇÏ´Â ÄÚµå
			eval("window." + this.id + " = document.getElementById('" + this.id + "');");
		}
}