// JavaScript Document
// textos de las opciones, debe ponerse como numero consecutivo
//var pcierra="images/cierra.gif";
//var pabre="images/abre.gif";

var conexion2;
var colorletra;
var inf=new Array(20);
var infi= new Array(20);
var ep = new Array(12);
var er = new Array(12);
var ip = new Array(12);
var ir = new Array(12);
var corrida=239;

// bloque de las FAQs, preguntas
  ep[1]="Costo de un  seguro de viajes al exterior";
  ep[2]="Documentos para adquirir un seguro de viajes al exterior";
  ep[3]="Horario de atención al público en ASISTUR";
  ep[4]="Dónde puedo comprar / adquirir un seguro de viajes hacia Cuba";
  ep[5]="Cuánto cuesta un seguro de viajes hacia Cuba";
  ep[6]="Cuáles coberturas me brinda el seguro de viajes hacia Cuba";
  ep[7]="Tengo 70 años  o más.. ¿ hay coberturas de seguro para mí ?";
  ep[8]="Estoy en Cuba y quiero reservar  un seguro de viajes para alguien que viene hacia acá.  ¿ Puedo hacerlo ?";
  ep[9]="Ante una emergencia de un viajero, ¿ Cómo acceder a dinero en efectivo ?";
  ep[10]="Cuánto cuesta el servicio de asistencia financiera ?";
  ep[11]="Cómo recibir asistencia médica en Cuba a través de mi seguro de viajes";
  ep[12]="Soy cubano y estoy en el extranjero, ¿ cómo puedo recibir asistencia médica fuera de Cuba a través de mi seguro de viajes cubano ?";
  ip[1]="How much does a travel insurance abroad cost";
  ip[2]="Which documents are needed for getting a travel insurance abroad";
  ip[3]="Which are the working hours in ASISTUR";
  ip[4]="Where can I buy / get  a travel insurance to Cuba";
  ip[5]="How much does a travel insurance to Cuba cost";
  ip[6]="Which coverings offer me the travel insurance to Cuba";
  ip[7]="I am 70 year-old grown- ups .. ¿ are there any coverings for me ?";
  ip[8]="I am in Cuba and I want to reserve a  travel insurance for someone who travel to Cuba. Can I do that ?";
  ip[9]="In case of an emergency.. How can I get cash ?";
  ip[10]="How much does the financial aid service cost ?";
  ip[11]="How can I get medical attendance through my travel insurance ?";
  ip[12]="I am Cuban and I am abroad, How can I get medical attendance through my Cuban travel insurance ?";

// bloque de las FAQs, respuestas
  er[1]="Cuesta 2.50 CUC por dia";
  er[2]="Ud. debe tener una identificación válida y los datos de viaje (día de partida, día de regreso)";
  er[3]="Lunes a Viernes, de 9:00am-3:00pm";
  er[4]="Visite el link http://www.asistur.cu/segurosin/directos.php o <a href=javascript:correo('5')>escribanos</a> ";
  er[5]="El seguro de viajes hacia Cuba cuesta 3.00 por día. Si Ud. Va a practicar actividades de alto riesgo o tiene 70 años o más, entonces debe pagar una sobreprima de 2.00 USD adicionales por día";
  er[6]="-Gastos medicos por enfermedad y accidente: 25000 USD <br />-Repatriacion y evacuacion  :7000 USD";
  er[7]="Si, esa edad se considera alto riesgo, por tanto debe pagar un total de 5.00 USD por día";
  er[8]="Si,  <a href=http://www.asistur.cu/segurosin/directos.php>visite el link</a> con los datos del viajero. En el formulario escriba su dirección de e-mail para que reciba la notificación de la reserva con todos los detalles. Entonces pague la reserva en <a href='mapa.html' target='_top'>nuestras oficinas</a>";
  er[9]="Los pasos a seguir son algo extensos para explicarlos aquí. Por favor  llámenos al (53 7) 861 8920, o visite <a href='mapa.html' target='_top'>nuestras oficinas</a>,  o <a href=javascript:correo('4')>o envie un e-mail</a>";
  er[10]="Cobramos el 10% del importe solicitado  más 17.00 CUC por gastos bancarios";
  er[11]="Ud. debe tener los datos de localización de la agencia / empresa que le vendió el seguro. Contáctelos que ellos de immediato coordinarán con nosotros las acciones necesarias. En caso de Ud. No poder contactarles, entonces llámenos por el (53 7) 866 8527, 8339 o el 8920 o <a href=javascript:correo('1')>escribanos</a>.";
  er[12]="Ud. debe contactarnos por los teléfonos (53 7) 866 8527, 8339 o el 8920 o <a href=javascript:correo('1')>escribanos</a>, comunicándonos con precisión dónde Ud. puede ser localizado. Entonces nos hacemos cargo de brindarle asistencia con la intervención del proveedor de servicios de su localidad";
  ir[1]="A travel insurance to Cuba costs 2.50 CUC per day";
  ir[2]="You should have a valid identification and the travel data (date of departure, day of returnl)";
  ir[3]="Mondays to Fridays, 9:00am-3:00pm";
  ir[4]="Visit the  link http://www.asistur.cu/segurosin/directos.php or <a href=javascript:correo('5')>Write us</a> ";
  ir[5]="It costs 3.00 USD a day. If you are going to practice high risk activities or your are older than 70, then you have to pay 2.00 USD per day additionally";
  ir[6]="-Medical expenses for accidents or illness:  25000 USD<br />-Repatriation and Evacuation :7000 USD";
  ir[7]="Yes, but your age is considered as high risk, therefore you should pay 5.00 USD a day.";
  ir[8]="Yes, <a href =http://www.asistur.cu/segurosin/directos.php>visit the link</a> with the traveler data. Write on the form your e-mail address for getting the notification for the reservation with all details. Then you should pay in <a href='mapa.html' target='_top'>our offices</a>";
  ir[9]="The steps to follow are a little bit large for being explaining here. Please phone us by the number (53 7) 861 8920 or visit <a href='mapa.html' target='_top'>our offices</a> or send <a href=javascript:correo('4')>or send a e-mail</a>";
  ir[10]="We charge 10 % of requested amount plus 17.00 CUC because of banking costs";
  ir[11]="You should have the locations data of the agency or company which sold you the insurance. Get in touch with them and they will coordinate all necessary steps with us. In case you could not contact them, then phone us by the numbers (53 7) 866 8527, 8339 o el 8920 or <a href=javascript:correo('1')>write us</a>";
  ir[12]="You should contact us by the phone-fax numbers (53 7) 866 8527, 8339 o el 8920 or <a href=javascript:correo('1')>write us</a>,telling us exactly where you can be located. Then we take care of you through the intervention of the service provider from the location";
// bloque de contenidos en ESPAÑOL
// fragmento de la organizacion

inf[1]="<span class='Estilo2'>ASISTUR</span> es una sociedad mercantil cubana del sector de los seguros y los servicios financieros.<br><br>Desde <span class='Estilo3'>1991</span> es la compañía líder en Cuba en la prestación de servicios especializados de asistencia a los viajeros, para lo cual dispone de: <br><br><span class='Estilo2'>.</span>Personal calificado <br><span class='Estilo2'>.</span>Una extensa red de proveedores<br><span class='Estilo2'>.</span>Corresponsales en el extranjero <br>que garantiza la asistencia al viajero en cualquier país<br><span class='Estilo2'>.</span>Central de Alarma disponible las 24 horas del año todos los días<br><br><span class='Estilo2'>ASISTUR</span> actúa además como corredor de seguros en la comercialización de diferentes productos de las compañías del mercado cubano<br><br><span class='Estilo2'>La Organizaci&oacute;n </span> cuenta con la reconocida confianza de las principales compañias internacionales de asistencia para los cuales actúa como corresponsal en Cuba<br><br><center><span class='Estilo2'>Oficina Central en La Habana: </span>Prado No. 208 entre Trocadero y Colón, Habana Vieja, La Habana.<br><br><span class='Estilo3'>Telf:</span>(53 7) 866 4499<br><span class='Estilo3'>Fax</span>:(53 7) 866 8087<br><br><span class='Estilo3'>CENTRAL DE ALARMA </span>:<br>(53 7) 866 8527,<br>866 8339, 866 8920</center><br>";

infi[1]="<span class='Estilo2'>ASISTUR</span> is a company per share of Grupo CAUDAL engaged in the insurance and financial field.<br><br>Since <span class='Estilo3'>1991</span> is the leading company in Cuba specialized in rendering assistance services to visitors. To do so, it disposes of: <br><br><span class='Estilo2'>.</span>A highly qualified personal <br><span class='Estilo2'>.</span>wide network of providers throughout the country.<br><span class='Estilo2'>.</span>Correspondant companies abroad <br>which guarantee the attendant to traveller in any country<br><span class='Estilo2'>.</span>Alarm Centre available 24 hours every day<br><br><span class='Estilo2'>ASISTUR</span> acts as insurance broker offering different insurance covers tailored by the main Cuban insurance companies<br><br><span class='Estilo2'>The company </span> acts as correspondent of the most important<br>international assistance and insurance companies from all over the world.<br><br><center><span class='Estilo2'>Oficina Central en La Habana: </span>Prado No. 208 entre Trocadero y Colón, Habana Vieja, La Habana.<br><br><span class='Estilo3'>Telf:</span>(53 7) 866 4499<br><span class='Estilo3'>Fax</span>:(53 7) 866 8087<br><br><span class='Estilo3'>CENTRAL DE ALARMA </span>:<br>(53 7) 866 8527,<br>866 8339, 866 8920</center><br>";


inf[2]="Oficinas en los polos turísticos más importantes de la Isla: <br><br><span class='Estilo2'>.</span> Varadero<br><span class='Estilo2'>.</span> Cienfuegos<br><span class='Estilo2'>.</span> Cayo Coco<br><span class='Estilo2'>.</span> GuardaLaVaca<br><span class='Estilo2'>.</span> Santiago de Cuba<br><br><center><a href='mapa.html' target='_top'>Ubicación</a>";
infi[2]="The company has offices in the most important tourist resorts of the Island : <br><br><span class='Estilo2'>.</span> Varadero<br><span class='Estilo2'>.</span> Cienfuegos<br><span class='Estilo2'>.</span> Cayo Coco<br><span class='Estilo2'>.</span> GuardaLaVaca<br><span class='Estilo2'>.</span> Santiago de Cuba<br><br><center><a href='mapa.html' target='_top'>Location</a>";


inf[3]="Sistema de Gestión de la Calidad, Norma<span class='Estilo3'> ISO 9001:2008<br></span> desde octubre 2009<br><br><center><img src='images/onn2009.jpg'></center><br>";
infi[3]="Quality Procurement System, Norm<span class='Estilo3'> ISO 9001:2008<br></span> since October 2009<br><br><center><img src='images/onn2009.jpg'></center><br>";

