var myOffline = document.location.href.substring(0,(document.location.href.lastIndexOf("/sw_studies/l_sp/"))+17);

var myOnline = document.location.pathname.substring(0,(document.location.pathname.lastIndexOf("/sw_studies/l_sp/"))+17); 

var webname = "Studies"

var myWidthMenu = 104



function dbopc(id,nom,tit,url,pmsn,pmss,sbm) {

  this.id = id; this.nom = nom; this.url = url;

  if (tit=="") { this.tit = nom; } else { this.tit = tit; } 

  this.pmsn = pmsn; this.pmss = pmss;

  this.sbm = sbm; return this;

}

var opcmenu = new Array();

var opcsubmenu = new Array();



opcmenu[1] = new Array();

opcmenu[1][0] = new dbopc("S_vida_cont","Vida y contexto","","","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[1][1] = new dbopc("S_vida","Vida de Lúlio","","s_vida.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[1][2] = new dbopc("S_crono","Cronología","","s_crono.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[1][3] = new dbopc("S_gene","Genealogía","Genealogía de Reis de Mayorca","s_gene.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[1][4] = new dbopc("S_mapa","Mapa de las viajes","","s_mapa.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);



opcmenu[2] = new Array();

opcmenu[2][0] = new dbopc("S_investig","Investigación Luliana","Pesquisa luliana","","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[2][1] = new dbopc("S_estado_actual","Estado en curso","","s_estado_atual.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[2][2] = new dbopc("S_centros","Centros","","s_centros.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[2][3] = new dbopc("S_catalogo","Catálogo","","s_catalogo.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[2][4] = new dbopc("S_obras","Ediciones críticas","","","",",'','','','','','clLevel1a','clLevel1aover','','',0",true);

opcmenu[2][5] = new dbopc("S_abreviaturas","Abreviaturas","","s_abreviaturas.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[2][6] = new dbopc("S_moderna","Investigación moderno","","s_moderna.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);



opcsubmenu[2] = new Array();

opcsubmenu[2][4] = new Array();

opcsubmenu[2][4][1] = new dbopc("S_ec_latina","del trabajo latín","","s_ec_latina.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[2][4][2] = new dbopc("S_ec_catala","catalán","","s_ec_catala.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);





opcmenu[3] = new Array();

opcmenu[3][0] = new dbopc("S_obras","Obras de Llull","","","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[3][1] = new dbopc("S_obras_portugues","En portugués","Obras traducir para la lengua portugués","s_obras_portugues.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",true);

opcmenu[3][2] = new dbopc("S_obras_outras","En otras lenguas","Trabajos en otras lenguas","s_obras_outras.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",true);



opcsubmenu[3] = new Array();

opcsubmenu[3][1] = new Array();

opcsubmenu[3][1][1] = new dbopc("t_luisacosta","Coetânea de vida","","t_luisacosta.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][1][2] = new dbopc("t_amic","El libro del amigo ...","El libro del amigo y de Amado","t_amic.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][1][3] = new dbopc("t_lamentat","Lamentación ...","Lamentación de la filosofía","t_lamentat.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][1][4] = new dbopc("t_natal","Liber natalis ...","Liber natalis pueri parvuli Christi Jesu","t_natal.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][1][5] = new dbopc("t_bestas","Libro de las bestias","","t_bestas.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);



opcsubmenu[3][2] = new Array();

opcsubmenu[3][2][1] = new dbopc("t_gentio","Libro del pagano ...","Libro del pagano y de las tres personas sabias","t_gentio.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][2][2] = new dbopc("t_ars","Ars brevis","","t_ars.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);

opcsubmenu[3][2][3] = new dbopc("t_paris","Carta Univ.Paris","Carta para la universidad de París","t_paris.htm","",",'','','','','','clLevel2a','clLevel2aover','','',0",false);





opcmenu[4] = new Array();

opcmenu[4][0] = new dbopc("S_links","Otras webs","","s_links.htm","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);



opcmenu[5] = new Array();

opcmenu[5][0] = new dbopc("S_estudos","Selectae Philos.","Selectae Philosophicae","","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[5][1] = new dbopc("S_est_contexto","Contexto general","","s_est_contexto.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][2] = new dbopc("S_est_historia","Historia y sociedad","","s_est_historia.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][3] = new dbopc("S_est_metafisica","Metafísico","","s_est_metafisica.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][4] = new dbopc("S_est_teologia","Teología y diálogo","Teología y diálogo inter-religioso","s_est_teologia.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][5] = new dbopc("S_est_antropologia","Antropología y éticas","","s_est_antropologia.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][6] = new dbopc("S_est_conocim","Teoría de los conocimientos","","s_est_conocim.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][7] = new dbopc("S_est_fe","Fe y razón","","s_est_fe.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][8] = new dbopc("S_est_ciencia","Teoría de la ciencia","","s_est_ciencia.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][9] = new dbopc("S_est_linguistica","Lingüístico ...","Lingüística, semiótica, pragmática y filosofía de la lengua","s_est_linguistica.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][10] = new dbopc("S_est_literatura","Literatura","","s_est_literatura.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][11] = new dbopc("S_est_informatica","Ciencia informática","","s_est_informatica.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[5][12] = new dbopc("S_est_pseudo","Pseudolulismo","","s_est_pseudo.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);





opcmenu[6] = new Array();

opcmenu[6][0] = new dbopc("S_pseudo","Pseudo-lullismo","","","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[6][1] = new dbopc("S_pseudo_0","Introduction","","s_pseudo_0.htm","",",'','','','','','clLevel0a','clLevel0aover','','',0",false);

opcmenu[6][2] = new dbopc("S_pseudo_1","Properly said","Pseudo_Lullian alchemical Corpus properly said","s_pseudo_1.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[6][3] = new dbopc("S_pseudo_2","Works attributted","Works occasionally attributed to Lull","s_pseudo_2.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[6][4] = new dbopc("S_pseudo_3","Works to be exclude","Works to be excluded from the Corpus","s_pseudo_3.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[6][5] = new dbopc("S_pseudo_4","Abreviations","","s_pseudo_4.htm","",",'','','','','','clLevel1a','clLevel1aover','','',0",false);

opcmenu[7] = new Array();
opcmenu[7][0] = new dbopc("I_megaloja","Tienda","","http://www.ramonllull.net/sw_principal/l_sp/megaloja.htm","",",'','','','','','clLevel0a','clLevel0aover'",false);


// determina inx segons id

var socainx = new Array();

function buscarinx() {

  if (soca[0]=="") { //==0

    socainx[0]=0; socainx[1]=soca[1]; //socainx[0]=soca[0]; socainx[1]=soca[1];

  } else {

    for (inxi=1; inxi<opcmenu.length; inxi++) {

      if (opcmenu[inxi][0].id==soca[0]) {

	    socainx[0]=inxi;

		if (soca[1]=="") {

		  socainx[1]=0;

		} else {

  	      for (inxj=1; inxj<opcmenu[inxi].length; inxj++) {

	        if (opcmenu[inxi][inxj].id==soca[1]) {

		      socainx[1] = inxj;

		      break;

		    }

	      }

		}

	    break;  

	  }

    }

    if (soca.length==3) {

      for (inxk=1; inxk<opcsubmenu[socainx[0]][socainx[1]].length; inxk++) {

	    if (opcsubmenu[socainx[0]][socainx[1]][inxk].id==soca[2]) {

	      socainx[2]=inxk;

		  break;

	    }

	  }

    }  

  }

} 

buscarinx();



function escriumenu() {





  document.writeln('<table border="0" cellspacing="0" cellpadding="0">');

  document.writeln('  <tr>');

  document.writeln('    <td valign="top"><img src="../../comum/img/pix.gif" width="5" height="16" border="0"></td>');

    for (i=1; i<opcmenu.length; i++) {

  document.writeln('    <td>');

  document.writeln('      <ilayer id="layerMenu' + i + '">');

  document.writeln('      <div id="divMenu' + i + '"><img src="../../comum/img/pix.gif" width="' + myWidthMenu + '" height="16" alt="" border="0"></div>');

  document.writeln('      </ilayer>');

  document.writeln('    </td>');

    }

  document.writeln('    <td valign="top"><img src="../../comum/img/pix.gif" width="1" height="16" border="0"></td>');

  document.writeln('  </tr>');

  document.writeln('</table>');



}



function escriuopcio(i) {

  if (opcmenu[i][0].url=="") {

    document.write('<b>' + opcmenu[i][0].nom + '</b>');

  } else {

    document.write('<a href="' + opcmenu[i][0].url + '" class="link" title="' + opcmenu[i][0].tit + '">' + opcmenu[i][0].nom + '</a>');

  }

}



function escriufil() {

  txt1 = ''; txt2 = ''; txt3='';

  if (socainx[0]==0) {

    txt1 = soca[1];

  } else {

    txt1 = opcmenu[socainx[0]][0].tit;

    if (socainx[1]!=0) { txt2 = " > " + opcmenu[socainx[0]][socainx[1]].tit }

    if (socainx.length == 3) { txt3 = " > " + opcsubmenu[socainx[0]][socainx[1]][socainx[2]].tit; }

  }

  document.write(webname + " > " + txt1 + txt2 + txt3);

  document.title = (txt1 + txt2 + txt3);

}



function escriumapa() {

document.write('<table border="0" cellspacing="0" cellpadding="0">');

  for (j=1; j<opcmenu.length; j++) {

    if ((opcmenu[j].length-1)==0) {

document.write('  <tr>');

document.write('    <td align="right" valign="middle" class="txtmapa"><a href="' + opcmenu[j][0].url + '" class="link">' + opcmenu[j][0].nom + '</a></td>');

document.write('    <td valign="middle"><img src="../../comum/img/pix.gif" width="4" height="1"></td>');

document.write('    <td valign="middle"><img src="../../comum/img/pix.gif" width="12" height="1"></td>');

document.write('    <td>&nbsp;</td>');

document.write('  </tr>');

    } else {

      for (i=1; i<opcmenu[j].length; i++) {

	    if (opcmenu[j][i].url=="") {

	       txt = '<b>' + opcmenu[j][i].nom + '</b>';

	    } else {

	       txt = '<a href="' + opcmenu[j][i].url + '" class="link">' + opcmenu[j][i].nom + '</a>';

	    }

        img = 'm'; if (i==1) img = 't';  if (i==(opcmenu[j].length-1)) img = 'b';

document.write('  <tr>');

	    if (i==1) {

document.write('    <td align="right" valign="middle" rowspan="' + (opcmenu[j].length-1) + '" class="txtmapa">' + opcmenu[j][0].nom + '</td>');

document.write('    <td valign="middle" rowspan="' + (opcmenu[j].length-1) + '"><img src="../../comum/img/pix.gif" width="4" height="1"></td>');

document.write('    <td valign="middle" rowspan="' + (opcmenu[j].length-1) + '"><img src="../../comum/img/punt.gif" width="12" height="1"></td>');

	    }

document.write('    <td>');

	    if (opcmenu[j][i].sbm) {

document.write('      <table border="0" cellspacing="0" cellpadding="0">');

document.write('        <tr>');

		  if (img=='m' || img=='b') {

		    imgb = 'background="../../comum/img/punt_l.gif"'

		  } else { imgb = '' }

document.write('          <td ' + imgb + ' valign="bottom"><img src="../../comum/img/punt_' + img + '_s.gif" width="18" height="8"></td>');

document.write('          <td rowspan="2">');

document.write('            <table border="0" cellspacing="0" cellpadding="0">');

		  for (k=1; k<opcsubmenu[j][i].length; k++) {

		    if (opcsubmenu[j][i][k].url=="") {

		      txt2 = '<b>' + opcsubmenu[j][i][k].nom + '</b>';

		    } else {

		      txt2 = '<a href="' + opcsubmenu[j][i][k].url + '" class="link">' + opcsubmenu[j][i][k].nom + '</a>';

		    }

		    img2 = 'm'; if (k==1) img2 = 't';  if (k==(opcsubmenu[j][i].length-1)) img2 = 'b';

document.write('              <tr>');

		    if (k==1) {

document.write('                <td valign="middle" rowspan="' + (opcsubmenu[j][i].length-1) + '" class="txtmapa"><b>' + txt + '</b></td>');

document.write('                <td valign="middle" rowspan="' + (opcsubmenu[j][i].length-1) + '"><img src="../../comum/img/pix.gif" width="4" height="1"></td>');

document.write('                <td valign="middle" rowspan="' + (opcsubmenu[j][i].length-1) + '"><img src="../../comum/img/punt.gif" width="12" height="1"></td>');

		    }

document.write('                <td><img src="../../comum/img/punt_' + img2 + '.gif" width="18" height="16"></td>');

document.write('                <td valign="middle" class="txtmapa">' + txt2 + '</td>');

document.write('              </tr>');

		  }

document.write('            </table>');		

document.write('          </td>');

document.write('        </tr>');

document.write('        <tr>');

		  if (img=='m' || img=='t') {

		    imgb = 'background="../../comum/img/punt_l.gif"'

		  } else { imgb = '' }

document.write('          <td ' + imgb + ' valign="top"><img src="../../comum/img/punt_' + img + '_i.gif" width="18" height="8"></td>');

document.write('        </tr>');

document.write('      </table>');		

	    } else {

document.write('      <table border="0" cellspacing="0" cellpadding="0">');

document.write('        <tr>');

document.write('          <td><img src="../../comum/img/punt_' + img + '.gif" width="18" height="16"></td>');

document.write('          <td valign="middle" class="txtmapa"><b>' + txt + '</b></td>');

document.write('        </tr>');

document.write('      </table>');		

	    }

document.write('    </td>');

document.write('  </tr>');

      }

    }

  }

document.write('</table>');		



}

