$(document).ready(function () { 
	$(".eng").css("display","none");
	$(".link-more").text("Conocer m\xe1s");
	$(".link-more").next().css("display","none");
	$("#addcomments h2").text("ESCRIBE TU COMENTARIO");
	$("p.event_price span").text("Valor: ");
	$(".field_textarea label").text("Mensaje");
	$(".reset-link a").text("Borrar Campos");
	$("#comments h2").text("Comentarios");
	$(".dig-in a").text("Ver todos los Eventos");
	$(".a_register_link").text("Registrarse al Evento");
	$(".google-map-link a").text("C\xf3mo llegar");
	$(".event_address .section-title").text("Direcci\xf3n: ");
	$(".start_date .section-title").eq(0).text("Fecha de Inicio: ");
	$(".start_date .section-title").eq(1).text("Fecha de Finalizaci\xf3n: ");
	$(".start_date > br").eq(1).css("display","inline");
	$(".span_event_time_label").first().text("Hora de Inicio: ");
	$(".span_event_time_label").first().css("margin-right","43px");
	$(".span_event_time_label").last().text("Hora de Finalizaci\xf3n: ");
	$(".event_prices .event_price_label").text("Valor: ");
	$(".btn_event_form_submit").attr("value","Enviar");
	$("#email-1-0-0 label").text("Email no válido");
	$(".espresso_edit_attendee").attr("title","Editar datos de Registro");
	var estado = $(".dl-inline * img").attr("title");
	if(estado=="None"){
	$(".dl-inline * img").attr("title","Incompleto");}
	else if(estado=="Completed"){
	$(".dl-inline * img").attr("title","Completo");}
	else if(estado=="Incompleted"){
	$(".dl-inline * img").attr("title","Incompleto");}
	else if(estado=="Pending"){
	$(".dl-inline * img").attr("title","Pendiente");}
	else if(estado=="Payment Declined"){
	$(".dl-inline * img").attr("title","Pago Rechazado");
	}
	b = $("#espresso_confirmation_display > p.instruct > b").first().text(); 
	b= "<b>"+b+"</b>";
	$("#espresso_confirmation_display > p.instruct").first().text("Gracias! Tu registro se ha realizado con exito para el evento: "); 
	$("#espresso_confirmation_display > p.instruct").first().append(b); 
	$("p.spaces-available span.section-title").text("Cupos Disponibles: ");
	$("p.spaces-unavailable span.section-title").text("Cupos Disponibles: ");
	$("div.event-messages p.event_full strong").eq(0).text("Lo sentimos pero este evento ha alcanzado el m\xE1ximo n\xFamero de asistentes");
	$("div.event-messages p.event_full strong").eq(1).text("Por favor ponte en contacto con nosotros");
	$(".event_price").text().replace(/(\S{2})/g,"$1a");;
	
	$('.event_questions .event_form_field').eq(5).css("display","none");
	$('.event_questions .event_form_field input').eq(5).attr("class","my_class");
	var tituloEvento = $('#registration_form h2.event_title').text();
	
	if(tituloEvento.indexOf("Almuerzo") !== -1){
		var clas = $('.event_questions .event_form_field input').eq(5).attr("class");
		$('.event_questions .event_form_field input').eq(5).attr("class",clas+" required");
		$('.event_questions .event_form_field').eq(5).css("display","block");
	}
	
	
	tituloEvento = $('#event_espresso_attendee_verify span.event_espresso_value').eq(0).text();
	//alert(tituloEvento);
	if(tituloEvento.indexOf("Almuerzo") === -1){
		$('#event_espresso_attendee_verify_questions * tr').eq(5).css("display","none");
	}
	
	
}); 


