$(document).ready(function() {
	flowplayer(".flowerlay_player", "typo3conf/ext/dkd_flowerlay/res/js/flowplayer.commercial-3.1.5.swf", {
		
		canvas: {backgroundColor: "#ff8d2e"},
		
		baseURL: location.host,
		
		clip: {
			autoPlay: true,
			autoBuffering: false,
			scaling: 'fit'
		},
		
		plugins: {
			controls: {
		      buttonOverColor: '#2e2e2e',
		      bufferGradient: 'none',
		      timeBgColor: '#555555',
		      buttonColor: '#595959',
		      sliderColor: '#000000',
		      volumeSliderColor: '#000000',
		      sliderGradient: 'none',
		      progressGradient: 'medium',
		      tooltipTextColor: '#ffffff',
		      timeColor: '#ffffff',
		      backgroundGradient: [0.6,0.3,0,0,0],
		      borderRadius: '0px',
		      backgroundColor: '#8f8f8f',
		      volumeSliderGradient: 'none',
		      bufferColor: '#ffffff',
		      durationColor: '#ffffff',
		      tooltipColor: '#5F747C',
		      progressColor: '#454545',
		      height: 20,
		      opacity: 1.0
		   }

		},
	
		// when ESC is pressed above the player, "fullscreen" is closed
		onKeyPress: function(key) {
			if (key == 27) {
				$("div.overlay").overlay().close();
			}
		},
	
		// in this case, use the commercial version for a change
		key: keys[location.host] || '',
		
	
		// some basic visual setups
		canvas: {backgroundGradient: 'none'}
	});
	
});
