﻿var ajuste = document.getElementById('ajuste').title;

with (document) { 
  write(' <div id="zocalo"> ');
  write(' <P> ');
  write(' Desde el medioevo del primer año del nuevo siglo hasta el crepúsculo del 15.07.2010,<BR> ');
  write(' han transcurrido 10 soles durante los cuales peregrinos del Nuevo Mundo <BR>');
  write(' y las Tierras Hiperbóreas han abierto esta Caja de Pandora. ');
  if (ajuste == 'supremo'){ write(' <BR><BR><BR><BR><BR><BR> ')};
  write(' </P> ');
  write(' </div> ')
}

function conexa (linkeamos) { location.href = linkeamos };

if (ubicacion != "files") {

  // ocultar los links internos y dejar los externos 
  linkos = document.getElementById('cuerpo').getElementsByTagName('A');  
  for (var i=0; i<linkos.length; i++) {
    link_real = linkos[i].href;
    el_target = linkos[i].getAttribute("target");
    if (el_target != '_blank' && el_target != '_self' ) {
      if ( navegador == "IE" ) {
	    linkos[i].attachEvent("onmouseover", function(){window.status='www.abroix.cl';return true}); 
        linkos[i].attachEvent("onfocus",     function(){window.status='www.abroix.cl';return true});
      };
      if ( navegador == "FF" || navegador == "GC" || navegador == "OP" || navegador == "SF") {
        linkos[i].setAttribute("href","http://www.abroix.cl");
        linkos[i].setAttribute("onclick","conexa('"+link_real+"'); return false")
      };
    };		 
  }; 
  
  // evitar selección y botón contrario
  if ( navegador == "IE" || navegador == "SF") {
    document.onmousedown = BotonDerecho;
    document.onselectstart = NoSeleccionar;
  };
  if ( navegador == "FF" || navegador == "OP") {
    document.oncontextmenu = function() {RetornarInicio(); return false};
    if (ajuste != 'editable') {
      document.onmousedown = function() {return false}; document.onclick = function() {return true}
    }
  };
  if ( navegador == "GC") {
    document.oncontextmenu = function() {RetornarInicio(); return false};
    document.onselectstart = NoSeleccionar;
  };

  // evita el copy (aunque es redundante)
  document.oncopy = function() {return false};
  
  // ocultar links en botones de formulario
  if ( navegador == "IE") {
    linkos = document.getElementById('cuerpo').getElementsByTagName('form');  
    for (var i=0; i<linkos.length; i++) {
       linkos[i].attachEvent("onmouseover", function(){window.status='www.abroix.cl';return true}); 
    };
  };
   
};












