function swf(c)
{
	var parseConf = function(from, key, def)
	{
		if (typeof(from) == 'object' && typeof(from[key]) != 'undefined')
				return from[key];

		if (typeof(def) == 'undefined')
			return null;

		return def;
	};

	var id = parseConf(c, 'id');						// integer
	var width = parseConf(c, 'width');					// integer
	var height = parseConf(c, 'height');				// integer
	var src = parseConf(c, 'src');						// string
	var transparent = parseConf(c, 'transparent');		// bool
	var bgcolor = parseConf(c, 'bgcolor');				// string
	var menu = parseConf(c, 'menu');					// boolean
	var quality = parseConf(c, 'quality');				// string
	var swliveconnect = parseConf(c, 'swliveconnect');	// bool

	if (src == null)
		return;

	document.write('<object ' + ((id != null) ? 'id="' + id + '" ' : '') + ((width != null) ? 'width="' + width + '" ' : '') + ((height != null) ? 'height="' + height + '" ' : '') + 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
	document.write('<param name="movie" value="' + src + '" />');

	if (transparent != null)
		document.write('<param name="wmode" value="' + (transparent ? 'transparent' : 'window') + '" />');

	if (menu != null)
		document.write('<param name="menu" value="' + (menu ? 'true' : 'false') + '" />');

	if (quality != null)
		document.write('<param name="quality" value="'+quality+'" />');

	if (bgcolor != null)
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');

	if (swliveconnect != null)
		document.write('<param name="swliveconnect" value="' + (swliveconnect ? 'true' : 'false') + '" />');

	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<embed ' + ((id != null) ? 'name="' + id + '" ' : '') + ((width != null) ? 'width="' + width + '" ' : '') + ((height != null) ? 'height="' + height + '" ' : '') + ((src != null) ? 'src="' + src + '" ' : '') + ((transparent != null) ? 'wmode="' + (transparent ? 'transparent' : 'window') + '" ' : '') + ((menu != null) ? 'menu="' + (menu ? 'true' : 'false') + '" ' : '') + ((quality != null) ? 'quality="' + quality + '" ' : '') + ((bgcolor != null) ? 'bgcolor="' + bgcolor + '" ' : '') + ((swliveconnect != null) ? 'wmode="' + (swliveconnect ? 'true' : 'false') + '" ' : '') + 'allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}