inf[4]="<center><img src='images/organigrama.gif'></center><br>";
infi[4]="<center><img src='images/flowchart.gif'></center><br>";

inf[5]="Apreciamos su opinión sobre nuestros servicios.<br><center><a href='http://www.asistur.cu/encuestamedica_2.php'  target='_blank'>Asistencia Médica</a><br><a href='http://www.asistur.cu/encuestarepfun_2.php' target='_blank'>Repatriación Funeraria</a><br><a href='http://www.asistur.cu/encuestaautos_2.php' target='_blank'>Seguro Automotor</a><br><a href='http://www.asistur.cu/encuestagm_2.php' target='_blank'>Seguro para Gastos Médicos</a></center>";
infi[5]="We appreciate your opinion on our services.<br><center><a href='http://www.asistur.cu/encuestamedica_2.php' target='_blank'>Medical Assistance</a><br><a href='http://www.asistur.cu/encuestarepfun_2.php' target='_blank'>Funeral Repatriation</a><br><a href='http://www.asistur.cu/encuestaautos_2.php' target='_blank'>Car Insurance</a></center>";		

// fragmento de asistencia
inf[7]="</span class='Estilo2'>.</span>Coordinaciones de ex&aacute;menes m&eacute;dicos ambulatorios en hospitales y domicilios<br></span class='Estilo2'>.</span>Monitoreo del estado del paciente<br></span class='Estilo2'>.</span>Obtenci&oacute;n y env&iacute;o de reportes m&eacute;dicos.<br></span class='Estilo2'>.</span>Coordinaci&oacute;n de sillas de ruedas.<br></span class='Estilo2'>.</span>Coordinaci&oacute;n de ambulancias a&eacute;reas y terrestres.<br></span class='Estilo2'>.</span>Control de gastos m&eacute;dicos.<br>";
infi[7]="</span class='Estilo2'>.</span>Outpatient medical care in hospitals or at home.<br></span class='Estilo2'>.</span>Obtaining and sending of medical reports.<br></span class='Estilo2'>.</span>Obtaining and sending of medical reports.<br></span class='Estilo2'>.</span>Coordination of wheelchairs and medication<br></span class='Estilo2'>.</span>Coordination of Air and land ambulance services<br></span class='Estilo2'>.</span>Control of medical expenses<br>";

inf[8]="<span class='Estilo2'>.</span>Seguimiento del estado del paciente<br><span class='Estilo2'>.</span>Reserva de los asientos a&eacute;reos necesarios.<br><span class='Estilo2'>.</span>Coordinaciones para la transportaci&oacute;n al aeropuerto.<br><span class='Estilo2'>.</span>Acompa&ntilde;amientos m&eacute;dicos.<br><span class='Estilo2'>.</span>Recepci&oacute;n, atenci&oacute;n y hospedaje de m&eacute;dicos y param&eacute;dicos.<br><span class='Estilo2'>.</span>Gestiones para la autorizaci&oacute;n de aterrizaje de ambulancias a&eacute;reas.<br><span class='Estilo2'>.</span>Coordinaci&oacute;n de ambulancias a&eacute;reas y terrestres.<br><span class='Estilo2'>.</span>Atenci&oacute;n a los tripulantes de las ambulancias a&eacute;reas<br>";
infi[8]="<span class='Estilo2'>.</span>Monitoring of patient s condition<br><span class='Estilo2'>.</span>Booking of airline seats.<br><span class='Estilo2'>.</span>Transportation to the airport.<br><span class='Estilo2'>.</span>Assistance by medical staff.<br><span class='Estilo2'>.</span>Reception and accomodation for doctors and paramedics.<br><span class='Estilo2'>.</span>Authorization for air ambulance landing<br><span class='Estilo2'>.</span>Coordination of Air and land ambulance services<br><span class='Estilo2'>.</span>Assistance to the air ambulance crew.<br>";


inf[9]= "Si Usted se ha quedado <span class='Estilo3'>sin efectivo</span> durante su estancia en Cuba, cuente con nosotros, podemos ocuparnos de su urgencia financiera.<br> Le adelantamos efectivo <br>previo dep&oacute;sito de un familiar<br> o amigo suyo en el extranjero<br><br><span class='Estilo2'>!! LL&aacute;menos !! </span>por el tel&eacute;fono<br><center> <span class='Estilo2'>(53 7) 861 8290</span><br><br><a href=javascript:correo('4') title='E-mail hacia Asistencia Financiera'>o envie un e-mail</a></center><br>";
infi[9]= "If you are run  <span class='Estilo3'>out of cash</span> while your staying in Cuba, we can take care of your financial urgency<br> We advance some cash previous deposit <br>from a relative or friend abroad<br><br><span class='Estilo2'>Call us !!</span><br>by the phone<br><center> <span class='Estilo2'>(53 7) 861 8290</span><br><br><a href=javascript:correo('4') title='E-mail to financial aid service'>or send a e-mail</a></center><br>";


inf[10]="<span class='Estilo2'>.</span> Realizaci&oacute;n de gestiones m&eacute;dico - legales y de los servicios necrol&oacute;gicos requeridos<br><span class='Estilo2'>.</span>Tramitaci&oacute;n de la documentaci&oacute;n con las autoridades locales y consulados<br><span class='Estilo2'>.</span>Reservaci&oacute;n de espacios en l&iacute;neas a&eacute;reas  <br><span class='Estilo2'>.</span>Coordinaci&oacute;n para la transportaci&oacute;n al aeropuerto<br><span class='Estilo2'>.</span>Env&iacute;o a los servicios funerarios receptivos de la documentaci&oacute;n acompa&ntilde;ante";
infi[10]="<span class='Estilo2'>.</span>Medical-Legal procedures and the required obituary services.<br><span class='Estilo2'>.</span>Processing of documents with local and consular authorities.<br><span class='Estilo2'>.</span>Airline booking<br><span class='Estilo2'>.</span>Coordination of transfer to the airport.<br><span class='Estilo2'>.</span>Sending of appropriate documents to receptive funeral services";

inf[11]= "<span class='Estilo2'>.</span>Localizaci&oacute;n de equipajes <br><span class='Estilo2'>.</span>Tramitaci&oacute;n en la obtenci&oacute;n de documentos de viajes<br><span class='Estilo2'>.</span>Coordinaci&oacute;n de representaci&oacute;n legal <span class='Estilo2'>.</span>Coordinaci&oacute;n en la tramitaci&oacute;n de fianzas";
infi[11]= "<span class='Estilo2'>.</span>Retrieval of misplaced luggages<br><span class='Estilo2'>.</span>Coordination of new trip documents<br><span class='Estilo2'>.</span>Coordination of legal assistance<span class='Estilo2'>.</span>Payment of Bail Bond";


// seguros
inf[13]="Protecci&oacute;n para su veh&iacute;culo contra: <br><span class='Estilo2'>.</span>Choque y Vuelco<br><span class='Estilo2'>.</span>Incendio, Rayo y Transporte (-Da&ntilde;os durante la transportaci&oacute;n de su veh&iacute;culo).<br><span class='Estilo2'>.</span>Cubierta Comprensiva &nbsp;(Da&ntilde;os a la cubierta no provocados por un accidente <br><span class='Estilo2'>.</span>Sustracciones </span><br><a href='http://www.asistur.cu/seguroautomotor.php' title='Cotizaci&oacute;n de Cobertura de Da&ntilde;o F&iacute;sico y Responsabilidad Civil' target='_blank'>Ejemplo de cotizaci&oacute;n</a> </span>";
infi[13]="Protection of your vehicle against.<br><span class='Estilo2'>.</span>Crash and overturn.<br><span class='Estilo2'>.</span>Fire, lightning and transport (Damages during the transport of your vehicle)<br><span class='Estilo2'>.</span>Comprehensive Car body(other physical damages caused no by crash or overturn).<br><span class='Estilo2'>.</span>Theft</span><br><span class='Estilo2'>.</span>Civil Liability (RC)<br /><a href='http://www.asistur.cu/seguroautomotor.php' title='Cotizaci&oacute;n de Cobertura de Da&ntilde;o F&iacute;sico y Responsabilidad Civil' target='_blank'>Quotation example (in Spanish so far)</a> </span>";


inf[14]="Producto dirigido a personas extranjeras con residencia temporal<br> en la Republica de Cuba.<br>Cubre servicios de salud seg&uacute;n la edad y el sexo  de la persona<br>(Precios en CUC /a&ntilde;o).</span><a href=javascript:void(0)><img src='images/beneficios.gif' alt='Beneficios' width='13' height='13' border='0' title='Beneficios de la póliza' onclick=window.open('beneficios_del_producto_gastosmedicos.htm','','height=500,width=575,left=100,top=40') target='_top' /></a><br><br><center>Edad :<select name='edad' size='1' id='edad' style='font-family:Verdana; font-size:10px' title='Seleccione la edad' onchange= 'edad()'></select><br><br>H <input name='hombres' type='text'id='hombres' style='font-family:Verdana;font-size:10px;border:0px;background-color:#99CCFF' value='148.00' size='7' />  &nbsp; &nbsp; <br>M <input name='mujeres' type='text' id='mujeres' style='font-family:Verdana;font-size:10px;border:0px;background-color:#99CCFF' value='148.00' size='7' /></center>";
infi[14]="Product directed to foreign people <br>with temporary residence in the Republic of Cuba.<br> It covers health services according <br>to the age and gender of the person.<br>Benefits <br>(Precios en CUC /a&ntilde;o).</span><a href=javascript:void(0)><img src='images/beneficios.gif' alt='Benefits' width='13' height='13' border='0' title='Policy benefits' onclick=window.open('beneficios_del_producto_gastosmedicos_ingles.htm','','height=500,width=575,left=100,top=40') target='_top' /></a><br><br><center>Age :<select name='edad' size='1' id='edad' style='font-family:Verdana; font-size:10px' title='Select the age' onchange= 'edad()'></select><br><br>M <input name='hombres' type='text'id='hombres' style='font-family:Verdana;font-size:10px;border:0px;background-color:#99CCFF' value='148.00' size='7' />  &nbsp; &nbsp; <br><br>F  <input name='mujeres' type='text' id='mujeres' style='font-family:Verdana;font-size:10px;border:0px;background-color:#99CCFF' value='148.00' size='7' /></center>";

