// Copyright (c) 2003-2009 Familia Toledo

var precargar;
var actual;
var geo = "";
var geo2;

if (geo2 = window.location.href.toLowerCase().indexOf("geocities.com/") >= 0)
  /*geo = "http://www.biyubi.com/"*/;

function precarga()
{
  var c;
  var temp;

  for (c = 0; c < precargar.length; c++) {
    temp = new Image();
    temp.src = precargar[c];
  }
}

function agrega_imagen(destino, nombre, imagen, titulo)
{
  document.write("<a href='" + destino + "'");
  if (actual != nombre) {
    document.write(" onmouseover=\"document.images."+nombre+".src='"+imagen+"2.gif'\"");
    document.write(" onmouseout=\"document.images."+nombre+".src='"+imagen+"1.gif'\"");
  }
  document.write("><img name='"+ nombre + "' ");
  if (geo2)
    document.write("alt='" + titulo + "' ");
  if (actual == nombre) {
    document.write("src='"+imagen+"2");
  } else {
    document.write("src='"+imagen+"1");
    precargar[precargar.length] = imagen+"2.gif";
  }
  document.write(".gif' border=0 width=120 height=25 vspace=3></a><br>");
}

function lg(n){g=document.cookie.split("; ");for(c=0;c<g.length;c++){
if(g[c].split("=")[0]==n)return g[c].split("=")[1];}return"";}
function eg(c,v){f=new Date();f.setFullYear(f.getFullYear()+1);
document.cookie=c+"="+v+"; expires="+f.toGMTString();}
if(lg("o")=="")eg("o",""+new Date().getTime()/41178+Math.floor(Math.random()*1000));
eg("s",lg("s")==""?1:parseInt(lg("s"))+1);

var tact = lg("l")==""?2:parseInt(lg("l"));
var ele = new Array();
var tam = new Array();
tam[0] = 6;
tam[1] = 8;
tam[2] = 10;
tam[3] = 12;
tam[4] = 14;
tam[5] = 16;
tam[6] = 18;
tam[7] = 20;
tam[8] = 24;

function lu(c)
{
  var d, r;

  if (tact + c < 1 || tact + c > 4)
    return;
  tact += c;
  for (d = 0; d < ele.length; d++) {
    r = 0;
    switch (ele[d].className) {
      case "b":
      case "pie": r =-1; break;
      case "rel": r = 2; break;
      case "e":   r = 4; break;
    }
    ele[d].style.fontSize = tam[tact + r] + "pt";
  }
  eg("l", tact);
}

function inicia(donde)
{
  actual = donde;
  precargar = new Array();
  if (window.location.href.toLowerCase().indexOf("biyubi.com/") >= 0) {
    z="l="+escape(navigator.language?navigator.language:navigator.userLanguage);
    z+="&s="+Math.floor(Math.random()*10000.0);
    z+="&d="+escape(window.location.href)+"&r="+escape(document.referrer);
    document.write("<script src=\"/cuenta.php?"+z+"\" language=\"javascript1.3\"></s");
    document.write("cript>");
  }
  if (donde == "")
    return;
  document.write("<table width=100% height=95 cellspacing=0 cellpadding=0 align=center>");
  document.write("<tr><td width=350 valign=top align=left height=85>&nbsp;");
  document.write("<td valign=middle align=center height=85>");
  eg("c",a=(lg("c")==""?0:parseInt(lg("c"))+1));
  switch (a % 1) {
    case 0:
      document.write("<a href='eng_tecnologia.html'><img src=\"eng_aviso3.gif\" width=400 height=60 border=0 alt='Know about our technology...'></a>");
      break;
  }
  document.write("<tr><td valign=middle align=center height=10 colspan=2>&nbsp;");
  document.write("</table>");
  document.write("<table border=0 cellpadding=5 cellspacing=0><tr><td width=140 valign=top align=center>");
  agrega_imagen("eng_principal.html", "a0", "eng_principal", "Main");
  agrega_imagen("eng_tecnologia.html", "a4", "eng_tecnologia", "Technology");
  agrega_imagen("eng_productos.html", "a6", "eng_productos", "Products");
  agrega_imagen("eng_educacion.html", "a5", "eng_educacion", "Education");
  agrega_imagen("eng_historia.html", "a7", "eng_historia", "History");
  agrega_imagen("eng_ciencia.html", "a1", "eng_ciencia", "Science");
  agrega_imagen("did_principal.html", "a2", "eng_poesia", "Poetry");
  agrega_imagen("eng_enlaces.html", "a9", "eng_enlaces", "Links");
  agrega_imagen("eng_periodismo.html", "a3", "eng_periodismo", "Journalism");
document.write('<hr width=50%>');
document.write('<div class="mini"><a href="b13com.pdf">Bulletin No. 13 (PDF, spanish)</a></div>');
document.write('<div class="mini"><a href="b12com.pdf">Bulletin No. 12 (PDF, spanish)</a></div>');
document.write('<hr width=50%>');
document.write('<div class="mini"><a href="proyecto_fuente.html">Build your own power supply</a></div>');
document.write('<div class="mini"><a href="visitas.html">Visitors at our research department</a></div>');
document.write('<hr width=50%>');
document.write('<div class="mini"><a href="did_vocabulario.html">The only Didxazá dictionary with 15200 entries!</a></div>');
document.write('<div class="mini"><a href="http://www.biyubi.com/did_consulta.php" target="_top">The only Spanish-Didxazá translator online</a></div>');
document.write('<div class="mini"><a href="did_canciones.html">Lyrics in Didxazá</a></div>');
document.write('<div class="mini"><a href="did_proverbios.html">Proverbs in Didxazá</a></div>');
document.write('<div class="mini"><a href="gabriel.html">Didxazá poetry by Gabriel López Chiñas</a></div>');
document.write('<hr width=50%>');
document.write('<div align="center" style="color: #808080">This site looks better with Biyubi Navigator<br>');
document.write('<img src="' + geo + 'lbiyubi.gif" width=32 height=32 vspace=5 alt="Biyubi Navigator, exclusive of G11V3"><br>');
document.write('Thanks for your visit</div>');
  if (actual != "a0" && geo2) {
    z="l="+escape(navigator.language?navigator.language:navigator.userLanguage);
    z+="&s="+Math.floor(Math.random()*10000.0);
    z+="&d="+escape(window.location.href)+"&r="+escape(parent!=null&&parent!=window?parent.document.referrer:document.referrer)
    document.write("<img src=\"http://www.biyubi.com/cuenta2.php?"+z+"\" width=1 height=1>");
  }
  document.write("<td valign=top>");
  if (actual == "a11") {
    document.write('<map name="lupa">');
    document.write('<area shape="rect" coords="0,0,63,15" href="#" onclick="lu(1)">');
    document.write('<area shape="rect" coords="0,16,63,31" href="#" onclick="lu(-1)">');
    document.write('</map><img src="' + geo + 'lupa.gif" width="64" height="32" align="right" border="0" usemap="#lupa">');
  }
}

