function on_stream_not_found()
{
    getArchiveToPlay(vgv);
    
}
function FlowPlay(p) {
    pl.play(p);
}


function pg_flowplayer(player_id, playlist_array)
{

return $f(player_id, "/Files/swf/flowplayer.commercial-3.1.2.swf",
{
	buffering: false,

	showErrors: false,

	log : { level : 'error' },

	onBeforeFullscreen: function()
	{ 
        	var plugin = this.getPlugin("controls"); 
		plugin.hide(); 
        }, 
 

        onFullscreenExit: function()
	{ 
		var plugin = this.getPlugin("controls"); 
		plugin.show();
        },

	
	clip:
	{ 
		bufferLength: 1, accelerated: false, fadeInSpeed: 0,


		onBeforePause: function(clip)
		{
			if (this.isFullscreen())
				return false;

			return true;
		},


		onError: function(o1, o2, type)
		{
			if ('NetStream.Play.StreamNotFound' == type)
			{
				setTimeout('on_stream_not_found()', 100);
			}
		}
	
 	}, 
 

	playlist: playlist_array,
 

 	plugins:
	{ 
	        rtmp:
		{ 
        		url: '/Files/swf/flowplayer.rtmp-3.1.1.swf'
        	},

		controls:
		{
			url: '/Files/swf/flowplayer.controls-3.1.2.swf',
			all: false,
			play: true, 
		        volume: true, 
	        	mute: true, 
		        time: true,
		        stop: false,
		        scrubber: false,
	        	playlist: false, 
		        fullscreen: true,
			scrubber: true,
			pause: true
	 	} 
	}
});

}