inf[15]="Viaje al exterior con una garant&iacute;a de asistencia durante su estancia:<br>El importe depende de la duraci&oacute;n del viaje<br>(2.50 CUC / d&iacute;a). <a href=javascript:void(0)><img src='images/beneficios.gif' title='Beneficios' width='13' height='13' border='0' title='Beneficios de la póliza' target='_top' onclick=window.open('beneficios_del_producto_save.htm','','height=340,width=430,left=100,top=80') /></a><br><br><font color='white'>___________</font>DD______MM______AAAA<br><center>Sal / Dep<select name='s_dia1' id='s_dia1' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_mes1' id='s_mes1' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_anio1' id='s_anio1' onChange=calcula_save()></select><br>Reg / Ret<select name='s_dia2' id='s_dia2' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_mes2' id='s_mes2' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_anio2' id='s_anio2' onChange=calcula_save()><option></option></select><br><br>Dias / Days : <input name='dias' type='text' id='dias' value='1' size='4' style='font-family:verdana; font-size:10px'  readonly='true' /><br><br>Precio / Price : <input name='precio' type='text' id='precio' value='2.50' size='6' style='font-family:verdana; font-size:10px' readonly='true' />";
infi[15]="You should travel abroad with an assistance guarantee during your stay abroad:<br>The amount depends on trip duration in days (2.50 CUC a day ) Benefits<br>(2.50 CUC / day). <a href=javascript:void(0)><img src='images/beneficios.gif' title='Benefits' width='13' height='13' border='0' title='Beneficios de la póliza' target='_top' onclick=window.open('beneficios_del_producto_save_ingles.htm','','height=340,width=430,left=100,top=80') /></a><br><br><font color='white'>___________</font>DD______MM______YYYY<br><center>Sal / Dep<select name='s_dia1' id='s_dia1' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_mes1' id='s_mes1' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_anio1' id='s_anio1' onChange=calcula_save()></select><br>Reg / Ret<select name='s_dia2' id='s_dia2' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_mes2' id='s_mes2' onChange=calcula_save()></select>&nbsp;&nbsp;<select name='s_anio2' id='s_anio2' onChange=calcula_save()><option></option></select><br><br>Dias / Days : <input name='dias' type='text' id='dias' value='1' size='4' style='font-family:verdana; font-size:10px'  readonly='true' /><br><br>Precio / Price : <input name='precio' type='text' id='precio' value='2.50' size='6' style='font-family:verdana; font-size:10px' readonly='true' />";

inf[16]="Coberturas:<br><span class='Estilo2'>.</span>Seguro del inmueble (protecci&oacute;n contra da&ntilde;os sufridos<br> por el inmueble)<br><span class='Estilo2'>.</span>Seguro del contenido (protecci&oacute;n contra da&ntilde;os ocasionados<br> al contenido del inmueble)<br><span class='Estilo2'>.</span>Seguro de mercanc&iacute;as (cubre p&eacute;rdida o da&ntilde;o a las mercanc&iacute;as, <br>almacenadas en el inmueble)<br><span class='Estilo2'>.</span>Cobertura adicional para mercanc&iacute;as refrigeradas<br> (por falta de refrigeraci&oacute;n en el inmueble donde est&eacute;n almacenadas)<br><span class='Estilo2'>.</span>Cobertura adicional para dinero en efectivo";
infi[16]="Coverages:<br><span class='Estilo2'>.</span>Property Insurance (against damages to the property)<br><span class='Estilo2'>.</span>Content Insurance (againts damages to the content)<br><span class='Estilo2'>.</span>Merchandise Insurance (against lose or damages of stored goods)<br><span class='Estilo2'>.</span>Addtitional Covering to refrigerated merchandises<br> for lack of refrigeration in the property<br> where they are stored)<br><span class='Estilo2'>.</span>Additional Cover for money in cash";


inf[17]="Protecci&oacute;n para los inmuebles y su contenido, as&iacute; como<br>la Responsabilidad Civil de sus ocupantes.<br><span class='Estilo2'>.</span></font>Seguro del inmueble (da&ntilde;os sufridos por el inmueble).<br><span class='Estilo2'>.</span>Seguro del contenido (da&ntilde;os ocasionados al contenido del inmueble).<br><span class='Estilo2'>.</span></font>Cobertura Adicional para Propiedades de Alto Riesgo.<br><span class='Estilo2'>.</span>Cobertura Adicional para Efectos Personales.<br><span class='Estilo2'>.</span>Cobertura Adicional para  Dinero en efectivo<br>";
infi[17]="Protection for properties and its content, as well as<br>he Civil Liability of its members.<br><span class='Estilo2'>.</span>Property insurance (protection against damages of the property)<br><span class='Estilo2'>.</span>Content Insurance (protection against the content of property).<br><span class='Estilo2'>.</span></font>Aditional Covering to Properties<br><span class='Estilo2'>.</span>Aditional Covering for Personal Effects.<br><span class='Estilo2'>.</span>Aditional Covering for money in cash<br>";


inf[18]="Ud. <a href='http://www.asistur.cu/segurosin/directos.php' title='Hacer reserva de seguro de viajes' target='_blank'>puede comprar un seguro de viajes</a> para contar con una protecci&oacute;n financiera con el objeto de enfrentar incidentes durante su estancia en Cuba en situaciones como repatriaci&oacute;n y evacuaci&oacute;n sanitaria, procesos de responsabilidad civil, accidentes, robo o p&eacute;rdida de equipaje, etc. <a href=javascript:correo('5')> Escriba </a> a la Direcci&oacute;n de Seguros para obtener m&aacute;s informaci&oacute;n";
infi[18]="You <a href='http://www.asistur.cu/segurosin/directos.php' title='Make a reservation of travel insurance' target='_blank'>may buy a travel insurance</a> in order to have a financial protection <br> for facing some incidents during your stay in Cuba <br> such as repatriation and evacuation, <br> civil liability processes, accidents, robbery and loss of baggages, etc. <br> <a href=javascript:correo('5')>Write </a> to the Insurance Division for getting more information.";

function verresp(preg, resp) {
 var esph="h"+resp;
 var esp="p"+resp;
 var iresp=resp;
 var answer=document.getElementById(esp);
 var recip=document.getElementById(esp);
 
 var idio=document.getElementById("idioma").value;
 if (idio=="e") { 
	question=er[iresp];
	pregunta=ep[iresp];		  
 } else { // faqs en ingles
   question=ir[iresp];
   pregunta=ip[iresp];
 }// if de las faqgs
 
 
 var t_a="<span class='preg'>Pregunta - Question:</span><br><span class='resp0'>"+pregunta+"</span><br><span class='resp'>Respuesta - Answer:</span><input type='button' border='0' onclick=javascript:seepreg('"+esp+"','"+iresp+"') style='background-color:red; font-family:verdana; font-size:9px; font-weight:bold; color:white' value='X' title='Cerrar/Close' / ><br><span class='resp0'>"+question+"</span>";
recip.style.backgroundColor="white";
 //document.getElementById(esp).href=t_a;
 //alert(answer);
 answer.innerHTML=t_a;
 // incrementar la visita
 conexion2=crearXMLHttpRequest();
 conexion2.onreadystatechange = verhits;
 conexion2.open('GET','hits.php?valor='+resp+'&opcion=0', true);
 conexion2.send(null);
	
}

function verhits()
{
  
  
  if (conexion2.readyState == 4)
  {
    
	//clearTimeout(tiempo);
	if (conexion2.responseXML != null ) { 
		var xml = conexion2.responseXML;
		var v_1=xml.getElementsByTagName('a');
		
		var hitsplus = v_1[0].childNodes[0].nodeValue;  // hits incrementado
		var hitsdonde = v_1[1].childNodes[0].nodeValue;  // donde va
		var hitsfecha = v_1[2].childNodes[0].nodeValue;  // ultima fecha
		var lugarfecha = v_1[3].childNodes[0].nodeValue;  // donde va la fecha
		//var fechadonde =hitsfecha.substring(10,12);
		//alert (hitsfecha+" "+fechadonde);
		if (parseInt(hitsplus)!= 0)  { 
		 document.getElementById(hitsdonde).value=hitsplus;
		 document.getElementById(lugarfecha).value=hitsfecha;
		}
	
	} else {
	alert("Estadisticas no disponibles en este momento.. Statistics not avalaible at this moment");	
	}
  
  } 
  else 
  {
  //
  document.getElementById("pregdata").innerHTML="Captando datos...Getting data";
  }
} // fin de la verhits

function verhitstodos()
{
  
  
  if (conexion2.readyState == 4)
  {
    
	//clearTimeout(tiempo);
	var xml = conexion2.responseXML;
	var v_1=xml.getElementsByTagName('a');
	var v_2=xml.getElementsByTagName('b');
	var v_3=xml.getElementsByTagName('c');
	var v_4=xml.getElementsByTagName('d');
	
	var hitsplus="";
	var hitsdonde="";
	var fechadonde="";
	var lugarfecha="";
	
	for (i=0; i<=11; i++) {
	  hitsplus = v_1[i].childNodes[0].nodeValue;  // valor del hit
	  hitsdonde = v_2[i].childNodes[0].nodeValue;  // donde va
	  hitsfecha = v_3[i].childNodes[0].nodeValue;  // fecha
	  lugarfecha = v_4[i].childNodes[0].nodeValue;  // fecha
	  // fechadonde =hitsfecha.substring(10,12);
	  //alert(hitsfecha);
	 
	 document.getElementById(hitsdonde).value=hitsplus;
	 document.getElementById(lugarfecha).value=hitsfecha;
	}
	
  } 
  else 
  {
  //
  
  }
} // fin de la verhits

function seepreg(preg, resp) {
 var esph="h"+resp;
 var esp="p"+resp;
 var iresp=parseInt(resp);
 var answer=document.getElementById(preg);
 
 var idio=document.getElementById("idioma").value;
 if (idio=="e") { 
	question=ep[iresp];
			  
 } else { // faqs en ingles
   question=ip[iresp];
 }// if de las faqgs
 
 
 
 var t_a=" <a href=javascript:verresp('"+esp+"','"+iresp+"') title='Respuesta-Answer' style='font-family:verdana; font-size:10px'><span class='resp0'>"+question+"</span></a>";
 var recip=document.getElementById(esp);
 recip.style.backgroundColor="#FFFF99";
 answer.innerHTML=t_a;	
	
}


