function FlowPlayer () {
	this.played = false;
	this.api = "";
}
function onClipDone (clip) {
	_flowPlayer.stop();
}
FlowPlayer.prototype = {
	load : function  (url) {
		this.api = flashembed("example", 
		
			/* 
				first argument supplies standard Flash parameters. See full list:
				http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
			*/
			{
				src:'/fr/video/flowplayer/FlowPlayerDark.swf',
				width: 360, 
				height: 290
			},
			
			/*
				second argument is Flowplayer specific configuration. See full list:
				http://flowplayer.org/player/configuration.html
			*/
			{config: {   
				autoPlay:true,
				controlBarBackgroundColor:'0xbe4601',
				initialScale: 'scale',
				loop: 'false',
				videoFile: url 
			}} 
		);	
	},
	play : function (url) {
		this.load(url);
		$('part1').hide(); 
		$('part2').show(); 
	},
	stop : function () {
		$('part2').hide(); 
		$('part1').show(); 
		this.played = false;
	}
}

var _flowPlayer = new FlowPlayer();
