// Variables globales
   var VEN=0;              // ventana de las url,  creada =1 
   var SEL=0;             //  indice del pais seleccionado
   var REG=0;             //  indice de la region 
   var NUM_REGIONES=8;
   var NUM_PAISES=194;
   var NUM_REGS=205;
   var NUM_COORDENS=250;
   var NUM_BUSC=765;
   var NUM_TEMAS=15;

// Def. del Objeto REGIONES
function defreg(nombre,mapa,c,n,b,m)
{
this.nombre=nombre;
this.mapa=mapa;
this.c=c;
this.n=n;
this.b=b;
this.m=m;
return (this); 
}

function tabregs()
{
for ( I=0; I<=NUM_REGIONES; I++ ) {
                                   this[I]=new defreg(' ',' ',1,1,1,1); 
                                  }
return(this);         
}

regiones=new tabregs();

function ar (j,nom,mapa,c,n,b,m)
{
 regiones[j].nombre=nom;
 regiones[j].mapa=mapa;
 regiones[j].c=c;
 regiones[j].n=n;
 regiones[j].b=b;
 regiones[j].m=m;
}

ar (0,'World Wide Map','mundi',1,9,1,20);
ar (1,'North America','amnorte01',185,10,1,20);
ar (2,'Central America','amcen01',200,24,753,4);
ar (3,'South America','amsur01',14,13,757,4);
ar (4,'Europe','europa01',27,39,425,7);
ar (5,'Africa','africa01',130,54,221,9);
ar (6,'Asia','asia01',80,50,245,5);
ar (7,'Oceania','oceania01',225,22,469,2);
//ar (8,'Antartic','antartida01',245,1);


DirMR='href="http://roadmaps.lycos.com:90/cgi-bin/mqcustomconnect?link=country"'
NATGEO='href="http://www.nationalgeographic.com/resources/ngo/maps" '
EXCIMAP='href="http://maps.excite.com" '
INFONATION='href="http://srch.un.org/Pubs/CyberSchoolBus/infonation/s_infonation.htm"'
FACTSBOOK='href="http://www.odci.gov/cia/publications/factbook/country.html"'
BABELFISH='href="http://babelfish.altavista.com"'

// Rutina traductora E-I.

function vec (n)
{
var I;
for (I=0; I<=n; I++) { this[I]=0; } 
}

ordinal=new vec(NUM_REGS);

// DirMR + trad[J] + '"> ' + "MAPAS de rutas y ciudades" + '</A>'


// Def. del objeto COORDENADAS
function defcoord (r,p,coordens)
{
this.r=r;
this.p=p;
this.coordens=coordens;
}

// Def. de la tabla de coordenadas
function tabcoords()
{
for ( I=0; I<= NUM_COORDENS; I++ ) {
                                      this[I]=new defcoord(1,1,' ' ); 
                                   }
return(this)
}

coordenadas=new tabcoords();

function ac (j,r,p,coordens)
{
coordenadas[j].r=r;
coordenadas[j].p=p;
coordenadas[j].coordens=coordens;
}


// Def. del Objeto PAIS
function defpais (nombre,i,n,r)
{
this.nombre=nombre;
this.i=i;
this.n=n;
this.r=r;
}

// Def. de la tabla de paises
function tabpais ()
{
for ( I=0; I<= NUM_REGS; I++ ) {
                                  this[I]=new defpais(' ',1,1,1 ); 
                               }
return(this)
}

// Inicializacion de la Tabla de paises
paises=new tabpais();

function ap (j,nom,i,n,r)
{
 paises[j].nombre=nom;
 paises[j].i=i;
 paises[j].n=n;
 paises[j].r=r;
}


// Def. del objeto Temas y tipos de buscadores
function deftema (tipo,descrip)
{
this.tipo=tipo;
this.descrip=descrip;
}
// Def. de la tabla de temas 
function tabtema ()
{ 
for ( I=0; I<=NUM_TEMAS ; I++ ) {
                                 this[I]=new deftema(0,'global...'); 
                                }
return(this)
}
temas=new tabtema()
function at (j,tipo,descrip)
{
  temas[j].tipo=tipo;
  temas[j].descrip=descrip;
}