function termina(fecha)
{
  if (actual != "a0") {
    document.write("<p align=center><img src='barra2.gif' width=400 height=3></p>");
    document.write("<p align=center>");
    document.write("<a href='eng_principal.html'>Main page</a>");
    document.write(" - <a href='eng_ciencia.html'>Science</a>");
    document.write(" - <a href='did_principal.html'>Poetry</a>");
    document.write(" - <a href='eng_periodismo.html'>Journalism</a>");
    document.write(" - <a href='eng_tecnologia.html'>Technology</a>");
    document.write(" - <a href='eng_educacion.html'>Education</a>");
    document.write(" - <a href='eng_productos.html'>Products</a>");
    document.write(" - <a href='eng_historia.html'>History</a>");
    document.write(" - <a href='eng_enlaces.html'>Links</a>");
    document.write("<br>&nbsp;</p>");
  }
  if (actual == "a11" && (document.all || document.getElementsByTagName)) {
    var c, d, l = document.all ? document.all : document.getElementsByTagName("*"), e = l.length;
    for (c = 0; e > c; c++) {
      d = l[c].className;
      if (d == "a" || d == "b" || d == "e" || d == "r"
       || d == "s" || d == "t" || d == "rel" || d == "pie")
        ele[ele.length] = l[c];
    }
    if (tact != 2)
      lu(0);
  }
  document.write("<table><tr><td width=50% valign=top><span style='font-size: 16pt; color: #ffc000;'><b>Familia Toledo</b></span><br>");
  document.writeln("Av. Santa Cruz del Monte No. 9, Dept. 304.<br>");
  document.writeln("Cd. Satélite. Estado de México.<br>");
  document.writeln("CP. 53110. México. Tel: +52 (55) 5562-7948.");
  document.writeln("<td width=50% valign=bottom>Site: <a href='http://www.biyubi.com/' target='_top'>http://www.biyubi.com/</a><br>");
  document.writeln("Comments:");
  document.writeln("<a href='mailto:biyubi@yahoo.com'>biyubi@yahoo.com</a>");
  document.writeln("</table><table width=100%><tr><td bgcolor=#f0f0f0 align=center><small>");
  if (actual == "a0") {
    document.writeln("Site funded Apr/30/2000.");
    document.writeln("Updated ");
  } else {
    document.writeln("Page last updated ");
  }
  document.write(fecha);
  document.writeln(". Your browser is");
  document.writeln("<font color=#000000>"+navigator.userAgent+"</font>");
  document.writeln("</small>");
  document.writeln("<tr><td><small>");
  document.writeln("(c) Copyright 1996-2009 Familia Toledo. All rights reserved.");
  if (actual == "a0") {
    document.writeln("Other trademarks and trade names may be used in this site to refer to");
    document.writeln("either the entities claiming the marks and names or their products. <b>FAMILIA");
    document.writeln("TOLEDO</b> disclaims any propietary interest in trademarks and trade names other");
    document.writeln("than its own.");
  }
  document.writeln("This site is being developed on the eleven generation computer (G11V3) designed by");
  document.writeln("Oscar Toledo Esteva &amp; family.");
  document.writeln("When reproducing our materials it is obligatory to mention the source");
  document.writeln("<b>FAMILIA TOLEDO</b>.");
  document.writeln("</small></table></table>");
}

