function cabecera(idioma) 
{
	//idioma con 3 letras
	idiomaunaletra=idioma.substring(0,1);
      idiomaunaletra=idiomaunaletra.toUpperCase();
	document.write("<tr><td><div align='center'> </div></td></tr><tr><td><div align='center'><a href='http://www.skal.org/index.asp?idioma=", idiomaunaletra, "'><img src='http://www.skal.org/images/logo_skal_small.gif' alt="+inicio+" width='80' height='95' border='0'> </a></div></td></tr>");

}

function menu(idioma,texto,titulopagina)
{
	//idioma con 3 letras.
	idiomaunaletra=idioma.substring(0,1);
      idiomaunaletra=idiomaunaletra.toUpperCase();
      comenzarmenu();
/*       lineamenu("12","http://www.skal.org/organizacion/organizacion.asp",idiomaunaletra,organizacion);
       lineamenu("12","http://skal.ctdli.net/des/login.php",idioma,miembros);
       lineamenu("12","http://www.skal.org/congresos/congresos.asp",idiomaunaletra,congresos);
       lineamenu("14","http://www.skal.org/sustainable/"+idiomaunaletra+"/index.html",idiomaunaletra,ecoturismo);
       lineamenu("14","http://www.skal.org/formularios/formularios.asp",idiomaunaletra,formularios);
  	 lineamenu("12","http://www.skal.org/links/links.asp",idiomaunaletra,enlaces);
	 lineamenu("12","http://www.skal.org/noticias/noticias.asp",idiomaunaletra,comunicados);
	 lineamenu("12","http://www.skal.org/html/galery/photogallery.asp",idiomaunaletra,galeria_de_fotos);
	cierralinea();
	 lineamenu("12","http://skal.ctdli.net/des/companias.php",idioma,contactos_preferentes);
	 lineamenu("12","http://www.skal.org/himno.asp",idiomaunaletra,himno_skal);
	 lineamenu("12","http://www.skal.org/skalnews.asp",idiomaunaletra,skal_news);
	 lineamenu("14","http://www.skal.org/qualityawards/i/newp01.htm",idiomaunaletra,premios_a_la_calidad_skal);
	 lineamenu("14","http://www.skal.org/html/forum2005/i/forum2005.asp",idiomaunaletra,foro_de_turismo);
	 lineamenu("12","http://www.skal.org/html/what/what.asp",idiomaunaletra,que_es_skal);
	 lineamenu("12","http://skal.ctdli.net/des/where.php",idioma,where_is_skal);
	 lineamenu("12","http://www.skal.org/html/young/young.asp",idiomaunaletra,skal_joven);*/
	cierra2yTitulo(texto,titulopagina);
}

function comenzarmenu()
{
	document.write("<div align='center'>\n");
	document.write("	<table width='80%' height='0' border='0'>\n");
	document.write("		 <tr>\n");
	document.write("		   <td>\n");
	document.write("		      <table width='100%'  border='0' align='center'>\n");
	document.write("		      <tr bgcolor='#FFFF00'>\n");
}

function lineamenu(tamanyo,enlace,idioma,texto)
{
	document.write("<td width=", tamanyo,"%'>\n");
	document.write("    <div align='center'>\n");
	document.write("    <span class='chica_azul'>\n");
	document.write("	    <div align='center'>\n");
	document.write("	        <font color='#003399'>\n");
	document.write("	              <strong>\n");
	document.write("	                  <font face='Arial, Helvetica, sans-serif'>\n");
	document.write("	                        <a href=", enlace);
	if (idioma!="")
	{
		document.write("?idioma="+idioma+"&codentidad=1");
	}			
	document.write(">", texto,"</a>\n");
	document.write("	                  </font>\n");
	document.write("	               </strong>\n");
	document.write("	        </font>\n");
	document.write("	    </div>\n");
	document.write("     </span>\n");
	document.write("  </div>\n");
	document.write("</td>");
}

function cierralinea()
{
	document.write("</tr><tr bgcolor='#FFFF00'>");
}


function comenzarmenu()
{
	document.write("<div align='center'>\n");
	document.write("	<table width='80%' height='0' border='0'>\n");
	document.write("		 <tr>\n");
	document.write("		   <td>\n");
	document.write("		      <table width='100%'  border='0' align='center'>\n");
	document.write("		      <tr bgcolor='#FFFF00'>\n");
}