// Def. del Objeto BUSCADOR
function defbusc (nombre,dir,tipo,idiomas)
{
this.nombre=nombre;
this.dir=dir;
this.tipo=tipo;
this.idiomas=idiomas
}

// Def. de la tabla de buscadores
function tabbusc ()
{ 
for ( I=0; I<=NUM_BUSC ; I++ ) {
                                this[I]=new defbusc(' ',' ',0,'I,N'); 
                               }
return(this)
}

buscadores=new tabbusc()
function ab (j,nom,dir,tipo,idiomas)
{
  buscadores[j].nombre=nom;
  buscadores[j].dir=dir;
  buscadores[j].tipo=tipo;
  buscadores[j].idiomas=idiomas;
}


// Rutinas
function elegido () { parent.bpais (SEL); }
function selector (X) {  SEL=X;  }

function dirsite (URL,J)
{ var Wid='Dir' + J;
  window.open(URL,Wid); 
}

function bpais (X)
{
var reng;
reng=' ';
var J,L;
L=paises[X].i+paises[X].n;
REG=paises[X].r; 
if  ( VEN == 0 ) { inic(); }

SEL=X;

reng+='<HTML> <HEAD> <TITLE> Buscadores de' + paises[X].nombre + '</TITLE> </HEAD>'
reng+='<BODY bgcolor="darkblue">' 
reng+='<CENTER><FONT color="gold"><b>' + paises[X].nombre + '</b><BR><HR></FONT><BR>'

var Aa=0;  var C1="beige";  var C2="wheat";
var CC1=C1;  var CC2=C2; var UrlDir=" "; 
reng+='<TABLE border=0 cellpadding=0 cellspacing=1  bgcolor="red" width="140%">'
reng+='<TH bgcolor="gold" width="50%" align=left> Name</TH><TH bgcolor="yellowgreen"><FONT size=-1>Lang.</TH><TH bgcolor="gold">Themes</TH><TR>'

for (J=paises[X].i; J<L; J++) {
 if ((buscadores[J].dir).charAt(0) == '.' ) { SERV="www"; }  else  { SERV=''; }
 if ( Aa == 0 ){ CC1=C1; CC2=C1; Aa=1; } else { CC1=C2; CC2=C2; Aa=0; } 
// reng+='<TD bgcolor="' + CC1 + '"><A href="http://' + SERV + buscadores[J].dir + '" target="_top">' + buscadores[J].nombre + '</A><BR></TD>'
UrlDir='http://' + SERV + buscadores[J].dir
 reng+='<TD bgcolor="' + CC1 + '"><A href="javascript:parent.parent.dirsite(\' ' + UrlDir + '\',' + J + ')" >' + buscadores[J].nombre + '</A><BR></TD>'
 reng+='<TD align="center" bgcolor="' + CC2 + '"><FONT size=-2>' + buscadores[J].idiomas +  '</FONT></TD>'
 reng+='<TD bgcolor="' + CC2 + '"><FONT size=-2 >' + temas[buscadores[J].tipo].descrip + '</FONT></TD><TR>'
                              }

reng+='</TABLE></BODY></HTML>'
mundi.busc.document.close();
mundi.busc.document.open();
mundi.busc.document.write(reng)
mundi.busc.document.close()
}

function paisel (X)
{
if ( X==0 ) { return;} 
bpais (X);
SEL=X;
var R=paises[X].r; 
regsel(R);
alfab(X,R); 
}

function regsel (R)
{
  indice.document.REGMUNDO.REGION.options[R].selected=1;
  
}

