document.writeln('<style type="text/css">');
document.writeln('<!--');
document.writeln('.buscadorGoogle {');
document.writeln('	font-family:Verdana, Arial, Helvetica, sans-serif;');
document.writeln('	width:122;');
document.writeln('	font-size:9;');
document.writeln('	background-color: #FFFFFF;');
document.writeln('	border: 1px solid #333333;');
document.writeln('	color: #000000;');
document.writeln('	text-decoration: none;');
document.writeln('}');
document.writeln('-->');
document.writeln('</style>');

function buscarpal (donde, key) {
key=escape(key);
if(donde=="0") top.location.href="http://buscador.terra.com.ve/default.asp?query=" + key + "&ca=";
if(donde=="1") top.location.href="http://buscador.terra.com.ve/default.asp?query=" + key + "&ca=w";
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function redirect(valor)
{
  var link = valor;
  if (link.substring(0,1) == "/")
  {
    link = "http://www.terra.com.ve" + link;
  }
  else
  {
    if (link.substring(0,7) != "http://")
      link = "http://www.terra.com.ve/" + link;
  }  
  top.location=link;
}

function _buscar(f) {
 f.action="http://buscador.terra.com.ve/default.asp";
 if (f.query.value.length == 0) { alert('Ingrese el texto que desea buscar.'); f.query.focus(); return false; }
 else return true;
}

document.write('<script language="JavaScript" src="http://www.terra.com.ve/includes/cabeceras/js/comun.js"></script>');
//document.write('<script language="JavaScript" src="/includes/cabeceras/js/comun.js"></script>');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr bgcolor="#FF7F00"> ');
document.write('<td rowspan="2" width="136"><a href="http://www.terra.com.ve/" target=_top><img src="http://www.terra.com.ve/includes/cabeceras/img/logo.gif" width="136" height="32" border="0" alt="Terra"></a></td>');
document.write('<td width="16"><img src="http://www.terra.com.ve/img/au.gif" width="16" height="24"></td>');
document.write('<td valign="middle" align="right" width="100%">');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr> ');
document.write('<td align="right"> ');
document.write('<table border="0" cellspacing="0" cellpadding="0" height="24">');
document.write('<form name="canales">');
document.write('<tr align="left"> ');
document.write('<td> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> ');
document.write('<select name="opcion" onChange="Javascript:redirect(document.canales.opcion.options[this.selectedIndex].value)" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000">');

for (i=0; i<arraycanales.length; i+=3) {
if (arraycanales[i+1] == "") {
document.write('<option value="">');
} else {
document.write('<option value=' + arraycanales[i+1] + '>');
}
document.write(arraycanales[i]);
}

document.write('</select>');

// document.canales.opcion.selectedIndex = 0;

document.write('</font></td>');
document.write('<td width="6"><img src="http://www.terra.com.ve/includes/cabeceras/img/au.gif" width="6" height="8"></td>');
document.write('<td> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> ');
document.write('<select name=exclusivos onChange="Javascript:redirect(this.form.exclusivos.options[this.form.exclusivos.selectedIndex].value)" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000">');

for (i=0; i<arrayservicios.length; i+=3) {
document.write('<option value=' + arrayservicios[i+1] + '>');
document.write(arrayservicios[i]);
}

document.write('</select>');

//document.canales.exclusivos.selectedIndex = 0;

document.write('</font></td>');
//
//----- Drop Down Menu de Especiales: temporalmente oculto ----- 
//document.write('<td width="6"><img src="http://www.terra.com.ve/includes/cabeceras/img/au.gif" width="6" height="8"></td>');
//document.write('<td width="122"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> ');
//document.write('<select name="especiales" onChange="Javascript:redirect(document.canales.especiales.options[this.form.especiales.selectedIndex].value)" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000">');
//
//for (i=0; i<arrayespeciales.length; i+=3) {
//if (arrayespeciales[i+1] == "") {
//document.write('<option value="">');
//} else {
//document.write('<option value=' + arrayespeciales[i+1] + '>');
//}
//document.write(arrayespeciales[i]);
//}
//
//document.write('</select>');
//----------------------------------------------------------------
//
//document.canales.especiales.selectedIndex = 0;
//
//document.write('</font></td>');
document.write('</tr>');
document.write('</form>');
document.write('</table>');
document.write('</td>');
//--
document.write('		  <td width="300" align="center" height="34">');
document.write('   <table border="0" width="273" cellpadding="2" cellspacing="1" bgcolor="824204">');
document.write('     <form name="form_buscar" action="http://buscador.terra.com.ve/default.asp" method="get" onsubmit="return _buscar(this)"><tr>');
document.write('       <td bgcolor="#FFFFFF">');
document.write('	        <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('           <tr>');
document.write('             <td width="132"><input type="text" name="query" class=buscadorGoogle></td>');
document.write('             <td><input type="image" src="http://www.terra.com.ve/img/bt_buscar2.gif" width="18" height="15"></td>');
document.write('             <td align="right"><img src="http://www.terra.com.ve/img/logo-google2.gif" width="109" height="18"></td>');
document.write('           </tr>');
document.write('         </table>');
document.write('	      </td>');
document.write('     </tr>');
document.write('     </form>');
document.write('   </table>');
document.write('		  </td>');
/*document.write("<form action='javascript:buscarpal(document.buspal.donde.options[document.buspal.donde.selectedIndex].value, document.buspal.Claus.value)' method=post name=buspal>");
document.write("<td height='34' width='217' align='right'><font face='Verdana, Arial, Helvetica' size=1>");
document.write("<select name=donde style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000\">");
document.write("<option value=0 selected>En Venezuela</option>");
document.write("<option value=1>Toda La Web</option>");
document.write("</select>");
document.write("<img src='http://www1.terra.com.co/img/au.gif' width='6' height='1'>");
document.write("<input name=Claus size=7 style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000\"><input align=absMiddle alt=BUSCAR border=0 height=15 src='http://www1.terra.com.co/img/lupa.gif' type=image width=22 name='image2'>&nbsp;&nbsp; </td>");
document.write("</form>");
document.write("<td width=209 height=34 colspan=2 align=left><img src=\"http://terra.com.ve/img/t.gif\" width=1 height=3><br><b><a href=\"#\" onFocus=\"this.blur();\" onClick=\"javascript:window.open('http://buscador.terra.com.ve/control.asp','','scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,width=380,height=308,left=140,top=190'); return false;\" target=\"_self\"><font face=\"verdana,arial,helvetica\" size=1 color=FFFFFF style=\"text-decoration:none;\">Control Paternal</b></font></a></td>");*/
//--
//document.write("<td width=\"94\"><img src=\"http://terra.com.ve/includes/cabeceras/img/tln.gif\" width=\"94\" height=\"34\" align=\"absmiddle\"></td>");
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td colspan="2" align="left" bgcolor="#FF7F00"> ');
document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.write('<tr> ');
document.write('<td rowspan="2" width="16" align="right"><img src="http://www.terra.com.ve/includes/cabeceras/img/esq_gris.gif" width="16" height="16"></td>');
document.write('<td colspan="2" bgcolor="#FFFFFF" height="1"><img src="http://www.terra.com.ve/includes/cabeceras/img/au.gif" width="1" height="1"></td>');
document.write('</tr>');
document.write('<tr> ');
//document.write('<td width="380" bgcolor="#5F5F7F" nowrap><font color="#ffffff" face="Arial, Helvetica, sans-serif" size="1">Venezuela</font><font color="#ffffff" face="Arial, Helvetica, sans-serif" size="1">, ');

meses = new Array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre");
dias = new Array("domingo","lunes","martes","mi&eacute;rcoles","jueves","viernes","s&aacute;bado");
var curdate=new Date();
var mes=curdate.getMonth();
var dia_num=curdate.getDate();
var dia_sem=curdate.getDay();
var anio=curdate.getYear();
if (anio < 2000) anio=anio+1900;
//document.write(dias[dia_sem]+" "+dia_num+" de "+meses[mes]+" de "+ anio);
 
//document.write('</font></td>');
document.write("<td width=\"380\" bgcolor=\"#5F5F7F\" nowrap><img src=\"http://terra.com.ve/img/t.gif\" width=\"380\" height=\"1\"><br><font color=\"#ffffff\" face=\"Arial, Helvetica, sans-serif\" size=\"1\">Venezuela, " + dias[dia_sem]+" "+dia_num+" de "+meses[mes]+" de "+ anio + "</font></td>");
document.write('<td bgcolor="#5F5F7F" align="right" height="15" width="100%"> ');
//--- todo ---
document.write('<table width="280" border="0" cellspacing="0" cellpadding="0" bgcolor="#5F5F7F" height="15">');
document.write('<tr> ');
document.write('<td width="15" bgcolor="#5F5F7F" height="15"><img src="http://terra.com.ve/includes/cabeceras/img/inclinada.gif" width="15" height="15"></td>');
document.write('<td width="55" bgcolor="#5F5F7F" height="15"><a href="http://terra.com.ve/SGUP/form_registro.cfm" style="TEXT-DECORATION: none"><font color=#ffffff face="Arial, Helvetica, sans-serif" size=1>Regístrate</font></a></td>');
document.write('<td width="15" bgcolor="#5F5F7F" height="15"><img src="http://terra.com.ve/includes/cabeceras/img/inclinada.gif" width="15" height="15"></td>');
document.write('<td width="58" bgcolor="#5F5F7F" height="15"><a href="http://terra.com.ve/info/privacidad.htm" style="TEXT-DECORATION: none"><font color=#ffffff face="Arial, Helvetica, sans-serif" size=1>Privacidad</font></a></td>');
document.write('<td width="15" bgcolor="#5F5F7F" height="15"><img src="http://terra.com.ve/includes/cabeceras/img/inclinada.gif" width="15" height="15"></td>');
document.write('<td width="62" bgcolor="#5F5F7F" height="15"><a href="http://terra.com.ve/info/copy.htm" style="TEXT-DECORATION: none"><font color=#ffffff face="Arial, Helvetica, sans-serif" size=1>Aviso Legal</font></a></td>');
document.write('<td width="15" bgcolor="#5F5F7F" height="15"><img src="http://terra.com.ve/includes/cabeceras/img/inclinada.gif" width="15" height="15"></td>');
document.write('<td width="45" bgcolor="#5F5F7F" height="15"><a href="http://terra.com.ve" style="TEXT-DECORATION: none"><font color=#ffffff face="Arial, Helvetica, sans-serif" size=1>Portada</font></a></td>');
document.write('</tr>');
document.write('</table>');
//--- sólo portada ---
//document.write('<table width="70" border="0" cellspacing="0" cellpadding="0" bgcolor="#5F5F7F" height="15">');
//document.write('<tr> ');
//document.write('<td width="15" height="15"><img src="http://www.terra.com.ve/includes/cabeceras/img/inclinada.gif" width="15" height="15"></td>');
//document.write('<td height="15" width="95"><a href="http://www.terra.com.ve/" ');
//document.write('style="TEXT-DECORATION: none"><font color=#ffffff ');
//document.write('face="Arial, Helvetica, sans-serif" size=1>Portada</font></a></td>');
//document.write('</tr>');
//document.write('</table>');
//---
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('<tr bgcolor="#FFFFFF"> ');
document.write('<td colspan="3" height="1"><img src="http://www.terra.com.ve/includes/cabeceras/img/au.gif" width="1" height="1"></td>');
document.write('</tr>');
document.write('</table>');