function cierra2yTitulo(texto,titulopagina)
{
	document.write("</tr>\n");
	document.write("			</table>\n");
	document.write("	    </td>\n");
	document.write("	 </tr>\n");
	document.write("	<tr>\n");
	document.write("	    <td>\n");
	document.write("		   <div align='center' class='titulo_blanco'>\n");
	document.write("			    <table width='100%'  border='0' bgcolor='#003399'>\n");
	document.write("			        <tr><td width='10%' height='21'>\n");
	document.write("			             <div align='left'>&nbsp;\n");
	document.write("		                     <A href='javascript:history.go(-1)' class='flecha_h'>&#9668;</a>\n");
	document.write("						     &nbsp;&nbsp;\n");
	document.write("							 <span class='flecha_h'>\n");
	document.write("						        <a href='javascript:history.go(1)'>&#9658;</a>\n");
	document.write("					         </span>\n");
	document.write("						 </div>\n");
	document.write("						 </td>\n");
	document.write("						 <td width='80%'>\n");
	document.write("							<div align='center' class='titulo_blanco'>\n");
	document.write("								 <strong>", texto, "</strong>\n");
	document.write("						    </div>\n");
	document.write("						 </td>\n");
	document.write("						 <td width='10%'>\n");
	document.write("						     <div align='right'>\n");
	document.write("								  <a href='mailto:skal@skal.org'>\n");
	document.write("								      <span class='flecha_h'>@</span>\n");
	document.write("								  </a>&nbsp;\n");
	document.write("							 </div>\n");
	document.write("						 </td>\n");
	document.write("					</tr>\n");
	document.write("				</table>\n");
	document.write("			</div>\n");
	document.write("		</td>\n");
	document.write("	</tr>\n");

    if (titulopagina!="")
    {
    	document.write("    <tr>\n");
    	document.write("      <td bgcolor='#CCCCCC'><div align='center' class='titulo_azul'>\n");
    	document.write("      "+titulopagina+"</div></td>\n");
    	document.write("    </tr>\n");
    	document.write("    <tr>\n");
	}

	document.write("	<tr>\n");
	document.write("		<td>\n");
	document.write("			<div align='center' class='cuerpo_azul'>&bull;\n");
	document.write("			</div>\n");
	document.write("		</td>\n");
	document.write("	</tr>\n");
	document.write("	<tr>\n");
	document.write("	   <td bgcolor='#FFFFFF'>\n");
}

function piepagina(idioma)
{
	document.write("</td>\n");
	document.write("	   </tr>\n");
	document.write("	   <tr>\n");
	document.write("		   <td bgcolor='#FFFFFF'>\n");
	document.write("		      <div align='center' class='cuerpo_azul'>&bull;</div>\n");
	document.write("		   </td>\n");
	document.write("		</tr>\n");
	document.write("		<tr>\n");
	document.write("		   <td bgcolor='#003399'>\n");
	document.write("		       <table width='100%'  border='0'>\n");
	document.write("		          <tr>\n");
	document.write("		             <td width='10%' height='37'>\n");
	document.write("		                  <div align='left'>&nbsp;\n");
	document.write("	                          <A href='javascript:history.go(-1)' class='flecha_h'>&#9668;</a>&nbsp;&nbsp;\n");
	document.write("							  <span class='flecha_h'><a href='javascript:history.go(1)'>&#9658;</a></span>\n");
	document.write("						   </div>\n");
	document.write("					  </td>\n");
	document.write("					  <td width='80%'>\n");
	document.write("						  <div align='center'>\n");
	document.write("							  <a href='http://www.skal.org/index.asp?idioma=", idiomaunaletra,"'>\n");
	document.write("								  <img src='http://www.skal.org/images/logo_skal_small.gif' alt="+inicio+" width='30' height='35' border='0'>\n");
	document.write("							   </a>\n");
	document.write("						   </div>\n");
	document.write("					   </td>\n");
	document.write("					   <td width='10%'>\n");
	document.write("						    <div align='right'>\n");
	document.write("								  <span class='Estilo3 flecha_v'>\n");
	document.write("								      <a href='#TOP' class='flecha_v'>&#9650;</a>&nbsp; \n");
	document.write("							      </span>\n");
	document.write("						    </div>\n");
	document.write("						</td>\n");
	document.write("					</tr>\n");
	document.write("				</table>\n");
	document.write("			</td>\n");
	document.write("		</tr>\n");
	document.write("	    <tr>\n");
	document.write("		    <td height='23'>\n");
	document.write("				<table width='100%'  border='0' bgcolor='#FFFFFF'>\n");
	document.write("					<tr>\n");
	document.write("					    <td height='26'>\n");
	document.write("						   <div align='right'>\n");
	document.write("								<span>\n");
	document.write("									  <a href='?idioma=I'>\n");
	document.write("									      <img src='http://www.skal.org/images/flag_i.jpg' alt='in english, please' width='31' height='22' border='0'>\n");
	document.write("									  </a>\n");
	document.write("							    </span>\n");
	document.write("						   </div>\n");
	document.write("						</td>\n");
	document.write("					<td width='40' height='26'>\n");
	document.write("							<div align='center'>\n");
	document.write("							   <span>\n");
	document.write("									<a href='?idioma=F'><img src='http://www.skal.org/images/flag_f.jpg' alt='en fran&ccedil;ais, s&acute;il vous plait' width='31' height='22' border='0'>\n");
	document.write("									</a>\n");
	document.write("								</span>\n");
	document.write("							</div>\n");
	document.write("					</td>\n");
	document.write("					<td height='26'>\n");
	document.write("						    <div align='left'>\n");
	document.write("								<span>\n");
	document.write("									 <a href='?idioma=E'>\n");
	document.write("									     <img src='http://www.skal.org/images/flag_e.jpg' alt='en espa&ntilde;ol, por favor' width='31' height='22' border='0'>\n");
	document.write("									  </a>\n");
	document.write("								</span>\n");
	document.write("							</div>\n");
	document.write("					</td>\n");
	document.write("					</tr>\n");
	document.write("				</table>\n");
	document.write("			</td>\n");
	document.write("		</tr>\n");
	document.write("		</table>\n");
	document.write("		</div>");
}

	