function selpais ()
{ 
indice.document.close();
indice.document.open();
reng=' '; 
reng+='<HTML> <HEAD> <TITLE> Searchers : Alphabetic Selector </TITLE> </HEAD>'
reng+='<BODY bgcolor="darkblue" text="#FFFFFF" link="#00FF00" vlink="#F00000">'

var I,L;
reng+='<CENTER><IMG src="logito.gif" border=0 align=top >'
reng+='<b><FONT size=-1> Indices & Directories</FONT></CENTER><BR>'
//reng+='<CENTER> SELECTOR <BR><FONT color="gold"> alfab&eacute;tico</FONT><BR></CENTER>' 

reng+='<CENTER> <FORM name="REGMUNDO"> <TABLE border=0 cellspacing=0 cellpadding=5>'
reng+='<TD bgcolor="darkblue" align=center valign=center>'
reng+='<FONT size=-1 color="gold"><b>REGIONS </FONT></TD><TR>'
reng+='<TD bgcolor="goldenrod" align=center valign=center>'
reng+='<SELECT name="REGION" onChange="parent.reg_mapa(this.options[selectedIndex].value)">'
L=NUM_REGIONES;

for (I=0; I<=L; I++) {
     reng+='<OPTION value=' + I + '>' + regiones[I].nombre
                     }

reng+='</SELECT><TR></TABLE></FORM>'

reng+='<FORM ><TABLE border=0 width=130 cellpadding=5>'
reng+='<TD bgcolor="darkblue" align=center><FONT size=-1 color="yellowgreen">'
reng+='<b>COUNTRY </FONT></b></TD><TR>'
reng+='<TD  bgcolor="yellowgreen" align=center >'

reng+='<SELECT name="PAIS" OnChange="parent.paisel(this.options[selectedIndex].value)">'
L=NUM_PAISES; 
for (I=0; I<=L; I++) {
     reng+='<OPTION value=' + I + '>' + paises[I].nombre
                     }
reng+='</SELECT></TD><TR></TABLE></FORM>'

reng+='<FONT size=-1 face="verdana"><A href="javascript:parent.expli()" >User\'s Explanation</A><BR><BR></FONT>'
reng+='<A href="../webcreator" target="_top"> <FONT color="gold" size=+1>Web<FONT color="yellowgreen">Creator</FONT></FONT></A></CENTER>' 
reng+='<center><Font face="verdana" size=-1>&nbsp;Installable Version<br> in your PC of this<br> Program!<BR>'
reng+='<FONT color="yellow" >&nbsp;Allow you to access<br> all the WebPages<br> of the World!<br></FONT>' 
reng+='&nbsp;Technical Advise !</font>' 
reng+='</center></b></BODY></HTML>' 
indice.document.write(reng)
indice.document.close()
}

