// config
var config = {
	
	// player configuration
	player: {
		src: 'http://p111113.typo3server.info/fileadmin/develop/js/flowplayer/flowplayer-3.2.5.swf',
		
		// test URL
		//src: 'flowplayer-3.2.5.swf',
		wmode: 'opaque',
		onFail: function()  {
			$('#contentVideo').hide();
			$('#noFlash').show();
		}
	},
	
	// default clip configuration
	clip: {
		
		defaultClip: {
			baseUrl: '.',
			scaling: "fit"
		},
	},
	screen:{
		height:'100pct',
		bottom:0,
	},
	canvas: {
		backgroundColor:'#e6e6e6',
		backgroundGradient: 'high',
		//backgroundImage: 'url(http://p111113.typo3server.info/fileadmin/develop/js/flowplayer/bgVivantes.jpg)'
		backgroundImage: false
	},
	
	// skin configuration
	controlerSkins: {
		
		bigPlayer: {
			// location of the controlbar plugin
			url: 'http://p111113.typo3server.info/fileadmin/develop/js/flowplayer/flowplayer.controls-3.2.3.swf',
			
			// test URL
			//url: 'flowplayer.controls-3.2.3.swf',
	
			// display properties such as size, location and opacity
			autoHide:{
				enabled:true,
				hideDelay:788,
				hideStyle:'move',
				mouseOutDelay:500,
				hideDuration:400,
				fullscreenOnly:false
			},
			opacity:1,
			height:29,
			width:'100pct',
			left:'50pct',
	
			// styling properties
			timeColor:'rgba(0, 0, 0, 1)',
			borderRadius:0,
			bufferGradient:'none',
			backgroundColor:'rgba(230, 230, 230, 1)',
			volumeSliderGradient:'none',
			timeBorderRadius:20,
			time:true,
			progressGradient:'none',
			volumeColor:'rgba(209, 13, 65, 1)',
			timeFontSize:12,
			bufferColor:'#a3a3a3',
			volumeSliderColor:'rgba(252, 252, 252, 1)',
			border:'0px',
			buttonColor:'rgba(128, 128, 128, 1)',
			backgroundGradient:'medium',
			display:'block',
			sliderBorder:'1px solid rgba(128, 128, 128, 0.7)',
			buttonOverColor:'rgba(209, 13, 65, 1)',
			fullscreen:true,
			timeBgColor:'rgb(0, 0, 0, 0)',
			borderWidth:0,
			scrubberBarHeightRatio:0.4,
			buttonOffColor:'rgba(130,130,130,1)',
			stop:false,
			zIndex:1,
			sliderColor:'#000000',
			scrubberHeightRatio:0.5,
			sliderGradient:'none',
			spacing:{
				time:6,
				volume:8,
				all:2
			},
			timeBgHeightRatio:1,
			volumeSliderHeightRatio:0.5,
			name:'controls',
			timeSeparator:' / ',
			volumeBarHeightRatio:0.4,
			durationColor:'rgba(0, 0, 0, 1)',
			progressColor:'rgba(209, 13, 65, 1)',
			timeBorder:'0px solid rgba(0, 0, 0, 0.3)',
			builtIn:false,
			volumeBorder:'1px solid rgba(128, 128, 128, 0.7)',
			
			
			// controlbar specific settings
			all: false,
			play: true,
			scrubber: true,
			volume: true,
			mute: true,
			time: true,
	
			// tooltips
			tooltips: {
				buttons: false
			}
		}
	}
};
////////////////////////


// flowplayer call
$(function() {
	if($('#contentVideo').length > 0){
		flowplayer("contentVideo", config.player, {
			clip: config.clip.defaultClip,
			screen: config.screen,
			canvas: config.canvas,
				plugins: {
					controls: config.controlerSkins.bigPlayer
				},
				key: '#@4146653ea25e950f7a2'
		});
	}
});
////////////////////////

