/***********************
   FUNCIONES ONLOAD
 ***********************/
/*
// Cambia dinamicamente el contenido segun el navegador activo
function CAMBIA(frame,id,accion){
	var typed=window.top.type;
  	if (typed=="IE") { eval( frame + "document.all." + id + ".innerHTML='" + accion +"';"); };
  	if (typed=="NN") { eval(frame + "document." + id + "='" + accion + "';"); };
 	if (typed=="MO" || typed=="OP") { eval(frame + "document.getElementById('" + id + "')='" + accion + "'"); };
};


if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) window.top.type="OP";
if (document.all) window.top.type="IE";
if (document.layers) type="NN";
if (!document.all && document.getElementById) window.top.type="MO";

// FUNCION: buscador
var FRes="";
function CAB(aa) { window.top.cabecera.location.href=aa+".html"; };
function RES(bb) { window.top.FRes=bb; CAB("Resultados"); };
function RES2() { window.top.CAMBIA("window.top.cabecera.","campo2",RES3()); };
*/

// INICIO: maximiza la ventana (posicion y tamaño)
top.window.moveTo(0,0); top.window.resizeTo(screen.width,screen.height);
window.defaultStatus='Laes Nexia :: José Ortega y Gasset, 22-24 :: 28006 Madrid :: T 915768432 :: F 915777712 :: madrid@laesnexia.com';


/***********************
	VENTANAS POPUP
 ***********************/
var abreventana=''; var javascript_version;
function POPUP(fichero,nombre,W,H,X,Y,tb) { 	
	var caracteristicas='width='+W+',height='+H+',screenX='+X+',screenY='+Y+',left=0,top=0,toolbars='+tb+',dependent,scrollbars,resizable';
	abreventana = window.open(fichero,nombre,caracteristicas);
	//if(javascript_version > 1.0) { setTimeout('abreventana.focus();',250); };
}


// Link a la web anterior
//function Presentacion() { POPUP('presentacion/index.htm','PRESENTACION',screen.width,screen.height,0,0); };


/***********************
    MAPA DE SITUACION
 ***********************/

function mapa() { POPUP('IMG/mapa.html','MAPA',472,370,0,0,0); };


/***********************
      FORMULARIOS
 ***********************/

// Login
function DLog(user,pass) { POPUP('SCRIPTS/soporte.asp?USR='+user+'&PWD='+pass,'Login',screen.width,screen.height,0,0); };


var nom='';
// descarga de documentos PDF.
function F(nom) { POPUP(nom,'INFO',800,600,0,0,1); return; };
