Sapodo.Flash.Tester = {
	/**
	 * SWF File
	 *
	 * @var string
	 * @access public
	 **/
	SWF: "common/tester.swf",

	/**
	 * Style Config
	 *
	 * @var string
	 * @access public
	 **/
	STYLE: "common/styles/tester_css.swf",

	/**
	 * Flash Form Tester erzeugen
	 *
	 *	weitere options
	 *		name				type							default									description
	 *		=======================================================================================================================
	 *		element				string|node
	 *		downloadUrl			string			optional		undefined
	 *		height				string			optional		411px
	 *		recordTime			int				optional		10
	 *		uploadUrl			string			optional		undefined
	 *		width				string			optional		100%
	 *
	 * @param object options
	 * @access public
	 **/
	create: function(options)
	{
		if (Object.isUndefined(options.element))
		{
			throw "Missing options.element in Sapodo.Flash.Tester.create!";
		}
		options.element = $(options.element);
		if (!options.element)
		{
			return;
		}

		// SWF anlegen
		return Sapodo.Flash.create(
		{
			src:		Sapodo.Flash.Tester.SWF,
			element:	options.element.id,
			width:		options.width || "100%",
			height:		options.height || "443px",
			attributes:
			{
				wmode:			"transparent",
				swliveconnect:	true,
				menu:			false
			},
			params:
			{
				wmode:			"transparent",
				swliveconnect:	true,
				menu:			false
			},
			parameters:
			{
				downloadUrl:	options.downloadUrl,
				recordTime:		options.recordTime || 10,
				uploadUrl:		options.uploadUrl,
				cssRessource:	Sapodo.flashUrl + Sapodo.Flash.Tester.STYLE
			}
		});
	}
};