var playerMiniRepeticiones = 0;
var errorCode = 0;
function playerMini(videoURL){
	// Cargo el player basico
	flowplayer('playerMini', {allowfullscreen: 'false', src: 'http://videos.chilevision.cl/players/flowplayer.commercial-3.1.5.swf', cachebusting: jQuery.browser.msie, wmode: 'opaque'},
		{
			key: '#$2c6929c7c6e35634270',
			onError : function(err) { 
				jQuery("#playerMini").html(" ");
			}, 
			clip: {
				url:videoURL,
				onBeforeFinish: function () { 
					playerMiniRepeticiones++;
					if (playerMiniRepeticiones < 10){
						this.play(); 
					}
					return false; 
				} 				
			},       
			// Boton play oculto
			play: { 
				opacity: 0, 
				label: null, 
				replayLabel: null
			},
			plugins: {
				// Controles
				controls: null,
				
				// Link a Online
				link: { 
			 
					// location of the plugin 
					url: 'flowplayer.content-3.1.0.swf', 
			 
					// display properties 
					margin: 0,
					padding: 0,
					top: 0, 
					width: 96, 
					height: 64,
					borderRadius: 0,
					border: 0,
					opacity: 0,
					html: '<a href="http://www.chilevision.cl/home/senal-nacional.html"><img src="http://estaticos.chilevision.cl/home/templates/portada_201004/images/certifica_pivote.gif" width="96" height="64"/></a>'

				}		
				
			}
		});
}
