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	= "http://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);
	}
}
