// begin scripting after the page is fully loaded
$(function() {
                    
	// install flowplayer and initialize mouse interactivity
	$("div.player").flowplayer("/player/flowplayer-3.2.0.swf",{
		
	plugins:  {
		controls: {
			
			// tooltips configuration
			tooltips: {
				
				// enable english tooltips on all buttons
				buttons: true,
				
				// customized texts for buttons
				play: 'Reproducir',
				pause: 'Pausa',
				fullscreen: 'Pantalla Completa'
			},
			
			// background color for all tooltips
			tooltipColor: '#112233',
			
			// text color
			tooltipTextColor: '#8899ff' 
		}
	}
	
}).hover(function() {
                        // find div.info element inside the player container and show it
                        $("div.info", this).fadeTo("slow", 0.7);
                        
                    }, function() {
                        
                        // when mouse is removed - hide the info
                        $("div.info", this).fadeTo("slow", 0);
                    }); 
                    
                    // initially all info elements are hidden
                    $("div.info").css("opacity", 0);
                    
                });
