$(function()
{
	$(".player-video")
	.flash(	{}
	,	{	version: 7}
	,	function(options)
		{
		var	$this	=$(this)
			flashvars={
				autoplay: true
			}
			if($this.attr("player-canstream")=="yes")
			{
				$.extend(	flashvars
				,	{
						streamer: "stream/video/"
					,	video: $this.attr("player-video")
					,	thumbnail: $this.attr("player-preview")
					}
				)
			}
			else
			{
				$.extend(	flashvars
				,	{
						streamer: false
					,	video: $this.attr("player-video")
					}
				)
			}
			options
			$.extend(
					true
				,	options
				,	{
						src:	"stream/player/video"
					,	width:	$this.attr("player-width")
					,	height:	$this.attr("player-height")
					,	flashvars:flashvars
					}
				)
			$this
			.prepend(
					$.fn.flash
					.transform(options)
				)

			
		}
	)
})

