function flashobject(str)
{
	var params = str.replace(/^ +| +$/).split(/ /);
	var k,v;

	for (var i = 0; i < params.length; ++i){
		params[i] = params[i].split('=');

		k = params[i][0].toLowerCase();
		v = params[i][1].replace(/"|'/g, "").toLowerCase();

		if ('class' == k) {
			k = '_' + k;
		}
		if ('src' == k) {
			params[i].shift();
			v = params[i].join('=').replace(/"|'/g, "");
		}
		eval("var " +k+ " = '" +v+ "';");
	}
  
  var html = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\""
  html += " codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\""

  if('undefined' != typeof(width))
		html += " width=\"" + width+ "\"";
  if('undefined' != typeof(height))
		html += " height=\"" + height  + "\"";
  if('undefined' != typeof(hspace))
		html += " hspace=\"" + hspace  + "\"";
  if('undefined' != typeof(vspace))
		html += " vspace=\"" + vspace  + "\"";
  if('undefined' != typeof(align))
		html += " align=\"" + align+ "\"";
  if('undefined' != typeof(id))
		html += " id=\"" + id  + "\"";
  if('undefined' != typeof(_class))
		html += " class=\"" + _class  + "\"";
  if('undefined' != typeof(name))
		html += " name=\"" + name+ "\"";
  if('undefined' != typeof(style))
		html += " style=\"" + style+ "\"";
  if('undefined' != typeof(declare))
		html += " declare=\"declare\"";

	html += "/>";

  if('undefined' != typeof(src))
		html += "<param name=\"movie\" value=\"" + src + "\"/>";
  if('undefined' != typeof(quality))
		html += "<param name=\"quality\" value=\"" + quality + "\"/>";
  if('undefined' != typeof(loop))
		html += "<param name=\"loop\" value=\"" + loop+ "\"/>";
  if('undefined' != typeof(bgcolor))
		html += "<param name=\"bgcolor\" value=\"" + bgcolor + "\"/>";
  if('undefined' != typeof(play))
		html += "<param name=\"play\" value=\"" + play+ "\"/>";
  if('undefined' != typeof(menu))
		html += "<param name=\"menu\" value=\"" + menu+ "\"/>";
  if('undefined' != typeof(scale))
		html += "<param name=\"scale\" value=\"" + scale+ "\"/>";
  if('undefined' != typeof(salign))
		html += "<param name=\"salign\" value=\"" + salign  + "\"/>";
  if('undefined' != typeof(wmode))
		html += "<param name=\"wmode\" value=\"" + wmode+ "\"/>";

  html +="<embed pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"";

  if('undefined' != typeof(width))
		html += " width=\"" + width+ "\"";
  if('undefined' != typeof(height))
		html += " height=\"" + height  + "\"";
  if('undefined' != typeof(hspace))
		html += " hspace=\"" + hspace  + "\"";
  if('undefined' != typeof(vspace))
		html += " vspace=\"" + vspace  + "\"";
  if('undefined' != typeof(align))
		html += " align=\"" + align+ "\"";
  if('undefined' != typeof(id))
		html += " id=\"" + id  + "\"";
  if('undefined' != typeof(_class))
		html += " class=\"" + _class  + "\"";
  if('undefined' != typeof(name))
		html += " name=\"" + name+ "\"";
  if('undefined' != typeof(style))
		html += " style=\"" + style+ "\"";
  if('undefined' != typeof(declare))
		html += " declare=\"declare\"";

  if('undefined' != typeof(src))
		html += " src=\"" + src + "\"";
  if('undefined' != typeof(quality))
		html += " quality=\"" + quality + "\"";
  if('undefined' != typeof(loop))
		html += " loop=\"" + loop+ "\"";
  if('undefined' != typeof(bgcolor))
		html += " bgcolor=\"" + bgcolor + "\"";
  if('undefined' != typeof(play))
		html += " play=\"" + play+ "\"";
  if('undefined' != typeof(menu))
		html += " menu=\"" + menu+ "\"";
  if('undefined' != typeof(scale))
		html += " scale=\"" + scale+ "\"";
  if('undefined' != typeof(salign))
		html += " salign=\"" + salign  + "\"";
  if('undefined' != typeof(swliveconnect))
		html += " swliveconnect=\"" + swliveconnect  + "\"";

  html += "></embed></object>";

	document.write(html);
}