window.addEvent('domready', function () {

	var videolinks = $$('.videolinks a');

	for(var i=0; i<videolinks.length; i++)
	{
		videolinks[i].set('href', 'javascript:openplayer("' + videolinks[i].get('href') + '")');
	}

});


function openplayer(video_url)
{
	if ($('videoscreen'))
	{
		$('videoscreen').innerHTML = '';
		$('videoscreen').erase('class');
		var ele = $$('#header span');
		ele[0].innerHTML = '';

flowplayer("videoscreen", "/fileadmin/script/flowplayer/flowplayer-3.1.3.swf", { 
	clip: { 
	        	url: video_url,
						autoPlay: true, 
					  autoBuffering: true,
  }, 
plugins: {
	controls: {
		fullscreen: false, 
	buttonOverColor: '#728B94',
	volumeSliderColor: '#000000',
	tooltipColor: '#5F747C',
	buttonColor: '#5F747C',
	timeBgColor: '#555555',
	durationColor: '#ffffff',
	backgroundGradient: 'none',
	volumeSliderGradient: 'none',
	tooltipTextColor: '#ffffff',
	timeColor: '#01DAFF',
	progressColor: '#112233',
	bufferColor: '#445566',
	sliderGradient: 'none',
	borderRadius: '0px',
	sliderColor: '#000000',
	bufferGradient: 'none',
	backgroundColor: '#222222',
	progressGradient: 'medium',
	height: 24,
	opacity: 1.0
	}
},
  onLoad: function(){ 
  } 
});

	}
}
