// flowplayer fuer overlay

$(function() {

	// install flowplayer into flowplayer container
	var player = $f("player", "fileadmin/templates/swf/flowplayer-3.1.2.swf", {        
		
	// supply the configuration 
 
    clip: {            // Clip is an object, hence '{...}' 
        autoPlay: true, 
        autoBuffering: true, 
        baseUrl: 'http://p111309.typo3server.info/fileadmin/templates/media/video/' 
    }, 
 
     playlist: [            // playlist is an array of Clips, hence [...] 
        'Zylajew_LQ.flv',            // simple playlist entry: video 
         ], 
 
	// The controlbar plugin is loaded by specifying it in the plugins section of the configuration. 
	plugins: { 
 
    // The controlbar is called "controls". By tweaking this, you can modify its look and feel 
    controls: { 
 
        // location of the controlbar plugin 
        url: 'fileadmin/templates/swf/flowplayer.controls-3.1.2.swf', 
 
         // opacity
        opacity: 1, 
 
        // styling properties (will be applied to all plugins) 
        backgroundColor: '#999999', 
 
        // controlbar specific settings 
        timeColor: '#000000',
		timeBgColor: '#666666',
		buttonColor: '#666666',
		progressColor: '#666666',
		bufferColor: '#cccccc',
		sliderColor: '#cccccc', 
        all: false,
		autoHide: 'always',
		hideDelay: 2000,
        play: true,
		volume: true,
		time: true,
		fullscreen: true, 
        scrubber: true, 
 
        // tooltips (since 3.1) 
        tooltips: { 
            buttons: true, 
            fullscreen: 'Enter fullscreen mode' 
        } 
    } 
}, 

}); 

 	// setup button action. it will fire our overlay 
	$("a[rel]").overlay({
		
		// when overlay is opened, load our player
		onLoad: function() {
			player.load();
		},
		
		// custom expose settings 
      	expose: { 
            color: '#000000', 
            opacity: 0.8, 
            closeSpeed: 1000 
        },
        
		// when overlay is closed, unload our player
		onClose: function() {
			player.unload();
		}
	});

}); 

 //flowplayer("player", "fileadmin/templates/swf/flowplayer-3.1.2.swf");




