// //////////////////////////////////////////////////////////////////////////////////////////////////////////////
function MostrarMensaje(Mensaje, DosBotones, FuncionCallBack){
	var aspecto = 'cleanblue';
	
	if (DosBotones){
		//Mensaje con botón "Aceptar" y botón "Cancelar"
		
		if (FuncionCallBack == ''){
			//Mensaje sin función callback
			$.prompt(Mensaje, {
					 buttons:{Aceptar:true,Cancelar:false},
					 prefix:aspecto,
					 overlayspeed: 'fast',
					 promptspeed: 'fast'
					 });
		}else{
			//Mensaje con función callback
			$.prompt(Mensaje, {
					 buttons:{Aceptar:true,Cancelar:false},
					 prefix:aspecto,
					 overlayspeed: 'fast',
					 promptspeed: 'fast',
					 callback: FuncionCallBack
					 });
		}
	}else{		
		//Mensaje sólo con botón "Aceptar"
		
		if (FuncionCallBack == ''){
			//Mensaje sin función callback
			$.prompt(Mensaje, {
					 buttons:{Aceptar:true},
					 prefix:aspecto,
					 overlayspeed: 'fast',
					 promptspeed: 'fast'
					 }); 
		}else{
			//Mensaje con función callback
			$.prompt(Mensaje, {
					 buttons:{Aceptar:true},
					 prefix:aspecto,
					 overlayspeed: 'fast',
					 promptspeed: 'fast',
					 callback: FuncionCallBack
					 }); 
		}
	}
}
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////
function MostrarImagenesParticipante(ep){
}
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////
function AbrirPanelComentarios(ep){
	$('#contenedora_comentarios').slideToggle('fast', function (){
													  if ($('#contenedora_comentarios').css('display') != 'none'){
														  if ($('#contenedora_comentarios').html() == ''){
															  $('#contenedora_comentarios').html('Cargando...');
															  $.post('ajax/ajax_cargar_comentarios.asp',{ep:ep},
																	 function(data){
																		 $('#contenedora_comentarios').html(data);
															  });
														  }
													  }
											   });
}
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////
function EnviarComentario(ep){
	if (($('#comentario').val() != '') && ($('#nick').val() != '') && ($('#email').val() != '')){
		if ($('#aceptacion_clausula').attr('checked')){
			$.post('ajax/ajax_envio_comentario.asp',
				   {
					com:$('#comentario').val(),
					nick:$('#nick').val(),
					email:$('#email').val(),
					acepta:$('#aceptacion_clausula').attr('checked'),
					ep:ep
				   },
				   function (data){MostrarMensaje(data, false, '');}
				   );
		}else{
			MostrarMensaje('Debe aceptar la cl&aacute;usula de privacidad.', false, '');
		}
	}else{
		MostrarMensaje('Falta algunos de los datos.', false, '');
	}
}
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////