function verfaq() {
 
	 var vfaq=document.getElementById("vfaq").value;
	 var tfaq=document.getElementById("faqtable");
	 var idio=document.getElementById("idioma").value;
	 var parrafo="";
	 
	 if (vfaq=="hidden") { 
	   vfaq="visible";
	   document.getElementById("vfaq").value="visible";
	   document.getElementById("verpreg").value="^";	 
	 
		 var esph="";
		 var esp="";
		 var espf="";
		 var question="";
		 		 
		 for (i=1; i<= 12; i++) {
			if (idio=="e") { 
			  question=ep[i];
			  
		 	} else { // faqs en ingles
			  question=ip[i];
		 	}// if de las faqgs
			
			esp="p"+i;
			esph="h"+i;
			espf="f"+i;
			//parrafo="<tr align='left'><td width='345'  id="+esp+">"+question+" <a href=javascript:verresp("+esp+","+i+") title='Respuesta-Answer'>R/A</a></td><td width='49' align='center' bgcolor='#333333' id="+esph+" style='color:white; font-weight:bold' >hits</td></tr>";
			div0="<div id= '"+esp+"'> <a href=javascript:verresp('"+esp+"','"+i+"') title='Respuesta-Answer' style='font-family:verdana; font-size:10px; background-color:#FFFF99'><span class='resp0'>"+question+"</span></a></div><center><span class='Estilo3'>Visitas--Visits</span><input type='text' id ='"+esph+"' style='color:blue; font-weight:bold; background-color:white; border:none; text-align:center'  title='Visitas--Visits' size='4' readonly />&nbsp;&nbsp;<input type='text' id ='"+espf+"' style='font-family:verdana; font-size:9px; color:brown; font-weight:bold; background-color:white; border:none; text-align:center'  title='Ultima fecha de visita--Last date of visiting' size='11' readonly /></center>";
			tfaq.innerHTML=tfaq.innerHTML+div0;
			//document.getElementById(esp).style.visibility=vfaq;
		 } // del for
         
		 // captar los hits
		 conexion2=crearXMLHttpRequest();
		 conexion2.onreadystatechange = verhitstodos;
		 conexion2.open('GET','hits.php?valor=0&opcion=1', true);
		 conexion2.send(null);
	
 } else {
	   document.getElementById("vfaq").value="hidden";
	   document.getElementById("verpreg").value="V";
	   vfaq="hidden";
	   tfaq.innerHTML="";
 }

////////////////////////////////FIN DE LA SECCION D ELAS FAQS


} // fin de la funcion verfaq


function look(bild) {
 var espacio=document.getElementById("imagen");
 
 if (bild=="N") {
 
   espacio.innerHTML="";
   
 } else {
   if (bild=="hturbahamas.jpg") {
	   
	   espacio.innerHTML="<img src='images/hturbahamas.jpg' border='0'>";
       
   } else {
   
	   aa="images/"+bild;
	   espacio.innerHTML="<img src="+aa+" border='0'>";
	   //espacio.src=aa;
   }
 }

}


function correo(d) {
 var capae=document.getElementById("ecorreo");
 var i=document.getElementById("idioma").value;
 
 capae.innerHTML="";
 
 switch (d) {
	 case "1" :
		 if (i=="e") {
		   
		  var nomb="Su nombre";
		  var pers="Estimados Srs./ Sras.";
		  var suje="Info sobre auxilio al Viajero.";
		 
		 } else {
		  
		  var nomb="Your name";
		  var pers="Dear Mr. /Mrs.";
		  var suje="Info about Aid to Traveler."; 
			 
		 }
		 		 
		 var dest="asisten@asistur.cu";
		 var lectura="readonly='true'";
	 break;
	 
	 case "2" :
		 
		 if (i=="e") {
		   
		  var nomb="Su nombre";
		  var pers="Estimados Srs./ Sras.";
		  var suje="Info sobre productos de seguros.";
		 
		 } else {
		  
		  var nomb="Your name";
		  var pers="Dear Mr. /Mrs.";
		  var suje="Info about Insurance products."; 
			 
		 }
		 
		 var dest="seguros@asistur.cu";
		 var lectura="readonly='true'";
	 break;
	
	 case "3" :
		 
		 if (i=="e") {
		   
		  var nomb="Su nombre";
		  var pers="Estimado(a) [Nombre] :\n\nDebieras visitar la pagina WEB http://www.asistur.cu/\n";
		  var suje="Pagina WEB sobre auxilio al Viajero";
		 
		 } else {
		  
		  var nomb="Your name";
		  var pers="Dear [Name] :\n\nYou should visit the WEB page http://www.asistur.cu/\n";
		  var suje="WEB page about Aid to Traveler."; 
			 
		 }
		 		 
		 var dest='';
		 var lectura="";
     break;
	 
	 case "4" :
         
		 if (i=="e") {
		   
		  var nomb="Su nombre";
		  var pers="Estimados Sr./ Sra.";
		  var suje="Info sobre asistencia financiera.";
		 
		 } else {
		  
		  var nomb="Your name";
		  var pers="Dear Mr. /Mrs.";
		  var suje="Info about Financial Aid."; 
			 
		 }
		 
		 var dest="asistenciafinanciera@asistur.cu";
		 var lectura="readonly='true'";
	 break;
	 
     case "5" :
		 
		 if (i=="e") {
		   
		  var nomb="Su nombre";
		  var pers="Estimado Srs./ Sra.";
		  var suje="Info sobre viajar a Cuba con seguro.";
		 
		 } else {
		  
		  var nomb="Your name";
		  var pers="Dear Mr. /Mrs.";
		  var suje="Info about travel to Cuba assured."; 
			 
		 }
		 
		 var dest="seguros@asistur.cu";
		 var lectura="readonly='true'";
	 break;
 
  
 
 } // del switch
	
 var korper="<br><center><span class='Estilo2'>De / From:</span><br><input type='text' name='remite' id='remite' size='24' value='"+nomb+"'  style='font-family:verdana; font-size:10px'><br><span class='Estilo2'>Su / Your Email </span><br><input type='text' name='eremite' id='eremite' size='24' style='font-family:verdana; font-size:10px'><br><span class='Estilo2'>Para / To:</span><br><input type='text' name='destino' id='destino' size='24' value='"+dest+"'  style='font-family:verdana; font-size:10px' "+lectura+"><br><span class='Estilo2'>Sujeto / Subject</span><br><input type='text' name='sujeto' id='sujeto' size='26' value='"+suje+"'  style='font-family:verdana; font-size:10px'> <br><span class='Estilo2'>Texto / Text</span><br><textarea  name='texto' id='texto' style='font-family:verdana; font-size:10px' cols='24' rows='6'>"+pers+"</textarea><br><br><input type='button' name='enviar' id='enviar' size='12' value='Enviar/Send'  style='font-family:verdana; font-size:10px; background-color:black; color:white; font-weight:bold' onClick='sendmail()'> &nbsp;&nbsp;&nbsp;<input type='button' name='cancelar' id='cancelar' size='12' value='Cancel'  style='font-family:verdana; font-size:11px; background-color:red; color:white; font-weight:bold' onClick='cancelmail()'></center>"; 	
 
 capae.innerHTML=korper;
 capae.style.visibility="visible";
 capae.style.backgroundColor="#FFCCCC";
 document.getElementById("Layer3").style.visibility="hidden";
 document.getElementById("Layer6").style.top="110px";

} // fin de la funcion correo

function cancelmail() {

document.getElementById("ecorreo").innerHTML="";
document.getElementById("ecorreo").style.visibility="hidden";
document.getElementById("Layer3").style.visibility="visible";
document.getElementById("Layer6").style.top="273px";
}

function valida() {
	
	var dnombre = document.getElementById("nombre").value;
	var demail = document.getElementById("email").value;
	var durl = document.getElementById("url").value;
	var dtlink = document.getElementById("tlink").value;
	var dpoint = document.getElementById("point").value;
	var ddescripcion = document.getElementById("descripcion").value;
	
	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(demail)) { //0
	 
	  if (dnombre.length > 2) {  //1
	  
	    if (durl.length > 6) {//2
			
			if (dtlink.length > 1) {//3
				
				if (dpoint.length > 6) {//4
					
					if (ddescripcion.length > 20) {//5
						
						document.form.datos.submit();
						
					} else {
						alert("Descripion insuficiente..Insufficient description");
						return false;
					}// 5
				
				} else {
				   
				   alert("Revisar hiperlink... Check hyperlink");
				   return false;
				}//4
				
			} else {
				
				alert("Insuficiente texto del link.. Insufficient text link");
				return false;
			}//3
			
		} else {
			
			alert("Revisar la URL.. Check the URL");
			return false;
		}// 2
		
	  } else {
		  
		  alert("Nombre muy corto..Very short name");
		  return false;
	  } // 1
				
	} else {
		alert("Dirección de e-mail no válida.. Invalid e-Mail address");
		return false;
	} // 0
		
	
} // de la funcion valida


function sendmail() {

var email_1 = document.getElementById("destino").value;
var email_2 = document.getElementById("eremite").value;		
var nombre=	document.getElementById("remite").value;	
var sujeto = document.getElementById("sujeto").value;
var mensaje = document.getElementById("texto").value;		
	
if (email_1=="seguros@asistur.cu") {
	email_1="yelaine@asistur.cu";
}



if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(email_1)) {

 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(email_2)) {

    //alert ("Ok."); // enviar correo
	
	
	conexion2=crearXMLHttpRequest();
	conexion2.onreadystatechange = sendmail2;
		conexion2.open('GET','ecorreo.php?destino='+email_1+'&eremite='+email_2+'&nombre='+nombre+'&sujeto='+sujeto+'&mensaje='+mensaje, true);
		conexion2.send(null);
 
 } else {
	  
	  alert("Su direccion de correo no es valida \r\n Your e-mail address is not valid");
	  return false;
 } // 1ra validacion

} else {
	
	 alert("La direccion de correo del destino no es valida \r\n The destination's e-mail address is not valid");
	 return false;


} // 2da validacion

} // de la funcion send mail


function sendmail2() {
	
 var capita=document.getElementById("ecorreo");
 //capita.style="background-color:yellow";
 capita.innerHTML="";
 var proceso="<br><br><br><center>Enviando / Sending e-Mail<blink>...</blink></center>";
  
  if (conexion2.readyState == 4)
  {
    
	var xml = conexion2.responseXML;
	var v_1=xml.getElementsByTagName('a');
	var result = v_1[0].childNodes[0].nodeValue;  // notificacion
	
	var nota="<br><br><center><span class='Estilo2'> "+result+"<br><br><input type='button' name='terminar' id='terminar' value='Aceptar / Accept' style='font-family:verdana; font-size:12px; background-color:blue; color:white; font-weight:bold; border:none' onClick='cancelmail()'></center><br><br>";
	
	capita.innerHTML=nota;
	
  } 
  else 
  {
  
   capita.innerHTML=proceso;
  
  }


} // fin de la funcion sendmail2