function regeo()
{

VEN=0;
REG=0;
SEL=0; 
var reng=' ';

reng+='<HTML> <HEAD> <TITLE> Searchers : Geographic Selector</TITLE>'
reng+='<SCRIPT Language="Javascript">'
reng+='function slp(idioma)'
reng+='{'
reng+='if ( idioma==\'E\') { parent.window.location.href="index.htm"; return;}' 
reng+='if ( idioma==\'S\') { parent.window.location.href="spanish.htm"; return;}' 
reng+='if ( idioma==\'F\') { parent.window.location.href="french.htm"; return;}' 
reng+='if ( idioma==\'I\') { parent.window.location.href="italian.htm"; return;}' 
reng+='if ( idioma==\'P\') { parent.window.location.href="portuguese.htm"; return;}' 
reng+='if ( idioma==\'G\') { parent.window.location.href="german.htm"; return;}' 
reng+='if ( idioma==\'C\') { parent.window.location.href="chinese.htm"; return;}' 
reng+='if ( idioma==\'J\') { parent.window.location.href="japanese.htm"; return;}' 
reng+='if ( idioma==\'R\') { parent.window.location.href="russian.htm"; return;} '
reng+='} </SCRIPT></HEAD>'
reng+='<BODY bgcolor="mediumblue" text="#FFFFFF" link="#00FF00" vlink="#F00000">'
reng+='<form><TABLE border=0 width="100%" cellspacing=0 cellpadding=0 >'

reng+='<TD nowrap align=center bgcolor="skyblue"><FONT color="red" face="verdana,Helvetica"><b>Geographic</b><BR><FONT color="blue" >SELECTOR</FONT></FONT></TD>'

reng+='<TD nowrap bgcolor="steelblue" align=center>' 
reng+='<b>Language</b><BR>'
reng+='<select name="idioma" onChange="slp(this.value)">'
reng+='<option value="E">English'
reng+='<option value="S">Spanish'
reng+='<option value="F">French'
reng+='<option value="I">Italian'
reng+='<option value="P">Portu-'
reng+='<option value="P">guese'
reng+='<option value="O">------------'
reng+='<option value="O">S O O N'
reng+='<option value="O">------------'
reng+='<option value="G">German'
reng+='<option value="C">Chinese'
reng+='<option value="J">Japa-'
reng+='<option value="J">nese'
reng+='<option value="R">Russian'
reng+='</select></TD>'

reng+='<TD bgcolor="goldenrod" align=center><FONT color="darkgreen" size=-1><b>Professional Level '
reng+=' on Internet<BR>Your Own WebPage -only $20</b></FONT></TD>'
reng+='<TD nowrap align=center bgcolor="goldenrod"><FONT size=-1> Sponsor </FONT><BR>'
reng+='<A href="http://only.at/creadorweb" target="_top" ><IMG src="logitowc12.gif" border=0 ></A><TD><TR></TABLE>'
reng+='<IMG src="mundi.gif" usemap="#mundi01" border=0>'
reng+='<map name="mundi01">'
 
var I;
var L;
L=regiones[0].n;

for (I=regiones[0].c; I<=L; I++) { 
     reng+='<area shape="polygon"  coords="' + coordenadas[I].coordens
     reng+='" href="javascript:parent.reg_mapa(' + coordenadas[I].p + ')">'
                                 }

reng+='<area shape="default" nohref></map><BR>'

reng+='<FONT size=-1 face="Verdana,Helvetica"><b>TRAVEL clicking : </b>simply press the mouse on the '
reng+=' continent or region,  next click over a country, '
reng+=' and  finally chooses a Searcher !<BR><BR>'
reng+='ALPHABETIC SELECTOR : select the country in the drop-down list '
reng+=' with the caption COUNTRY and next chooses the Searcher !<BR><BR>'
reng+='REGIONAL SELECTOR : the drop-down list with caption REGIONS allows you to look the maps '
reng+=' of the main regions of the world, next you can use the geographic selector and begin to travel !<BR> '

reng+='<BR><CENTER><b>LANGUAGE ABBREVIATIONS</b><BR>'
reng+='<TABLE cellpadding=1 border=1 >'
reng+='<TD><b> E :</b><TD>  English <TR>'
reng+='<TD><b> S :</b><TD>  Spanish <TR>'
reng+='<TD><b> F :</b><TD>  French  <TR> '
reng+='<TD><b> I :</b><TD>  Italian<TR>'
reng+='<TD><b> P : </b><TD> Portuguese<TR>'
reng+='<TD><b> G :</b><TD>  German <TR>'
reng+='<TD><b> R : </b><TD> Russian <TR>'
reng+='<TD><b> J : </b><TD> Japanese <TR>'
reng+='<TD><b> C : </b><TD> Chinese <TR>'
reng+='<TD><b> N : </b><TD> Native of the country<TR>'
reng+='<TD><b> V+ : </b><TD> Various others <TR></TABLE></CENTER></FONT><BR>'

reng+='<CENTER><A href="../webcreator" target="_top" ><FONT size=+3 color="gold">Web<FONT color="yellowgreen">Creator</FONT></FONT></A><BR>'
reng+='<FONT color="yellow"><b>Professional Level in the Development of Applications for Internet</FONT></b></CENTER><BR>'
reng+='We have a version of the Program <b>Searchers</b> to Install in your PC<BR>'
reng+='<FONT face="Verdana,Helvetica" size=-1> Allow you Fast Access to the Search engines, Indices and  Directories of All '
reng+=' the Countries and Regions of the World !<BR>'

reng+='All the Services and Web Pages in Internet to your Disposition !</FONT><BR>'
reng+='<b>The technical advising of <FONT color="gold" size=+1>Web<FONT color="yellowgreen">Creator</FONT></FONT> allow you configure and Install the Program SEARCHERS, to suite your needs !</b><BR><BR>'
reng+='<b>Dear user, at <A href="mailto:computar@adinet.com.uy" > <FONT color="gold" size=+1>Web<FONT color="yellowgreen">Creator</FONT></FONT></A> we answer your questions via E-mail !</b><BR><BR>' 
reng+='</form></BODY></HTML>'

if ( VEN == 1 )  {
                  mundi.mapa.document.close();
                  mundi.busc.document.close();
                 } 
 
 mundi.document.close();
 mundi.document.open();
 mundi.document.write(reng);
 mundi.document.close(); 
              
}

