/*Funcion para encastrar videos flowplaeyr*/
function flow_video(id,video,captura,ancho,alto){
	var id=id;
	var video=video;
	var captura=captura;
	var ancho=ancho;
	var alto=alto;

	document.write('<div id="'+id+'" style="width:'+ancho+'px;height:'+alto+'px;"></div>');

	flowplayer( id, "http://www.brunoymaria.com/flowplayer/flowplayer.commercial-3.2.7.swf",
		{
			key: '#$000988eb6c32b57ae76',

			playlist: [
				captura,{
					url: video,
					autoPlay: false,
					autoBuffering: true,
					/*
					onFinish: function() {
						document.getElementById(id).innerHTML = '<iframe src="http://www.brunoymaria.com/flowplayer/fin.htm" width="640" height="480" style="padding:0;margin:8px 6px;" frameborder="0" scrolling="no" class="expose"></iframe>';
					}
					*/
					/*
					onFinish: function() {

					}
					*/
				},
				captura
			],

			play: {
				url: 'http://www.brunoymaria.com/flowplayer/play.png',
				opacity: 1,
				label: null,
				width: 200,
				height: 200,
				fadeSpeed: 500,
				rotateSpeed: 50
			},

			plugins: {
				controls: {
					autoHide: false
				 }
			},

			onLoad: function () {
				this.setVolume(80);
			},

		}
	);

}

