var num=Math.floor (Math.random()*1000000);
var browser, version; var status = 1; var toc = new Array(); browser = navigator.appName; version = parseInt(navigator.appVersion);
if (browser == "Netscape" && version >= 3) status = 0;
else if (browser == "Microsoft Internet Explorer" && version >= 4) status = 0;

function item(off, over) { if (status) return; this.off = new Image(); this.off.src = off; this.over = new Image(); this.over.src = over; }
function cache(id, off, over) { if (status) return; item[id] = new item(off, over); toc[toc.length] = id; }
function over(que, donde) { if (status) return; if (! donde) donde = que; document[donde].src = item[que].over.src; }
function out(que, donde) { if (status) return;  if (! donde) donde = que; document[donde].src = item[que].off.src; }

function doubleclick(cod, w, h, tile) {
document.write('\<IFRAME SRC="http://ad.terra.doubleclick.net/adi/' + cod + ';sz=' + w + 'x' + h + ';tile=' + tile + ';ord=' + num + '?" name=frame1 width=' + w + ' height=' + h + ' frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no>');
document.write('\<SCR' + 'IPT language="JavaScript1.1" SRC="http://ad.terra.doubleclick.net/adj/' + cod + ';abr=!ie;sz=' + w + 'x' + h + ';tile=' + tile + ';ord=' + num + '?"><\/SCR' + 'IPT>');
document.write('\<NOLAYER><A HREF="http://ad.terra.doubleclick.net/jump/' + cod + ';abr=!ie;sz=' + w + 'x' + h + ';tile=' + tile + ';ord=' + num + ' ?"><IMG SRC="http://ad.terra.doubleclick.net/ad/' + cod + ';abr=!ie;sz=' + w + 'x' + h + ';tile=' + tile + ';ord=' + num + '?" border=0 width=' + w + ' height=' + h + '></A><\/NOLAYER><\/IFRAME>');
}

function popupaudio(p, l, t, w, h) {
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
var URL = p; popup = window.open(URL,"Audio",windowprops);
}
function abrir_img(im,ti,ex,ancho,alto){
masAlto=alto+11;  features = "width="+ancho+",height="+masAlto; if (!ti.length) ti = "Terra";
window.open("/foto.html?imagen=" + im + "&titulo=" + ti + "&ancho=" + ancho + "&alto=" + alto, "Foto", features);
}

function ventana(nombre,name,propiedades) { v=window.open(nombre,name,propiedades); }

function imprimir(pag_imprimir) {
window.open(pag_imprimir,'Impresion','toolbar=yes,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=640,height=520');
}
function actualidad(p, l, t, w, h) {
var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
var URL = p; popup = window.open(URL,"Actualidad",windowprops);
}