function traduce() {
 var idi=document.getElementById("idioma");
 
 // CAPTACIONES
 // encabezado principal
 var enc1=document.getElementById("laorganizacion"); 
 var enc2=document.getElementById("auxilioalviajero"); 
 var enc3=document.getElementById("comprarunseguro"); 
 
 // la bandera
 var band=document.getElementById("bandera"); 
 
 // columna de la organizacion
 var or=document.getElementById("org");
 var or1=document.getElementById("org1");
 var or2=document.getElementById("org2");
 var or3=document.getElementById("org3");
 var or4=document.getElementById("org4");
 var or5=document.getElementById("org5");
 
 // columna de asistencia
 var au =document.getElementById("aux");
 var au1=document.getElementById("aux1");
 var au2=document.getElementById("aux2");
 var au3=document.getElementById("aux3");
 var au4=document.getElementById("aux4");
 var au5=document.getElementById("aux5");
 
 // columna de seguros
 var se=document.getElementById("seg");
 var seg1=document.getElementById("seg1");
 var seg2=document.getElementById("seg2");
 var seg3=document.getElementById("seg3");
 var seg4=document.getElementById("seg4");
 var seg5=document.getElementById("seg5");
 var seg6=document.getElementById("seg6");
 
 var bot1=document.getElementById("cont_asi");
 var bot2=document.getElementById("cont_seg");
 var bot3=document.getElementById("cont_ami");
 var pfaq=document.getElementById("pregfreq");
 
 // los links externos
 //var linkinfotur=document.getElementById("linkinfotur");
 //var linkcubanacan=document.getElementById("linkcubanacan");
 //var linkportal=document.getElementById("linkportal");
 //var linkcamara=document.getElementById("linkcamara");
 
 
 if (idi.value=="e") { // switch to English
   
   // traducir encabezado
   idi.value="i";
   
   pfaq.innerHTML="Frequent Questions (FAQ)<br /><input type='button' name='verpreg' id='verpreg' style='font-family:verdana; font-size:9px; border:none; background-color: #FFFF99; color:#0000CC; font-weight:bold' onclick='verfaq()' value='V' /><input type='hidden' name='vfaq' id='vfaq' value='hidden' />";
    
   
   enc1.innerHTML="The Company <input type='hidden' name='orgall' id='orgall' value='0'>";
   enc2.innerHTML="Aid services to the traveler <input type='hidden' name='auxall' id='auxall' value='0'>";
   enc3.innerHTML="Buy an insurance: <input type='hidden' name='segall' id='segall' value='0'>";
   
   // el boton flotante
   bot1.innerHTML="<a href=javascript:correo('1')  title='e-Mail to Assistance Division' >Contacting <br />Assistance</a>";
   bot2.innerHTML="<a href=javascript:correo('2')  title='e-Mail to Insurance Division' >Contacting <br />Insurance Dept.</a>";
   bot3.innerHTML="<a href=javascript:correo('3')  title='Send this page to a friend' >Recommend <br />to a friend</a>";
   
   //linkinfotur.title="Tours, place, advices, etc.";
   //linkcubanacan.href="http://www.cubanacanviajes.cu/en/quienes somos.htm";
   ///linkcubanacan.title="Travel to Cuba with Cubanacan Viajes";
   //linkportal.title="News, informations about Cuba";
   
   //linkinfotur.alt="Tours, place, advices, etc.";
   //linkcubanacan.href="http://www.cubanacanviajes.cu/en/quienes somos.htm";
   //linkcubanacan.alt="Travel to Cuba with Cubanacan Viajes";
   //linkportal.alt="News, informations about Cuba";
   //linkinfotur.innerHTML="<a href='http://www.infotur.cu/'  title='Tours, places, advices, etc.' target='_blank'><img src='images/infotur5656.png' alt='Tours, places, advices, etc' border='0'></a>"
   //linkcubanacan.innerHTML="<a href='http://www.cubanacanviajes.cu/es/quienes somos.htm/'  title='Travel to Cuba with Cubanacan Viajes' target='_blank'><img src='images/cubanacan56_200.jpg' alt='Travel to Cuba with Cubanacan Viajes' border='0'></a>"
   //linkportal.innerHTML="<a href='http://www.cuba.cu/'  title='News, informations about Cuba' target='_blank'><img src='images/bannerpcuba.jpg' alt='News, informations about Cuba' border='0'></a>"
   //linkcamara.innerHTML="<a href='http://www.camaracuba.cu/'  title='Chamber of Commerce of the Republic Cuba' target='_blank'><img src='images/camaradecomercio.gif' alt='Chamber of Commerce of the Republic Cuba' border='0'></a>"   
   // la bandera
   band.src="images/espania_flag_20_8.jpg";
   band.title="WEB en Español";
   document.getElementById("cuerpo").style.backgroundImage="url(images/fondoi.gif)";
   // valores futuros de los hiperlinks
    var  o0="<a href=javascript:verop('org','6') id='lorg'>See entire column</a";
	var  o1 ="<a href=javascript:verop('org1','1') title='Company description'  id='lorg1'> Who are we </a>";
	var  o2 ="<a href=javascript:verop('org2','2') title='Offices location'  id='lorg2'>Offices</a>";
	var  o3 ="<a href=javascript:verop('org3','3') title='Certification norma ISO 9001:2008'  id='lorg3'>ISO Certification</a>";
	var  o4 ="<a href=javascript:verop('org4','4') title='Company flowchart'  id='lorg4'>Flowchart</a>";
	var  o5 ="<a href=javascript:verop('org5','5') title='Opinions on our services'  id='lorg5'>Give us your opinion!!</a>";
	 
	 // columna de asistencia
	var  a0 ="<a href=javascript:verop('aux','12') id='laux'>See entire column</a>";
	var  a1 ="<a href=javascript:verop('aux1','7') title='Medical Urgencies, hospitalizations..'   id='laux1'>Medical Assistance </a>";
	var  a2 ="<a href=javascript:verop('aux2','8') title='Evacuation, transfers under special conditions..'  id='laux2'>Medical Evacuation </a>";
	var  a3 ="<a href=javascript:verop('aux3','9') title='You could receive money through us..'  id='laux3' style='color:#FF0033'><span class='Estilo6'>(</span>Financial Aid<span class='Estilo6'>)</span></a>";
	var  a4 ="<a href=javascript:verop('aux4','10') title='Transfers of deceased to his country'  id='laux4')>Funeral Repatriation</a>";
	var  a5 ="<a href=javascript:verop('aux5','11') title='Other travel assistance services'  id='laux5'>Other services</a>";
	 
	 // columna de seguros
	var  s0 ="<a href=javascript:verop('seg','18') id='lseg'>See entire column</a>";
	var  s1 ="<a href=javascript:verop('seg1','13') title='Protect your auto'  id='lseg1'>Automotor</a>";
	var  s2 ="<a href=javascript:verop('seg2','14') title='Protection against health problems'  id='lseg2' style='color:#FF0033'><span class='Estilo6'>(</span>Medical Costs<span class='Estilo6'>)</span></a>";
	var  s3 ="<a href=javascript:verop('seg3','15') title='Travel abroad with protection '  id='lseg3'>to travel abroad </a>";
	var  s4 ="<a href=javascript:verop('seg4','16') title='Insurance for goods and shippings'  id='lseg4'>Warehouses & Trading</a>";
	var  s5 ="<a href=javascript:verop('seg5','17') title='Protection for houses and offices'  id='lseg5'>Houses & Offices </a>";
	var  s6 ="<a href=javascript:verop('seg6','18') title='Traveling to Cuba, but assured'  id='lseg6' style='color:#FF0033'><span class='Estilo6'>(</span>Travel to Cuba assured<span class='Estilo6'>)</span></a>";
   
 
 // S6 <a href='http://www.asistur.cu/segurosin/directos.php' target='_blank' title='Booking your travel insurance to Cuba'>imagen anterior <img src='images/newproduct.gif' alt='nuevo/new' width='60' height='21' longdesc='nuevo servicio / new service' border='0' /></a>
 
 
 } else { // cambiar al espaniol
  
   idi.value="e";
   
   pfaq.innerHTML="Preguntas frecuentes (FAQ)<br /><input type='button' name='verpreg' id='verpreg' style='font-family:verdana; font-size:9px; border:none; background-color: #FFFF99; color:#0000CC; font-weight:bold' onclick='verfaq()' value='V' /><input type='hidden' name='vfaq' id='vfaq' value='hidden' />";
   
   enc1.innerHTML="La Organización<input type='hidden' name='orgall' id='orgall' value='0'>";
   enc2.innerHTML="Auxilio al Viajero<input type='hidden' name='auxall' id='auxgall' value='0'>";
   enc3.innerHTML="Comprar un seguro:<input type='hidden' name='segall' id='segall' value='0'>";
   
   
   // el boton flotante
   bot1.innerHTML="<a href=javascript:correo('1')  title='Correo para Direccion de Asistencia' >Contactar a <br />Asistencia</a>";
   bot2.innerHTML="<a href=javascript:correo('2')  title='Correo para Direccion de Seguros' >Contactar a <br />Seguros</a>";
   bot3.innerHTML="<a href=javascript:correo('3')  title='Enviar esta página a un amigo' >Recomendar <br />a un amigo</a>";
   
   //linkinfotur.title="Viajes, lugares, consejos, etc.";
   //linkcubanacan.href="http://www.cubanacanviajes.cu/es/quienes somos.htm";
   //linkcubanacan.title="Viajar a Cuba con Cubanacan Viajes";
   //linkportal.title="Noticias, informaciones sobre Cuba";
   
   //linkinfotur.alt="Viajes, lugares, consejos, etc.";
   //linkcubanacan.href="http://www.cubanacanviajes.cu/es/quienes somos.htm";
   //linkcubanacan.alt="Viajar a Cuba con Cubanacan Viajes";
   //linkportal.alt="Noticias, informaciones sobre Cuba";
   
   //linkinfotur.innerHTML="<a href='http://www.infotur.cu/'  title='Viajes, lugares, consejos, etc.' target='_blank'><img src='images/infotur5656.png' alt='Viajes, lugares, consejos, etc' border='0'></a>"
   //linkcubanacan.innerHTML="<a href='http://www.cubanacanviajes.cu/es/quienes somos.htm/'  title='Viajar a Cuba con Cubanacan Viajes' target='_blank'><img src='images/cubanacan56_200.jpg' alt='Viajar a Cuba con Cubanacan Viajes' border='0'></a>"
   //linkportal.innerHTML="<a href='http://www.cuba.cu/'  title='Viajes, lugares, consejos, etc.' target='_blank'><img src='images/bannerpcuba.jpg' alt='Noticias, informaciones sobre Cuba' border='0'></a>"
   //linkcamara.innerHTML="<a href='http://www.camaracuba.cu/'  title='Camara de Comercio de la Republica de Cuba' target='_blank'><img src='images/camaradecomercio.gif' alt='Camara de Comercio de la Republica de Cuba' border='0'></a>" 
   
   // la bandera
   band.src="images/inglaterra_flag_20_8.jpg";
   band.title="WEB in English";
   document.getElementById("cuerpo").style.backgroundImage="url(images/fondoe.gif)";
   
   var  o0="<a href=javascript:verop('org','6') id='lorg'>Ver columna entera</a";
	var  o1 ="<a href=javascript:verop('org1','1') title='Descripcion de la organización'  id='lorg1'>¿ Quiénes somos ?</a>";
	var  o2 ="<a href=javascript:verop('org2','2') title='Ubicación de oficinas'  id='lorg2'>Oficinas</a>";
	var  o3 ="<a href=javascript:verop('org3','3') title='Certificación norma ISO 9001:2008'  id='lorg3'>Certificaci&oacute;n ISO </a>";
	var  o4 ="<a href=javascript:verop('org4','4') title='Organigrama de la empresa'  id='lorg4'>Organigrama</a>";
	var  o5 ="<a href=javascript:verop('org5','5') title='Opiniones sobre los servicios'  id='lorg5'>!! Dénos su opinión !!</a>";
	 
	 // columna de asistencia
	var  a0 ="<a href=javascript:verop('aux','12') id='laux'>Ver columna entera</a>";
	var  a1 ="<a href=javascript:verop('aux1','7') title='Urgencias ambulatorias, hospitalizaciones..'   id='laux1'>Asistencia M&eacute;dica </a>";
	var  a2 ="<a href=javascript:verop('aux2','8') title='Evacuación, traslados en condiciones especiales..'  id='laux2'>Evacuación médica </a>";
	var  a3 ="<a href=javascript:verop('aux3','9') title='Ud. puede recibir dinero a través de nosotros'  id='laux3' style='color:#FF0033'><span class='Estilo6'>(</span>Asistencia Financiera<span class='Estilo6'>)</span></a>";
	var  a4 ="<a href=javascript:verop('aux4','10') title='Traslado de fallecidos hacia país de origen'  id='laux4'>Repatriación Funeraria</a>";
	var  a5 ="<a href=javascript:verop('aux5','11') title='Otros servicios de asistencia en viaje'  id='laux5'>Otros servicios</a>";
	 
	 // columna de seguros
	var  s0 ="<a href=javascript:verop('seg','18') id='lseg'>Ver columna entera</a>";
	var  s1 ="<a href=javascript:verop('seg1','13') title='Asegurar su auto'  id='lseg1'>Automotor</a>";
	var  s2 ="<a href=javascript:verop('seg2','14') title='Protección para problemas de salud' id='lseg2' style='color:#FF0033'><span class='Estilo6'>(</span>Gastos Médicos<span class='Estilo6'>)</span></a>";
	var  s3 ="<a href=javascript:verop('seg3','15') title='Viaje al exterior protegido'  id='lseg3'>para viajar al exterior </a>";
	var  s4 ="<a href=javascript:verop('seg4','16') title='Asegure su carga, su envío' id='lseg4'>Almacenes y Comercio</a>";
	var  s5 ="<a href=javascript:verop('seg5','17') title='Ver toda la columna'  id='lseg5'>Viviendas y Oficinas </a>";
	var  s6 ="<a href=javascript:verop('seg6','18') title='Viajar a Cuba asegurado' id='lseg6' style='color:#FF0033'><span class='Estilo6'>(</span>Viaje  a Cuba asegurado<span class='Estilo6'>)</span></a>";
 
 // S6 <a href=http://www.asistur.cu/segurosin/directos.php target='_blank' title='Reserve un seguro de viajes hacia Cuba'><img src='images/newproduct.gif' alt='nuevo/new' width='60' height='21' longdesc='nuevo servicio / new service' border='0' /></a>
 
 } // fin de los cambios
 
 // resultados
 // actualizando los hyperlinks
      or.innerHTML=o0;
	  or1.innerHTML=o1+"<div id='org1dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  or2.innerHTML=o2+"<div id='org2dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  or3.innerHTML=o3+"<div id='org3dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  or4.innerHTML=o4+"<div id='org4dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  or5.innerHTML=o5+"<div id='org5dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	 
	 // columna de asistencia
	  au.innerHTML=a0;
	  au1.innerHTML=a1+"<div id='aux1dat' style='font-size:10px; text-align:justify; visibility:hidden; background-image:url(images/cruzverde.jpg); background-repeat:no-repeat; background-position:center'></div>";
	  au2.innerHTML=a2+"<div id='aux2dat' style='font-size:10px; text-align:justify; visibility:hidden; background-image:url(images/cruzroja.jpg); background-repeat:no-repeat; background-position:center'></div>";
	  au3.innerHTML=a3+"<div id='aux3dat' style='font-size:10px; text-align:justify; visibility:hidden; background-image: url(images/billetes.jpg); background-repeat:no-repeat; background-position:right'></div>";
	  au4.innerHTML=a4+"<div id='aux4dat' style='font-size:10px; text-align:justify; visibility:hidden; background-image:url(images/cruzgris.jpg); background-repeat:no-repeat; background-position:center'></div>";
	  au5.innerHTML=a5+"<div id='aux5dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	 
	 // columna de seguros
	  se.innerHTML=s0;
	  seg1.innerHTML=s1+"<div id='seg1dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  seg2.innerHTML=s2+"<div id='seg2dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  seg3.innerHTML=s3+"<div id='seg3dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  seg4.innerHTML=s4+"<div id='seg4dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  seg5.innerHTML=s5+"<div id='seg5dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	  seg6.innerHTML=s6+"<div id='seg6dat' style='font-size:10px; text-align:justify; visibility:hidden'></div>";
	
} // fin de la funcion traduce

