var actionCuePoint = function(clip, point) {onActionPoint(clip, point);}
function loadFPlayer(){
	jQuery.getJSON(sTPurl + "fp.ajax.php", {id: jQuery(".vplayer").attr('id').substring(4), action: 'getInfo'}, function(json){
		if (json.bool == '1'){				
			$f("fms", {													
				src: FlowPlayerPlayerSWF,
				bgcolor: objectBGColor,
				version: [flashRequiredVersion1, flashRequiredVersion2],
				wmode: "opaque",
				cachebusting: true
			}, 
			{			
				debug: json.debug==0 ? false: true, 
				clip: { 												
					bufferLength: 2,
					provider: 'rtmp',
					connectionProvider: 'secure',
					scaling: 'fit',
					onStart: function(){onStartFunction(json.aaa);},
					onFinish: function(){onFinishClipFunction();},
					onCuepoint: [json.cuepoints, actionCuePoint],
					onBeforeSeek: function(clip, seconds)  { onBeforeSeekFunction(clip, seconds);},
					onSeek: function()  { onSeekFunction();},
					onBeforeStop: function(){onBeforeStopFunction();},
					onStop: function() { onStopFunction();},					
					onBeforeBegin: function(){onBeforeBeginFunction();},
					onBegin: function(){onBeginFunction();}
				}				 	
			 	,key: json.kkk				 	
				,play: playButton					
				,contextMenu: cMenu
				,canvas: canvasStyle
				,plugins: { 
					rtmp: {url: FlowPlayerRTMPSWF,netConnectionUrl: json.xxx},									
					secure: {url: FlowPlayerSECURESTREAMINGSWF},
		        	controls: controlsValues
				}
			 	,logo: logoConfig
				,playlist: json.playlist								
				,onLoad: function() {onLoadFunction(json);}
				,onMouseOver: function() {clMainOpen();}
				,onMouseOut: function() {clMainClose();}
			});
			cuepointsArre = json.cuepoints;
			$f().load();		
		}
	});		
}

jQuery(document).ready(function() {
	jQuery(function() {jQuery("#fms").oneTime(1000, function(){ loadFPlayer();});});	
});