	function prepara_banners(sponsor) {

		var banner_id = 1;
		
		$$('#sponsors'+sponsor+' .banners a').each(function(el) { 

			el.id = 's'+sponsor+'_banner'+banner_id;
			
			el.style.display = 'block';

			if (banner_id > 1) {

				el.set('opacity','.0');
			
			};
			
			banner_id++;

		});
		
		banner_cantidad[sponsor] = banner_id;
		
		(function(){ rotador_banners(sponsor); }).periodical(4000);

	};

	function rotador_banners(sponsor) {
	
		var nuevo_banner = banner_actual[sponsor]+1;
		
		if (nuevo_banner == banner_cantidad[sponsor]) { nuevo_banner = 1; };
	
		$('s'+sponsor+'_banner'+banner_actual[sponsor]).fx = new Fx.Tween($('s'+sponsor+'_banner'+banner_actual[sponsor]), {property:'opacity', duration: 1000}).start(0);	
		$('s'+sponsor+'_banner'+nuevo_banner).fx = new Fx.Tween($('s'+sponsor+'_banner'+nuevo_banner), {property:'opacity', duration: 1000}).start(1);	
	
		banner_actual[sponsor] = nuevo_banner;
	
	};
	
	function paginador_pe(accion) {
		
		if (accion=='next') {

			var nuevo_ul_pe = actual_ul_pe+1;
		
			$('pe'+actual_ul_pe).fx = new Fx.Tween($('pe'+actual_ul_pe), {property:'opacity', duration: 1000}).start(0);

			$('pe'+nuevo_ul_pe).style.left = '600px';
			$('pe'+nuevo_ul_pe).set('opacity','1');
			
			var myTransition = new Fx.Transition(Fx.Transitions.Bounce);

			var animation = new Fx.Tween('pe'+nuevo_ul_pe, {duration: 1000, transition: myTransition.easeOut});

			animation.start('left', 0);
			
			actual_ul_pe = nuevo_ul_pe;
			
			$('actual_ul_pe').innerHTML = actual_ul_pe;
			
		};
		
		if (accion=='prev') {

			var nuevo_ul_pe = actual_ul_pe-1;
		
			$('pe'+actual_ul_pe).fx = new Fx.Tween($('pe'+actual_ul_pe), {property:'opacity', duration: 1000}).start(0);

			$('pe'+nuevo_ul_pe).style.left = '600px';
			$('pe'+nuevo_ul_pe).set('opacity','1');
			
			var myTransition = new Fx.Transition(Fx.Transitions.Bounce);

			var animation = new Fx.Tween('pe'+nuevo_ul_pe, {duration: 1000, transition: myTransition.easeOut});

			animation.start('left', 0);
			
			actual_ul_pe = nuevo_ul_pe;
			
			$('actual_ul_pe').innerHTML = actual_ul_pe;
			
		};		

		if (actual_ul_pe==cantidad_ul_pe) {

			$('paginador_pe_next').style.display = 'none';
		
		} else {

			$('paginador_pe_next').style.display = 'inline';
		
		};

		if (actual_ul_pe==1) {

			$('paginador_pe_prev').style.display = 'none';
		
		} else {

			$('paginador_pe_prev').style.display = 'inline';
		
		};

	};

	function paginador_ea(accion) {
		
		if (accion=='next') {

			var nuevo_ul_ea = actual_ul_ea+1;
		
			$('ea'+actual_ul_ea).fx = new Fx.Tween($('ea'+actual_ul_ea), {property:'opacity', duration: 1000}).start(0);

			$('ea'+nuevo_ul_ea).style.left = '600px';
			$('ea'+nuevo_ul_ea).set('opacity','1');
			
			var myTransition = new Fx.Transition(Fx.Transitions.Bounce);

			var animation = new Fx.Tween('ea'+nuevo_ul_ea, {duration: 1000, transition: myTransition.easeOut});

			animation.start('left', 0);
			
			actual_ul_ea = nuevo_ul_ea;
			
			$('actual_ul_ea').innerHTML = actual_ul_ea;
			
		};
		
		if (accion=='prev') {

			var nuevo_ul_ea = actual_ul_ea-1;
		
			$('ea'+actual_ul_ea).fx = new Fx.Tween($('ea'+actual_ul_ea), {property:'opacity', duration: 1000}).start(0);

			$('ea'+nuevo_ul_ea).style.left = '600px';
			$('ea'+nuevo_ul_ea).set('opacity','1');
			
			var myTransition = new Fx.Transition(Fx.Transitions.Bounce);

			var animation = new Fx.Tween('ea'+nuevo_ul_ea, {duration: 1000, transition: myTransition.easeOut});

			animation.start('left', 0);
			
			actual_ul_ea = nuevo_ul_ea;
			
			$('actual_ul_ea').innerHTML = actual_ul_ea;
			
		};		

		if (actual_ul_ea==cantidad_ul_ea) {

			$('paginador_ea_next').style.display = 'none';
		
		} else {

			$('paginador_ea_next').style.display = 'inline';
		
		};

		if (actual_ul_ea==1) {

			$('paginador_ea_prev').style.display = 'none';
		
		} else {

			$('paginador_ea_prev').style.display = 'inline';
		
		};

	};
	
	function ea() {
	
		$('eventos-pais').fx = new Fx.Tween($('eventos-pais'), {property:'opacity', duration: 1000}).start(0);
		$('eventos-proximos').fx = new Fx.Tween($('eventos-proximos'), {property:'opacity', duration: 1000}).start(0);		
		$('eventos-anteriores').fx = new Fx.Tween($('eventos-anteriores'), {property:'opacity', duration: 1000}).start(1);
		
		$('anteriores').innerHTML = '<a href="javascript:pe();">'+textos_eventos_xxxx+'</a>';
	
	};

	function pe() {
	
		$('eventos-pais').fx = new Fx.Tween($('eventos-pais'), {property:'opacity', duration: 1000}).start(0);	
		$('eventos-anteriores').fx = new Fx.Tween($('eventos-anteriores'), {property:'opacity', duration: 1000}).start(0);	
		$('eventos-proximos').fx = new Fx.Tween($('eventos-proximos'), {property:'opacity', duration: 1000}).start(1);	

		$('anteriores').innerHTML = '<a href="javascript:ea();">'+textos_eventos_anteriores+'</a>';
	
	};

	function mapa(pais) {
	
		var nombre_pais = '';
		
		if (pais==1) { nombre_pais = textos_argentina; }
		else if (pais==3) { nombre_pais = textos_brasil; }
		else if (pais==4) { nombre_pais = textos_chile; }
		else if (pais==5) { nombre_pais = textos_colombia; }
		else if (pais==8) { nombre_pais = textos_mexico; }
		else if (pais==10) { nombre_pais = textos_peru; }
		else if (pais==19) { nombre_pais = textos_usa; }
		else if (pais==13) { nombre_pais = textos_uruguay; }
		else if (pais==18) { nombre_pais = textos_panama; }
		else if (pais==16) { nombre_pais = textos_ecuador; }
		else if (pais==22) { nombre_pais = textos_inglaterra; }
		else if (pais==23) { nombre_pais = textos_venezuela; }
		else if (pais==24) { nombre_pais = textos_espana; }
		else if (pais==25) { nombre_pais = textos_portugal; }
		else if (pais==26) { nombre_pais = textos_italia; }
		else if (pais==27) { nombre_pais = textos_panama; };
		
//		$('eventos-pais-title').innerHTML = nombre_pais+' - '+textos_eventos_proximos;
		
		if (lis_ep[pais]) { $('eventos-pais-ul').innerHTML = lis_ep[pais]; } else { $('eventos-pais-ul').innerHTML = '<h2 id="eventos-pais-title-a" class="eventos-title">'+textos_proximamente+'</h2>'; };

		$('eventos-proximos').fx = new Fx.Tween($('eventos-proximos'), {property:'opacity', duration: 1000}).start(0);	
		$('eventos-anteriores').fx = new Fx.Tween($('eventos-anteriores'), {property:'opacity', duration: 1000}).start(0);	
		$('eventos-pais').fx = new Fx.Tween($('eventos-pais'), {property:'opacity', duration: 1000}).start(1);	

		$('anteriores').innerHTML = '<a href="javascript:pe();">'+textos_eventos_xxxx+'</a>';
	
	};
	
	function ayuda_enviar(tipo) {
	
		alert('Enviado '+1);
		
		SexyLightbox.close();
	
	};
	
	function email_check(str) {
		var at="@";
		var dot=".";
		var lat=str.indexOf(at);
		var lstr=str.length;
		var ldot=str.indexOf(dot);

		if ((str.indexOf(at)==-1) ||
		((str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)) ||
		((str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)) ||
		(str.indexOf(at,(lat+1))!=-1) ||
		((str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)) ||
		(str.indexOf(dot,(lat+2))==-1) ||
		(str.indexOf(" ")!=-1)) {
			return false;
		} else {
			return true;
		};
	};
