///////////CABECERA
document.write('<table cellSpacing=0 cellPadding=0 border=0 align=center>');
document.write('<tr>');
document.write('<td><IMG SRC="images/conquista.gif" WIDTH="289" HEIGHT="40" BORDER="0" ALT=""></td>');
document.write('<td><IMG SRC="images/bloque2.gif" WIDTH="261" HEIGHT="40" BORDER="0" ALT=""></td>');
document.write('<td><a href="index.htm" onmouseover="CambiaImg(\'bot1\',\'bot1p\');return true" onmouseout="CambiaImg(\'bot1\',\'bot1\');return true"><IMG SRC="images/cini1.gif" WIDTH="50" HEIGHT="40" BORDER="0" ALT="inicio" name=bot1></a></td>');

if (opcion_1 == 'opcion_link_contac') 
{   
	document.write('<td><IMG SRC="images/cini2p.gif" WIDTH="85" HEIGHT="40" BORDER="0" ALT="contáctenos"></td>');  

}
else
{
	document.write('<td><a href="contac.htm" onmouseover="CambiaImg(\'bot2\',\'bot2p\');return true" onmouseout="CambiaImg(\'bot2\',\'bot2\');return true"><IMG SRC="images/cini2.gif" WIDTH="85" HEIGHT="40" BORDER="0" ALT="contáctenos" name=bot2></a></td>'); 
}

if (opcion_1 == 'opcion_link_mapa') 
{   
	document.write('<td><IMG SRC="images/cini3p.gif" WIDTH="89" HEIGHT="40" BORDER="0" ALT="mapa del sitio"></td>');  

}
else
{
	document.write('<td><a href="mapa.htm" onmouseover="CambiaImg(\'bot3\',\'bot3p\');return true" onmouseout="CambiaImg(\'bot3\',\'bot3\');return true"><IMG SRC="images/cini3.gif" WIDTH="89" HEIGHT="40" BORDER="0" ALT="mapa del sitio" name=bot3></a></td>'); 
}
document.write('</table>'); 

document.write('<table cellSpacing=0 cellPadding=0 border=0 align=center>');
document.write('<tr>');
document.write('<td><IMG SRC="images/foto1i.gif" WIDTH="174" HEIGHT="16" BORDER="0" ALT=""></td>');
document.write('<td><IMG SRC="images/bloque1.gif" WIDTH="272" HEIGHT="16" BORDER="0" ALT=""></td>');

if (opcion_1 == 'opcion_link_glosario') 
{   
	document.write('<td><IMG SRC="images/glo1p.gif" WIDTH="64" HEIGHT="16" BORDER="0" ALT="glosario"></td>');  

}
else
{
	document.write('<td><a href="glosario.htm" onmouseover="CambiaImg(\'bot4\',\'bot4p\');return true" onmouseout="CambiaImg(\'bot4\',\'bot4\');return true"><IMG SRC="images/glo1.gif" WIDTH="64" HEIGHT="16" BORDER="0" ALT="glosario" name=bot4></a></td>'); 
}

if (opcion_1 == 'opcion_link_bibliografia') 
{   
	document.write('<td><IMG SRC="images/glo2p.gif" WIDTH="77" HEIGHT="16" BORDER="0" ALT="bibliografía"></td>');  

}
else
{
	document.write('<td><a href="bibliografia.htm" onmouseover="CambiaImg(\'bot5\',\'bot5p\');return true" onmouseout="CambiaImg(\'bot5\',\'bot5\');return true"><IMG SRC="images/glo2.gif" WIDTH="77" HEIGHT="16" BORDER="0" ALT="bibliografía" name=bot5></a></td>'); 
}

if (opcion_1 == 'opcion_link_enlaces') 
{   
	document.write('<td><IMG SRC="images/glo3p.gif" WIDTH="109" HEIGHT="16" BORDER="0" ALT="enlaces de interés"></td>');  

}
else
{
	document.write('<td><a href="enlaces.htm" onmouseover="CambiaImg(\'bot6\',\'bot6p\');return true" onmouseout="CambiaImg(\'bot6\',\'bot6\');return true"><IMG SRC="images/glo3.gif" WIDTH="109" HEIGHT="16" BORDER="0" ALT="enlaces de interés" name=bot6></a></td>'); 
}

document.write('<td><IMG SRC="images/bloque3.gif" WIDTH="78" HEIGHT="16" BORDER="0" ALT=""></td>');
document.write('</table>');

document.write('<table cellSpacing=0 cellPadding=0 border=0 align=center>');
document.write('<tr>');
document.write('<td><IMG SRC="images/foto2.gif" WIDTH="174" HEIGHT="97" BORDER="0" ALT=""></td>');

 switch(opcion_2)
{
case 'opcion_link_conquista':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t1.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_destructuracion':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t2.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_guerras':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t3.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_cronistas':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t4.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_cronologia':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t5.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_personajes':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t6.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_glosario':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t7.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_biblio':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t8.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_enlaces':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t9.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
case 'opcion_link_contac':   
document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t10.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');
break
default:    document.write('<td bgcolor=E6DEC9 width=600><IMG SRC="images/t11.gif" WIDTH="522" HEIGHT="46" BORDER="0" ALT=""></td>');        
}

document.write('</table>');

