	Flash= function(){
		this.insert(arguments[0], arguments[1], arguments[2], arguments[3]);
	}

	Flash.prototype = {
		//requiredAttrParams: ["movie", "width", "height", "majorversion", "build"] ,

		insert : function(strSWF, intWidth, intHeight, oParam){
			var strObjectTag, strEmbedTag

			//document.write("file: " + strSWF + "<br />");

			strObjectTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'" +
				" width='"+intWidth+"'" +	
				" height='"+intHeight+"'" +
				" codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'>";
				
				strObjectTag += "<param name='movie' value='"+strSWF+"'>";

				for(key in oParam)
				{
					strObjectTag += "<param name='"+key+"' value='"+oParam[key]+"'>";
				}

			strEmbedTag = "<embed pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'";
				strEmbedTag += "src='" + strSWF + "' ";
				strEmbedTag += "width='" + intWidth + "' ";
				strEmbedTag += "height='" + intHeight + "' ";
				for(key in oParam)
				{
					strEmbedTag += "" + key + "='" + oParam[key] + "' ";
				}
				strEmbedTag += " </embed>";
			
			strObjectTag += strEmbedTag;
			strObjectTag += "</object>";

			document.write(strObjectTag);
		
		}
	}