$(document).ready(function(){
	$('#video_full').fadeOut(0);
	$('#video_full').click(function(){
		$f('video_full_video_a').hide();
		$('#video_full').fadeOut(1000);
	});
	$('#videografia').click(function(){
		$('#video_full').fadeIn(1000);
		$f('video_full_video_a').show();
		$f('video_full_video_a').play();
	});
	$('#enlaces_externos img').mouseover(function(){
		var ima=$(this).attr("src").replace("_de","");
		$(this).attr("src",ima);
	});
	$('#enlaces_externos img').mouseout(function(){
		var ima=$(this).attr("src").replace(".png","_de.png");
		$(this).attr("src",ima);
	});
	$('#info_mobile li').hover(
		function(){
			$(this).addClass("marked");
			$(this).css("width","500px");
			$(".marked > span").show("slow");
		}
	,
		function(){
			$(".marked > span").hide("normal");
			$(this).removeClass("marked");
			$(this).css("width","");
		}
	);
	$("#seis_penultimos_posts_posts").cycle({ 
		fx:		'cover',
		cssBefore:	{ opacity: 1 },
		animOut:	{ opacity: 0 },
		easing:		'backinout',
		speed:		1000,
		timeout:	3000
	});
	$('.video_unique a.lightbox').lightBox();
	flowplayer("video_full_video_a", {
		src: "player/flowplayer-3.1.5.swf",
		version: [9, 115],
		buffering : true,
		scaling:'fit',
		onFail:function(){
			document.getElementById("video_full_video").innerHTML =
			"Necesita la última versión de Flash para ver los MP4. " +
			"Su versión es " + this.getVersion();
		}
	},
	{
		clip: {
			autoPlay: true,
			autoBuffering: true
		},
		onLastSecond:function() {
			$f('video_full_video_a').hide();
			$('#video_full').fadeOut(1000);
		},
		plugins: {
			controls: {
				url: 'player/flowplayer.controls-3.1.5.swf', 
			
				// display properties 
				bottom:0,
				height:24,
				backgroundColor: '#303030',
				backgroundGradient: 'medium',
			
				// controlbar-specific configuration 
				fontColor: '#000080',
				timeFontColor: '#333333',
				autoHide: 'always',
				hideDelay: 1500,
			
				// which buttons are visible and which are not? 
				play:false, 
				volume:true, 
				mute:true, 
				time:true, 
				stop:false, 
				playlist:false, 
				fullscreen:true, 
			
				// scrubber is a well-known nickname for the timeline/playhead combination 
				scrubber: true 
			
				// you can also use the "all" flag to disable/enable all controls 
			}
		}
	});
});