function alfab (X,R)
{
     reng=' '; 
     reng+='<HTML> <HEAD> <TITLE> Alphabetic Selector</TITLE></HEAD>'
     reng+='<BODY bgcolor="skyblue" vlink="turkoise" >'
     //reng+='<BR><CENTER><FONT size=+1><b> ALPHABETIC SELECTOR</b> <HR color="gray" width="80%"></FONT><BR>'
     reng+='<TABLE border=2 width="100%">'
     reng+='<TD><FONT color="darkgreen" size=+1> &nbsp;COUNTRY </TD><TD> &nbsp; <FONT color="red" size=+1> ' + paises[X].nombre + '</TD><TR>'
     reng+=' </FONT></FONT><TD>&nbsp; </TD> <TD>&nbsp;<A ' + DirMR + ' target="_top"><b>Routes & Cities</b> </A> </TD><TR>'  
     reng+=' </FONT></FONT><TD>&nbsp;<b> MAPS</b> </TD> <TD>&nbsp;<A ' + NATGEO + ' target="_top">National Geographic</A> </TD><TR>'  
     reng+=' </FONT></FONT><TD>&nbsp; </TD> <TD>&nbsp;<A ' + EXCIMAP + ' target="_top"><b>Regional & Cities</b> </A> </TD><TR>'  
     reng+='<TD>&nbsp;</TD><TD>&nbsp;</TD><TR>'
     reng+=' </FONT></FONT><TD><b>Facts  Book</b> </TD> <TD>&nbsp;<A ' + FACTSBOOK + ' target="_top"><b><FONT size=-1>Country\'s update data</FONT></b> </A> </TD><TR>'  
     reng+=' </FONT></FONT><TD><b>InfoNation</b> </TD> <TD>&nbsp;<A ' + INFONATION + ' target="_top"> <b>UN\'s Statistics</b> </A> </TD><TR>'  
     reng+='<TD>&nbsp;</TD><TD>&nbsp;</TD><TR>'
     reng+=' </FONT></FONT><TD><b>TRANSLATOR</b> </TD> <TD>&nbsp;<A ' + BABELFISH + ' target="_top"><b>WebPages & Text</b> </A> </TD><TR>'
     reng+='<TD>&nbsp;</TD><TD>&nbsp;</TD><TR>'
     reng+='<TD> <FONT color="darkgreen" size=+1>&nbsp; REGION</TD><TD align=center>&nbsp;<FONT color="red" size=+1> ' + regiones[R].nombre
     reng+=' </FONT></FONT></TD><TR>' 
     reng+='<TD >&nbsp;</TD><TD bgcolor="white" align=center>&nbsp;<A href="javascript:parent.parent.reg_mapa(' + R + ')"><b>SELECTOR</b></A></TD><TR>'
     reng+='</TABLE></BODY></HTML>'

     mundi.mapa.document.close();
     mundi.mapa.document.open();
     mundi.mapa.document.write(reng);
     mundi.mapa.document.close(); 
}

function inic()
{
var Marco='<HTML> </HTML>'; 

if ( VEN == 0 )  {
     mundi.document.close();
     mundi.document.open();
     reng=' ';
     reng+='<HTML> <HEAD> <TITLE> Selector Geografico </TITLE> </HEAD>'
     reng+='<FRAMESET cols="60%,*" border="0" frameborder="0" framespacing="0">'
     reng+='<FRAME name="mapa" src="javascript:parent.Marco" scrolling="auto" marginheight="0">'
     reng+='<FRAME name="busc" src="javascript:parent.Marco" scrolling="auto" MARGINWIDTH="5" MARGINHEIGHT="0">'
     reng+='</FRAMESET> </HTML>'
     mundi.document.write(reng)
     mundi.document.close()
     VEN=1;
     // expli(); 
                 }

} 

function globs ()
{
 paises[NUM_REGS].nombre=regiones[REG].nombre;
 paises[NUM_REGS].i=regiones[REG].b;
 paises[NUM_REGS].n=regiones[REG].m;
 paises[NUM_REGS].r=REG;
 bpais(NUM_REGS);
}