function verop(op,e) { // ver o no las subopciones
 // definir el objeto
      
   //if (navigator.appName != "Microsoft Internet Explorer") {
   // var bienve=document.getElementById("Layer6");
  // } else {
	//var bienve=document.all.Layer6;   
   //}
   
   //if (bienve.innerHTML !="") {
	//bienve.innerHTML="";
   //}
   
  // if ((e=="6"  && op=="org") || (e=="12" && op=="aux") || (e=="19" && op=="seg")) {
   if ( (op=="org" && e=="6") || (op=="aux" && e=="12")  || (op=="seg" && e=="18") ) {
	  
		var idi=document.getElementById("idioma").value;	
		//var segmento="l"+op;
		
		switch (e) {
		
		case "6" :
			var ini=1;
			var fin=5;
			var inc=0;
		    if (idi=="e") {
				// abrir y cerrar en espanol
				var pabre="<a href=javascript:verop('org','6') id='lorg' >Ver columna entera</a>";
				var pcierra="<a href=javascript:verop('org','6') id='lorg' >Cerrar columna entera</a>";
			} else {
				// en Ingles
				var pabre="<a href=javascript:verop('org','6') id='lorg' >See entire column</a>";
				var pcierra="<a href=javascript:verop('org','6') id='lorg' >Close entire column</a>";
			}
			
			//pcierra="<a href='#' title='Ver esta columna' onClick=verop('org','5')>Ver TODO</a>";
			//pabre="<a href='#'   title='Cerrar toda la columna' onClick=verop('org','5')>Cerrar TODO </a>";
		    var cont4=document.getElementById("orgall");
		
		break;
		
		case "12" :
				var ini=7;
				var fin=11;
				var inc=6;
				//pcierra="images/cierra.gif";
				//pabre="images/abre.gif";
				var cont4=document.getElementById("auxall");
				if (idi=="e") {
					// abrir y cerrar en espanol
					var pabre="<a href=javascript:verop('aux','12') id='laux' >Ver columna entera</a>";
					var pcierra="<a href=javascript:verop('aux','12') id='laux' >Cerrar columna entera</a>";
				} else {
					// en Ingles
					var pabre="<a href=javascript:verop('aux','12') id='laux' >See entire column</a>";
					var pcierra="<a href=javascript:verop('aux','12') id='laux' >Close entire column</a>";
				}
			
			
		break;
		
		case "18" :
					var ini=13;
					var fin=18;
					var inc=12;
					//pcierra="<a href='#' title='Ver esta columna' onClick=verop('seg','18')>Ver TODO</a>";
					//pabre="<a href='#'   title='Cerrar toda la columna' onClick=verop('seg','18')>Cerrar TODO </a>";
					var cont4=document.getElementById("segall");
					if (idi=="e") {
						// abrir y cerrar en espanol
						var pabre="<a href=javascript:verop('seg','18') id='lseg' >Ver columna entera</a>";
						var pcierra="<a href=javascript:verop('seg','18') id='lseg' >Cerrar columna entera</a>";
					} else {
						// en Ingles
						var pabre="<a href=javascript:verop('seg','18') id='lseg' >See entire column</a>";
						var pcierra="<a href=javascript:verop('seg','18') id='lseg' >Close entire column</a>";
					}
				
				
		break;
		
		} // del switch de las e
		
  // } // del if de e==6, etc..
 		
		
		// garantizar el irtercambio de la imagen segun cierre o apertura
		//var imagen="i_"+op;
		
		var segmento=op;
		
		if (cont4.value=="1") {
		  document.getElementById(segmento).innerHTML= pabre;
		  cont4.value="0";
		} else {
		  document.getElementById(segmento).innerHTML= pcierra;
			cont4.value="1";
		}
			
		
		for (i=ini; i<=fin; i++) {
			 
			 
			 var comp=parseInt(i-inc);
			 var col=op+comp+"dat";  // nombre de la div
			 var co2=op+comp;        // nombre del encabezado o link
			 var co3=op;           // nombre de la celda que contiene el href
			 var nlink = "l"+op+comp;
			 var cont=document.getElementById(col);
			 var cont2=document.getElementById(co2);
			 var cont3=document.getElementById(co3);
			 
			 
			 if (cont4.value=="0") {
				 //alert(nlink);
				 
				 document.getElementById(nlink).style.backgroundColor="";
		         document.getElementById(nlink).style.color="blue";
				 
				 //cont2.style.backgroundColor="#FFFFFF";
				 //cont2.height="14";
				 cont.innerHTML="";
				 cont.style.visibility="hidden";
			     document.getElementById("Layer6").style.visibility="visible";
			     
			 } else {
				 //document.getElementById(imagen).src=pcierra;
				 //alert(nlink);
				 document.getElementById("Layer6").style.visibility="hidden";
				 document.getElementById(nlink).style.backgroundColor="#0033CC";
		         document.getElementById(nlink).style.color="white";
				 
				 //cont2.style.backgroundColor="#F5D6AB";
				 //cont2.height="14";
				 cont.style.visibility="visible";
			     cont.style.fontWeight="normal";
				 cont.style.backgroundColor="#FAFBD3";
				 
				 // este if define el idiomadel texto
				 if (document.getElementById("idioma").value=="e") {
					 var ttt=inf[i];
				 } else {
					 var ttt=infi[i];
				 }
				
				cont.innerHTML="<br />"+ttt+"<br /><br />";
				 
				 // llenar los cuadros desplegables de los años en la SAVE
				 if (co2=="seg3" && parseInt(i)==15) {
					 var fec=new Date();
					 var a1=parseInt(fec.getFullYear());
					 //alert(a1);
					 var auno=document.getElementById("s_anio1");
					 var ados=document.getElementById("s_anio2");
					 // propiedades
					 auno.style.fontSize="10px";
					 auno.style.color="blue";
					 ados.style.fontSize="10px";
					 ados.style.color="green";
					 					 
					 auno.length=0;
					 ados.length=0;
					 
					 for (f=0; f<=1; f++) {
					   var g=parseInt(a1+f);
					   
					   auno.options[f] =new Option(g,g);
					   ados.options[f] =new Option(g,g);
					 }
		 		
						// los meses
					 var m1=parseInt(fec.getMonth());
					 //alert(a1);
					 var muno=document.getElementById("s_mes1");
					 var mdos=document.getElementById("s_mes2");
					 
					 muno.style.fontSize="10px";
					 muno.style.color="blue";
					 mdos.style.fontSize="10px";
					 mdos.style.color="green";
					 
					 muno.length=0;
					 mdos.length=0;
					 
					 for (f=0; f<=11; f++) {
					   var g=parseInt(f+1);
					   
					   muno.options[f] =new Option(g,g);
					   mdos.options[f] =new Option(g,g);
					 }
					 
					 if (m1<=11) {
						 mreal=parseInt(m1);
					 } 
					 
					 muno.options[parseInt(mreal)].selected=true;
					 mdos.options[parseInt(mreal)].selected=true;
					 
					 // los dias
					 var d1=parseInt(fec.getDate());
					 //alert(a1);
					 var duno=document.getElementById("s_dia1");
					 var ddos=document.getElementById("s_dia2");
					 
					 duno.style.fontSize="10px";
					 duno.style.color="blue";
					 ddos.style.fontSize="10px";
					 ddos.style.color="green";
					 
					 duno.length=0;
					 ddos.length=0;
					 
					 for (f=1; f<=31; f++) {
								   
					   duno.options[f] =new Option(f,f);
					   ddos.options[f] =new Option(f,f);
					 }
					 
					 duno.options[d1].selected=true;
					 ddos.options[d1].selected=true;
				
				
				} // del op==seg3
				
				if (co2=="seg2" && parseInt(i)==14) {
					 age=document.getElementById("edad");
					 age.length=0;
					 
					 var n=1;
					 for (f=17; f<=69; f++) {
								   
					   age.options[n] =new Option(f,f);
					   n++;
					   
					 }
					 
					 age.options[1].selected=true;
					 
					
				}// (co2=="seg2" && parseInt(i)==14
										 
				 
			 } // (cont4.value=="0") 
		
		} // del for
   
   
   } else {// ver contenido individual
	   
	   
	   var op1=op+"dat";
	   var nlink="l"+op;
	   obj=document.getElementById(op1);
	   var op2=document.getElementById(op);
       
	   if (obj.style.visibility=="visible") {
		 
		 //document.getElementById(nlink).style.backgroundColor="";
		 //document.getElementById(nlink).style.color="white";
		 document.getElementById("Layer6").style.visibility="visible";
		 obj.innerHTML="";
		 obj.style.visibility="hidden";
		 op2.height="14";
		 
	     
	   
	   } else { 
		 
		 document.getElementById("Layer6").style.visibility="hidden";		 
		 // definir el idioma del texto
		 if (document.getElementById("idioma").value=="e") {
			var ttt=inf[e];
		 } else {
			var ttt=infi[e];
		 }
		 
		 
		 
		 op2.height="14";
		 //op2.style.backgroundColor="#F5D6AB";
		 document.getElementById(nlink).style.backgroundColor="#0033CC";
		 document.getElementById(nlink).style.color="white";
		 obj.style.visibility="visible";
		 obj.style.backgroundColor="#FAFBD3";
		 obj.style.fontWeight="normal";
		 obj.innerHTML=ttt+"<br /><br />";  
	     obj.getFocus;
	    
		 		 		 
		// llenar los cuadros desplegables de los años en la SAVE
		 if (op=="seg3" && parseInt(e)==15) {
			 
			 // los años
			 var fec=new Date();
			 var a1=parseInt(fec.getFullYear());
			 //alert(a1);
			 var auno=document.getElementById("s_anio1");
			 var ados=document.getElementById("s_anio2");
			 
			 // propiedades
			 auno.style.fontSize="10px";
			 auno.style.color="blue";
			 ados.style.fontSize="10px";
			 ados.style.color="green";
			 
			 auno.length=0;
			 ados.length=0;
			 
			 for (f=0; f<=1; f++) {
			   var g=parseInt(a1+f);
			   
			   auno.options[f] =new Option(g,g);
			   ados.options[f] =new Option(g,g);
			 }
		 
		     // los meses
			 var m1=parseInt(fec.getMonth());
			 //alert(a1);
			 var muno=document.getElementById("s_mes1");
			 var mdos=document.getElementById("s_mes2");
			 
			 muno.style.fontSize="10px";
			 muno.style.color="blue";
			 mdos.style.fontSize="10px";
			 mdos.style.color="green";
			 
			 muno.length=0;
			 mdos.length=0;
			 
			 for (f=0; f<=11; f++) {
			   var g=parseInt(f+1);
			   
			   muno.options[f] =new Option(g,g);
			   mdos.options[f] =new Option(g,g);
			 }
		     
			 if (m1<=11) {
				 mreal=parseInt(m1);
			 } 
			 
			 muno.options[parseInt(mreal)].selected=true;
		     mdos.options[parseInt(mreal)].selected=true;
		     
			 // los dias
			 var d1=parseInt(fec.getDate());
			 //alert(a1);
			 var duno=document.getElementById("s_dia1");
			 var ddos=document.getElementById("s_dia2");
			 
			 duno.style.fontSize="10px";
			 duno.style.color="blue";
			 ddos.style.fontSize="10px";
			 ddos.style.color="green";
			 
			 duno.length=0;
			 ddos.length=0;
			 
			 for (f=1; f<=31; f++) {
			   			   
			   duno.options[f] =new Option(f,f);
			   ddos.options[f] =new Option(f,f);
			 }
		     
			 duno.options[d1].selected=true;
			 ddos.options[d1].selected=true;
		 
		 
		 } // del op==seg3
	   	   
	     if (op=="seg2" && parseInt(e)==14) {
			age=document.getElementById("edad");
			age.length=0;
					 
			var n=1;
			for (f=17; f<=69; f++) {
								   
				age.options[n] =new Option(f,f);
				n++;
					   
			}
					 
			age.options[1].selected=true;
				
		 } //(op=="seg2" && parseInt(e)==14)
	  
	  
	   } // (obj.style.visibility=="visible")
   
   
	
    
   } //((e=="5"  && op=="org") || (e=="11" && op=="aux") || (e=="17" && op=="seg"))
	

	// verificar visibilidad o no de  la capa6
	//var svisible=0;
	//for (f=1; f<=5; f++) {
	 
	 //var capa="aux"+f+"dat";
	// var capa0=document.getElementById(capa);
	 
	 //if (capa0.style.visibility=="visible") {
		//svisible++; 
	 //}
	
	//} // del for
	
	//svisible=3;
	// hacer el Layer6 siempre invisible
	//if (svisible==0) { // puede verse la capa 6
	// document.getElementById("Layer6").style.visibility="visible";
	//} else {
	//document.getElementById("Layer6").style.visibility="hidden";
	//}


} // de la funcion verop

