$(function() { 
			 
	// setup overlay actions to a href 
	$("a[rel]").overlay({ 
	expose: '#000',                 
	onLoad: function(content) { 
	// find the player contained inside this overlay and load it 
	this.getOverlay().find("a.player").flowplayer(0).load(); 
	}, 
	onClose: function(content) { 
	$f().unload(); 
	} 
	});                
	
	// install flowplayers 
	$("a.player").flowplayer("../js/swf/flowplayer-3.1.5.swf", { 
 
    // change the default controlbar to tube 
    plugins: { 
        controls: { 
			progressGradient: 'medium',
			tooltipTextColor: '#ffffff',
			borderRadius: '0px',
			bufferGradient: 'none',
			volumeSliderGradient: 'none',
			timeColor: '#DDDDDD',
			buttonOverColor: '#71a44e',
			volumeSliderColor: '#000000',
			durationColor: '#ffffff',
			backgroundColor: '#222222',
			timeBgColor: '#555555',
			bufferColor: '#999999',
			backgroundGradient: [0.6,0.3,0,0,0],
			progressColor: '#71a44e',
			sliderGradient: 'none',
			tooltipColor: '#71a44e',
			sliderColor: '#000000',
			buttonColor: '#939393',
			height: 32,
			opacity: 1.0 
        }  
    } 
	});
});  

