/************************************************/
/*  Dades 'JavaScript' de NAVEGACIO a DINVENTS  */
/************************************************/

/*****************************************/
/* Taula multi-dimensional de informacio */
/*****************************************/
/*
    Primer nivell: 
	   * Una entrada per cada pagina a referenciar
	
	Segon nivell:
	   * Quatre dimensions
	      - Indenficadors
		  - Dades per al marc
		  - Dades per al menu
		  - Dades per al titol
		  - Dades per al cos
	
	Tercer nivell:
	   * Identificadors
	      - Idioma
	      - Seccio
		  - Apartat
		  - Ref-(erencia)
	   
	   * Dades per al marc
          - Cami del marcs MDI i fills (el mateix per a tots), des de ARREL
          - Pagina del marc
		  - Flag de 'parametres'

	   * Dades per als menu
          - Cami del menu, des del DIR del marc
          - Pagina del menu
		  - Nom del boto a activar
		  - Ancora
		  
	   * Dades per al titol
          - Cami del titol, des del DIR del marc
          - Pagina del titol
		  - Text del titol

	   * Dades per al cos
          - Cami del cos, des del DIR del marc
          - Pagina del cos

// Plantilla
//  --- v ---
  new Array 
  // (...info...)
  (
    new Array ('','','',''), //-/ identificadors
    new Array ('','.htm'), //-/ cami i pagina del marc
    new Array ('','.htm','mnu-','',''), //-/ cami i pagina del menu, nom del boto, ancora
    new Array ('','.htm',''), //-/ cami, pagina i text del titol
    new Array ('','.htm') //-/ cami i pagina del cos
  ),
// --- ^ ---

*/

/**********************************/
/* Variables globals de navegacio */
/**********************************/

var gvNavTaula = new Array
(
  new Array 
  // Portada
  (
    new Array ('CAT','POR'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-por', 'POR'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/','cos_portada.htm')
  ),

  new Array 
  // Club - Nou soci
  (
    new Array ('CAT','CLUB','NOU'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-aba-nou', 'CLUB'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/club/','cos_nou.htm')
  ),
  new Array 
  // Club - Club
  (
    new Array ('CAT','CLUB','CLUB'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-aba-clu', 'CLUB'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/club/','cos_intro.htm')
  ),
  new Array 
  // Club - Estatuts
  (
    new Array ('CAT','CLUB','EST'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-aba-est', 'CLUB'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/club/','cos_estatuts.htm')
  ),
  new Array 
  // Club - Socis
  (
    new Array ('CAT','CLUB','SOC'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-aba-soc', 'CLUB'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/club/','cos_membres.htm')
  ),
  new Array 
  // Club - Normes
  (
    new Array ('CAT','CLUB','NORM'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-aba-nor', 'CLUB'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/club/','cos_normes.htm')
  ),

  new Array 
  // Info - Contacte
  (
    new Array ('CAT','INF','CON'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-inf-con', 'INF'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/web/','cos_contacte.htm')
  ),
  new Array 
  // Info - Legal
  (
    new Array ('CAT','INF','LEG'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-inf-leg', 'INF'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/web/','cos_legal.htm')
  ),
  new Array 
  // Info - Crèdits
  (
    new Array ('CAT','INF','CRE'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_reduit.htm','mnu-inf-leg', 'INF'),
    new Array ('titol/','titol_principal.htm', ''),
    new Array ('cos/web/','cos_credits.htm')
  ),

  new Array 
  // SW - Portada
  (
    new Array ('CAT','SW','POR'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_sw.htm','mnu-sw-por', 'SW'),
    new Array ('titol/','titol_text.htm', 'Projecte SoftWare-Ababol'),
    new Array ('SWAbabol/','portada_sw.htm')
  ),
  new Array 
  // SW - Legal
  (
    new Array ('CAT','SW','LEG'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_sw.htm','mnu-inf-leg', 'WS'),
    new Array ('titol/','titol_text.htm', 'Projecte SoftWare-Ababol'),
    new Array ('cos/sw/','cos_legal.htm')
  ),


  new Array 
  // Redireccions - Iniciar
  (
    new Array ('CAT', 'INI'), 
    new Array ('./','inici.htm',0),
    new Array ('','', '', ''),
    new Array ('','',''),
    new Array ('','')
  ),
  new Array 
  // Redireccions - SW
  (
    new Array ('CAT', 'SW'), 
    new Array ('SWababol/','SWAbabol.htm',0),
    new Array ('','', '', ''),
    new Array ('','',''),
    new Array ('','')
  ),

  new Array 
  // **********************************
  // * Escombra - HA DE SER EL DARRER *
  // **********************************
  (
    new Array ('*','*','*','*'), 
    new Array ('./','ababols.htm',1),
    new Array ('menu/','menu_portada_noidioma.htm', '', ''),
    new Array ('titol/','titol_notrobat.htm',''),
    new Array ('cos/web/','notrobat.htm')
  )
)

/************************************/
/* Constants per accedir a la taula */
/************************************/

   // IDs
   var gcIDs = 0;
   var gcIDIdioma = 0, gcIDSeccio = 1, gcIDApartat = 2, gcIDRef = 3;

   // Marc
   var gcMarc = 1;
   var gcMarcCami = 0, gcMarcPag = 1, gcMarcParams = 2;
   
   // Menu
   var gcMenu = 2;
   var gcMenuCami = 0, gcMenuPag = 1, gcMenuBot = 2, gcMenuAnc = 3;

   // Titol
   var gcTitol = 3;
   var gcTitolCami = 0, gcTitolPag = 1, gcTitolText = 2;

   // Contingut
   var gcCos = 4;
   var gcCosCami = 0, gcCosPag = 1;


/**************************/
/* Variables de navegacio */
/**************************/

  // Cadena 'search'
  var gvNavCerca;
  // Parts de la 'cerca'
  var gvNavIdioma = '';
  var gvNavSeccio = '';
  var gvNavApartat = '';
  var gvNavRef = '';
  var gvNavAnch = '';

  // Entrada
  var gvNavEntrada = -1;
  
  // Relatius, per pujar
  var gvRelMarc = '';
  var gvRelTitol = '';
  var gvRelMenu = '';
  var gvRelCos = '';
  
