function fecha()
{
today = new Date()
day = today.getDay()
if ( day == 0 ) { document.write("Domingo, ");}
if ( day == 1 ) { document.write("Lunes, ");}
if ( day == 2 ) { document.write("Martes, ");}
if ( day == 3 ) { document.write("Miércoles, ");}
if ( day == 4 ) { document.write("Jueves, ");}
if ( day == 5 ) { document.write("Viernes, ");}
if ( day == 6 ) { document.write("S&aacute;bado, ");}
today = new Date()
if ( today.getMonth() == 0 ) { month = "Enero" }
if ( today.getMonth() == 1 ) { month = "Febrero" }
if ( today.getMonth() == 2 ) { month = "Marzo" }
if ( today.getMonth() == 3 ) { month = "Abril" }
if ( today.getMonth() == 4 ) { month = "Mayo" }
if ( today.getMonth() == 5 ) { month = "Junio" }
if ( today.getMonth() == 6 ) { month = "Julio" }
if ( today.getMonth() == 7 ) { month = "Agosto" }
if ( today.getMonth() == 8 ) { month = "Septiembre" }
if ( today.getMonth() == 9 ) { month = "Octubre" }
if ( today.getMonth() == 10 ) { month = "Noviembre" }
if ( today.getMonth() == 11 ) { month = "Diciembre" }
document.write( today.getDate()," de ",month);
}
function Enviar2()
{
   if (MiForm.Categoria.value==""){
     FrmSearch.query.value=MiForm.TxtBusqueda.value;
     document.FrmSearch.submit();
   }else{
     document.MiForm.submit();
   }
}
function add_bookmark() {
var browsName = navigator.appName; 
if (browsName == "Microsoft Internet Explorer") { 
window.external.AddFavorite('http://www.tuavila.com','Tu Avila');
} else 
if (browsName == "Netscape") {
alert ("\nPara agregar esta página a tu BookMark presiona CTRL+D");
}
}
document.write('<table border="0" width="780" cellspacing="0" cellpadding="0">')
document.write('<tr><td width="490" bgcolor="#003063" height="60" colspan="2" rowspan="2" valign="bottom">')
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="462" height="60"><param name="movie" value="flash/tuavila3.swf"><param name="quality" value="high"><embed src="flash/tuavila3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="462" height="60"></embed></object></td>')
document.write('<td width="290" bgcolor="#003063" height="32"><table border="0" width="285" cellspacing="0" cellpadding="0"><tr><td width="141"><img border="0" src="img/titul2.jpg" width="141" height="25"></td><td width="149" style="font-family: verdana; font-size: 7.5 pt; color: #FFFFFF; font-weight: bold" align="right"><script>fecha();</script></tr></table></td></tr>')
document.write('<tr><td width="290" bgcolor="#003063" height="28" valign="bottom">')
document.write('<table border="0" width="290" cellspacing="0" cellpadding="0" bgcolor="#FFCC66" height="25">')
document.write('<tr><td width="11" valign="top" align="left"><img border="0" src="img/esquina1.jpg" width="10" height="10"></td>')
document.write('<td width="36"><font color="#9C0000" face="Tahoma" size="1">Buscar&nbsp;</font></td>')
document.write('<form action="benlaces.php" Name="MiForm">')
document.write('<td width="63"><input type="text" class="in" name="TxtBusqueda" size=10>&nbsp;</td>')
document.write('<td width="99">&nbsp;<select size="1" name="Categoria" class="in">')
document.write('<option value="" selected>[En la web]</option>')
document.write('<option value="1">Enlaces</option>')
document.write('</select></td></form>')

document.write('<form action="http://www.tuavila.com/cgi-sys/entropysearch.cgi" Name="FrmSearch">')
document.write('<input type="hidden" name="query" value="">')
document.write('<input type="hidden" name="user" value="tuavila">')
document.write('<input type="hidden" name="basehref" value="http://tuavila.com">')
document.write('<input type="hidden" name="template" value="default"></form>')

document.write('<td width="24"><A HREF="javascript:Enviar2();" class="pp2"><img border="0" src="img/lupa.gif" width="18" height="15"></A></td>')
document.write('<td width="11" valign="top" align="right"><img border="0" src="img/esquina2.jpg" width="10" height="10"></td>')
document.write('<td width="32" bgcolor="#003063" align="center"><a href="http://www.tuavila.com/_ing/inicio.php"><img border="0" src="img/ing.jpg" width="20" height="20" alt="English"></a></td></tr></table></td></tr>')


document.write('<tr><td bgcolor="#319ACE" colspan="3" align="center" style="font: 7.5pt verdana">&nbsp</td></tr>')
document.write('<tr><td bgcolor="#FFFFFF" colspan="3" align="center">')
document.write('<table width="775" border="0" cellpadding="0" cellspacing="0"><tr>')
document.write('<td width="180"><a href="http://www.trotalia.com" target="_blank"><img src="img/logoTrotalia.gif" width="161" height="71" border=0/></a></td>')
document.write('<td width="420" ><table border="0" cellpadding="0" cellspacing="0">')
document.write('<tr><td style="color:#52beff; font-family:Arial; font-size:39px;">VIAJES Y TURISMO</td></tr>')
document.write('<tr><td><img src="img/lineaAzul.gif" width="355" height="3" /></td></tr>')
document.write('<tr><td align="right" style="color:#ff5e05; font-family:Arial; font-size:26px; font-style:italic">tu mejor destino</td></tr>')
document.write('<tr><td style="color:#000000; font-family:Arial; font-size:15px; font-weight:bold">Agencia de Viajes en el Paseo de Santo Tomás nº6</td></tr>')
document.write('</table></td><td width="170"><table border="0" cellpadding="0" cellspacing="0">')
document.write('<tr><td style="color:#ff5e05; font-family:Arial; font-size:50px; font-weight:bold">5%</td>')
document.write('<td style="color:#52beff; font-family:Arial; font-size:18px;">Promoción<br />Apertura</td></tr>')
document.write('<tr><td colspan="2"><img src="img/lineaAzul.gif" width="160" height="3" /></td></tr>')
document.write('<tr><td colspan="2" style="color:#ff5e05; font-family:Arial; font-size:32px; font-weight:bold">Descuento<br><div style="color:#ff5e05; font-family:Arial; font-size:16px; font-weight:bold;line-height:90%">a d i c i o n a l</div></td></tr>')
document.write('</table></td></table>')
document.write('</td></tr>')

document.write('<tr><td style="font: 7.5pt verdana" width="780" bgcolor="#319ACE" colspan="3" align="center">')
document.write('<b><a href="inicio.php" class="pp2">Inicio</a>&nbsp;')
document.write(' |&nbsp; <a href="registro.html" class="pp2">Regístrate</A>&nbsp; |&nbsp; <a href="javascript:add_bookmark();" class="pp2">Añadir a favoritos</a>&nbsp;')
document.write(' |&nbsp; <a href="avisolegal.html" class="pp2">Aviso Legal</a>')
document.write(' |&nbsp; <a href="contacto.html" class="pp2">Contacta con nosotros</a>')
document.write(' |&nbsp; <a href="tarifas.html" class="pp2">Tarifas publicitarias</a></b></td></tr></table>')