function over(q) {
 //document.getElementById(q).style.backgroundImage="url(images/checked.jpg)";
 //document.getElementById(q).style.backgroundPosition="center";
 //document.getElementById(q).style.backgroundRepeat="no-repeat";
 var nlink="l"+q;
 colorletra=document.getElementById(nlink).style.color;
 document.getElementById(nlink).style.backgroundColor="#0033CC";
 document.getElementById(nlink).style.color="white";

}

function out(q) {
 // nombre del link
 var nlink="l"+q;
 var inhalt=q+"dat";
 if (document.getElementById(inhalt).style.visibility=="visible") {
  	// dejarlo como esta
    document.getElementById(nlink).style.color="white";
 } else {
	 // devolver estado original
	 
	 document.getElementById(nlink).style.backgroundColor="";
	 if (document.getElementById(nlink).visited==true) { // #990033
	  document.getElementById(nlink).style.color="#990033";
     } else {
	   document.getElementById(nlink).style.color="#0000CC";
	 }
	 //document.getElementById(q).style.backgroundImage="";
	 //document.getElementById(q).style.backgroundPosition="left";
 }
}

function edad() {

valor = document.getElementById("edad").value;

switch (valor){

case "Edad":  
 document.getElementById("hombres").value="Hombre";
 document.getElementById("mujeres").value="Mujer";
 break;

case "17":  
 document.getElementById("hombres").value=148;
 document.getElementById("mujeres").value=148;
 break;

case "18":  
 document.getElementById("hombres").value=281;
 document.getElementById("mujeres").value=405;
 break;
  
case "19":   
 document.getElementById("hombres").value=294;
 document.getElementById("mujeres").value=419;
 break;
 
     
case "20":     
 document.getElementById("hombres").value=308;
 document.getElementById("mujeres").value=432;
 break;
        
case "21":   
 document.getElementById("hombres").value=322;
 document.getElementById("mujeres").value=447;
 break;
        
case "22":   
 document.getElementById("hombres").value=337;
 document.getElementById("mujeres").value=460;
  break;
       
case "23":   
 document.getElementById("hombres").value=350;
 document.getElementById("mujeres").value=474;
 break;
         
case "24":   
 document.getElementById("hombres").value=364;
 document.getElementById("mujeres").value=481;
 break;
        
case "25":   
 document.getElementById("hombres").value=378;
 document.getElementById("mujeres").value=503;
 break;
      

case "26":   
 document.getElementById("hombres").value=392;
 document.getElementById("mujeres").value=516;
 break;
        
case "27":   
 document.getElementById("hombres").value=407;
 document.getElementById("mujeres").value=531;
 break;
         
case "28":   
 document.getElementById("hombres").value=418;
 document.getElementById("mujeres").value=542;
 break;
         
case "29":   
 document.getElementById("hombres").value=429;
 document.getElementById("mujeres").value=552;
 break;
         
case "30":   
 document.getElementById("hombres").value=440;
 document.getElementById("mujeres").value=564;
 break;
         
case "31":   
 document.getElementById("hombres").value=451;
 document.getElementById("mujeres").value=574;
 break;
         
case "32":   
 document.getElementById("hombres").value=461;
 document.getElementById("mujeres").value=585;
break;
         
case  "33":   
 document.getElementById("hombres").value=474;
 document.getElementById("mujeres").value=591;
 break;

case  "34":     
 document.getElementById("hombres").value=487;
 document.getElementById("mujeres").value=596;
 break;
         
case   "35":     
 document.getElementById("hombres").value=501;
 document.getElementById("mujeres").value=602;
 break;
         
case  "36":     
 document.getElementById("hombres").value=515;
 document.getElementById("mujeres").value=607;
 break;
         
case "37":     
 document.getElementById("hombres").value=528;
 document.getElementById("mujeres").value=614;
 break;
         
case "38":     
 document.getElementById("hombres").value=569;
 document.getElementById("mujeres").value=646;
 break;
         
case "39":     
 document.getElementById("hombres").value=609;
 document.getElementById("mujeres").value=680;
 break;
         
case "40":     
 document.getElementById("hombres").value=649;
 document.getElementById("mujeres").value=713;
 break;
         
case "41":     
 document.getElementById("hombres").value=691;
 document.getElementById("mujeres").value=746;
 break;

case  "42":     
 document.getElementById("hombres").value=732;
 document.getElementById("mujeres").value=779;
 break;
         
case "43":     
 document.getElementById("hombres").value=783;
 document.getElementById("mujeres").value=817;
 break;
         
case "44":      
 document.getElementById("hombres").value=835;
 document.getElementById("mujeres").value=856;
 break;
         
case  "45":     
 document.getElementById("hombres").value=887;
 document.getElementById("mujeres").value=894;
  break;
        
case "46":     
 document.getElementById("hombres").value=938;
 document.getElementById("mujeres").value=933;
 break;
         
case "47":     
 document.getElementById("hombres").value=990;
 document.getElementById("mujeres").value=971;
 break;
         
case "48":     
 document.getElementById("hombres").value=1026;
 document.getElementById("mujeres").value=1014;
 break;
         
case "49":     
 document.getElementById("hombres").value=1063;
 document.getElementById("mujeres").value=1055;
 break;
         
case "50":     
 document.getElementById("hombres").value=1098;
 document.getElementById("mujeres").value=1098;
 
 break;
         
case "51":     
 document.getElementById("hombres").value=1135;
 document.getElementById("mujeres").value=1140;
 break;
         
case "52":     
 document.getElementById("hombres").value=1172;
 document.getElementById("mujeres").value=1181;
 break;
         
case "53":     
 document.getElementById("hombres").value=1261;
 document.getElementById("mujeres").value=1258;
 break;
         
case "54":      
 document.getElementById("hombres").value=1351;
 document.getElementById("mujeres").value=1355;
 break;
         
case "55":     
 document.getElementById("hombres").value=1441;
 document.getElementById("mujeres").value=1411;
 break;
         
case "56":     
 document.getElementById("hombres").value=1530;
 document.getElementById("mujeres").value=1488;
 break;
         
case "57":     
 document.getElementById("hombres").value=1620;
 document.getElementById("mujeres").value=1565;
 break;
         
case "58":     
 document.getElementById("hombres").value=1760;
 document.getElementById("mujeres").value=1670;
 break;
         
case "59":     
 document.getElementById("hombres").value=1899;
 document.getElementById("mujeres").value=1772;
 break;
         
case "60":     
 document.getElementById("hombres").value=2039;
 document.getElementById("mujeres").value=1877;
 break;
         
case "61":     
 document.getElementById("hombres").value=2179;
 document.getElementById("mujeres").value=1980;
 break;
         
case "62":     
 document.getElementById("hombres").value=2319;
 document.getElementById("mujeres").value=2083;
 break;
         
case "63":     
 document.getElementById("hombres").value=2430;
 document.getElementById("mujeres").value=2223;
 break;
         
case  "64":     
 document.getElementById("hombres").value=2541;
 document.getElementById("mujeres").value=2362;
 break;
         
case "65":     
 document.getElementById("hombres").value=2652;
 document.getElementById("mujeres").value=2501;
 break;
         
case "66":     
 document.getElementById("hombres").value=2763;
 document.getElementById("mujeres").value=2641;
 break;
         
case "67":     
 document.getElementById("hombres").value=2875;
 document.getElementById("mujeres").value=2780;
 break;
         
case "68":     
 document.getElementById("hombres").value=2985;
 document.getElementById("mujeres").value=2919;
 break;
         
case "69":     
 document.getElementById("hombres").value=3098;
 document.getElementById("mujeres").value=3058;
 break;
 }
         
var ho=parseInt(document.getElementById("hombres").value);
var mu=parseInt(document.getElementById("mujeres").value);
var mu1= mu*1.0;
var ho1= ho*1.0;
mu1=mu1.toFixed(2);
ho1=ho1.toFixed(2);
document.getElementById("hombres").value=ho1;
document.getElementById("mujeres").value=mu1;

} // fin d ela funcion edad