function reg_mapa(X)
{      
     
     if ( X == 0 ) { regeo(); return; }

     if ( VEN == 0 ) { inic (); }
     mundi.mapa.document.close();
     mundi.mapa.document.open();

     IMAGEN='"' + regiones[X].mapa + '.gif"';
     MAPEO=' usemap="#' + regiones[X].mapa + '" border=0>'
     var reng=' ';

     reng+='<HTML> <HEAD> <TITLE> Selector Geografico </TITLE></HEAD>'
     reng+='<BODY bgcolor="skyblue" ><IMG src=' + IMAGEN + MAPEO
     reng+='<map name="' + regiones[X].mapa + '">'

     L=regiones[X].c + regiones[X].n;
     for ( I=regiones[X].c; I<L; I++ ) {
     reng+='<area shape="polygon" coords="' + coordenadas[I].coordens + '"'   
     //reng+=' href="javascript:parent.parent.selector(' + coordenadas[I].p + ')" '
     var Y=0;
     Y=ordinal[coordenadas[I].p];

     reng+=' OnClick="parent.parent.bpais(' + Y + ')" >' //+ ' onMouseOut="parent.parent.elegido()">'
                                       }

     reng+='<area shape="rect"  coords="0,0,640,480" OnClick="parent.parent.globs()" nohref > </map>' 

     reng+='</BODY> </HTML>'
     mundi.mapa.document.write(reng)
     mundi.mapa.document.close()
     REG=X;
     SEL=0; 
     regsel(REG); 
     globs(); 
}



function expli()
{
reng=' '
reng+='<HTML> <HEAD> <TITLE> Searchers : User\'s Explanation </TITLE> </HEAD>'
reng+='<BODY bgColor="darkblue" link="white" vlink="gold" text="white" >'
reng+='<FONT color="gold" size=+1><BR><b><CENTER>USER\'s EXPLANATION </b></CENTER><BR> </FONT>'

reng+='<FONT face="Verdana,Helvetica" size=-1><U>Geographic SELECTOR:</U><BR><FONT size=-2> When Pressing the mouse over a Country '
reng+=' unfolds the list of its Searchers.<BR>'
reng+='<FONT color="yellow">Choose and click to access! </FONT> <BR>'
reng+='If you click outside of the region contour, emerge the list of the global Searchers!</FONT><BR><BR>'

reng+='<U>Region SELECTOR:</U><BR><FONT size=-2> The drop-down list with caption REGIONS '
reng+='allow you to choose a map of the Regions of the World and next use the <FONT color="yellow"> geographic selector!</FONT></FONT><BR><BR>'

reng+='<U> Alphabetic SELECTOR:</U><BR><FONT size=-2> The drop-down list titled COUNTRY '
reng+='presents in alphabetical order the names of all the Nations.<BR>'
reng+='<FONT color="yellow">When you choose a country, emerge its list of indices, directories and searchers!</FONT><BR>' 
reng+='Also is Displayed the addresses of routes maps, cities\' guides, update data of the nations, and a multilingual translator.</FONT><BR><BR>'

reng+='<BR><CENTER><b>Language ABBREVIATIONS</b><BR>'
reng+='<TABLE cellpadding=1 border=1 >'
reng+='<TD><b> E :</b><TD> English <TR>'
reng+='<TD><b> F :</b><TD> French  <TR> '
reng+='<TD><b> S :</b><TD> Spanish <TR>'
reng+='<TD><b> I :</b><TD> Italian<TR>'
reng+='<TD><b> G :</b><TD> German <TR>'
reng+='<TD><b> C : </b><TD> Chinese <TR>'
reng+='<TD><b> R : </b><TD> Russian <TR>'
reng+='<TD><b> J : </b><TD> Japanese <TR>'
reng+='<TD><b> P : </b><TD> Portuguese <TR>'
reng+='<TD><b> N : </b><TD> Native of the country<TR>'
reng+='<TD><b> V+ : </b><TD> Various others<TR></TABLE><BR></FONT>'

reng+='<BR><A href="javascript:history.go(-1) " > <FONT color="gold" size=+1> <b>[ RETORNAR ]</FONT><b></A><BR> </CENTER>'
reng+='<BR></FONT></CENTER></BODY></HTML>'

if ( VEN==0 ) {
                mundi.document.close()
                mundi.document.open();
                mundi.document.write(reng)
                mundi.document.close()
               }
          else  {
                mundi.busc.document.close()
                mundi.busc.document.open();
                mundi.busc.document.write(reng)
                mundi.busc.document.close()

               }
}