function calcula_save() {

var d1=parseInt(document.getElementById("s_dia1").value);
var m1=parseInt(document.getElementById("s_mes1").value,10)-1;
var a1=parseInt(document.getElementById("s_anio1").value);
var fecha_1=new Date(a1,m1,d1);
var d2=parseInt(document.getElementById("s_dia2").value);
var m2=parseInt(document.getElementById("s_mes2").value,10)-1;
var a2=parseInt(document.getElementById("s_anio2").value);
var fecha_2=new Date(a2,m2,d2);


if (m1 != m2) {  // meses diferentes calcular con php
	conexion2=crearXMLHttpRequest();
	conexion2.onreadystatechange = dias2;
	m1=m1+1;
	m2=m2+1;
	
	conexion2.open('GET','dias.php?d1='+d1+'&d2='+d2+'&m1='+m1+'&m2='+m2+'&a1='+a1+'&a2='+a2, true);
	conexion2.send(null);
			
} else { // meses iguales trabajar com javaScript

	var mseg=1000*60*60*24;
	var n_dias=Math.ceil((fecha_2.getTime()-fecha_1.getTime())/(mseg))+1;
	if (isNaN(n_dias) || n_dias<0) {
	 
	 
		 if (document.getElementById("idioma").value=="e") { 
			 alert("Hay algún problema con las fechas. Favor chequearlas");
		 } else {
			 alert("There is some problem with the dates. Please check them");
		 }
	 
		 document.getElementById("dias").value = 0;
		 document.getElementById("precio").value = 0;
	} else {
		 document.getElementById("dias").value = Math.ceil((fecha_2.getTime()-fecha_1.getTime())/(mseg))+1;
		 var monto=parseFloat(document.getElementById("dias").value) * 2.5;
		 monto= monto.toFixed(2);
		 document.getElementById("precio").value = monto;
	}

} // del if (m1 != m2)

} // de la funcion calcula_save()

function dias2() {
  
  
  if (conexion2.readyState == 4)
  {
    
	var xml = conexion2.responseXML;
	var v_1=xml.getElementsByTagName('d');
	var n_dias =parseInt( v_1[0].childNodes[0].nodeValue);  // cantidad de dias
	
	if (isNaN(n_dias) || n_dias<0 || n_dias=="X") {
	 
		 if (document.getElementById("idioma").value=="e") { 
			 alert("Hay algún problema con la fechas. Favor chequearlas");
		 } else {
			 alert("There is some problem with the dates. Please check them");
		 }
		 
		 document.getElementById("dias").value = 0;
		 document.getElementById("precio").value = 0;
	
	
	} else {
		 //document.getElementById("dias").value = Math.ceil((fecha_2.getTime()-fecha_1.getTime())/(mseg))+1;
		 document.getElementById("dias").value=n_dias;
		 var monto=n_dias * 2.5;
		 monto= monto.toFixed(2);
		 document.getElementById("precio").value = monto;
	}
	
		
  }  else  {
  // nada
  }


} // de la funcion dias2

function display() {

var ancho=parseInt(screen.width);

//var ancholayer6=parseInt(document.getElementById("Layer6").style.width);
var iz6a=parseFloat((ancho - 600) / 2);
var iz6=parseInt(iz6a,10);


//alert(iz6a);


ns=(document.layers); 
if (ns) {
//if (navigator.appName != "Microsoft Internet Explorer") {

    switch (ancho) {

	  case 800:
	
	  var iz1="640";
	  var iz2="10";
	  var iz3="270";
	  var iz4="540";
	  
	  break;
	
	  case 1152:
	
	  var iz1="832";
	  var iz2="129";
	  var iz3="432";
	  var iz4="723";
	  
	 break;
	 
	 case 1280:
		
		  var iz1="924";
		  var iz2="143";
		  var iz3="480";
		  var iz4="803";
		  
	break;
	
	
	
	
	}

	var iz1=iz1+"px";
	var iz2=iz2+"px";
	var iz3=iz3+"px";
	var iz4=iz4+"px";
	var iz6=iz6+"px"; 
	
	
	document.getElementById("Layer1").style.left=iz1;
	document.getElementById("Layer2").style.left=iz2;
	document.getElementById("Layer3").style.left=iz3;
	document.getElementById("Layer4").style.left=iz4;
    document.getElementById("Layer6").style.left=iz6;

} else {

       switch (ancho) {

	    case 800:
	
		  var iz1="610";
		  var iz2="10";
		  var iz3="280";
		  var iz4="535";
	
	    break;
	
	    case 1152:
	
		  var iz1="832";
		  var iz2="129";
		  var iz3="432";
		  var iz4="723";
		  
		break;
	  
	    case 1280:
		
		  var iz1="924";
		  var iz2="143";
		  var iz3="480";
		  var iz4="803";
		  
		break;
	  
	  }

	     iz1=iz1+"px";
		 iz2=iz2+"px";
		 iz3=iz3+"px";
		 iz4=iz4+"px";
		 iz6=iz6+"px"; 
			   
	   
	   document.all.Layer1.style.left=iz1;
       document.all.Layer2.style.left=iz2;
       document.all.Layer3.style.left=iz3;
	   document.all.Layer4.style.left=iz4;
       document.all.Layer6.style.left=iz6;

}
	
} // de la funcion display


//***************************************
//Funciones comunes a todos los problemas
//***************************************
function addEvent(elemento,nomevento,funcion,captura)
{
  if (elemento.attachEvent)
  {
    elemento.attachEvent('on'+nomevento,funcion);
    return true;
  }
  else  
    if (elemento.addEventListener)
    {
      elemento.addEventListener(nomevento,funcion,captura);
      return true;
    }
    else
      return false;
}

function crearXMLHttpRequest() 
{
  var xmlHttp=null;
  if (window.ActiveXObject) 
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  else 
    if (window.XMLHttpRequest) 
      xmlHttp = new XMLHttpRequest();
  return xmlHttp;
}
