 var ArregloEnlaces = new Array();
 var ArregloEnlacesT = new Array();
 
 var EnlacesCounter=0;
 var EnlacesCounterT=0;
 var cadena="";
 
 function abrir_cerrar(id){
  if (document.getElementById) {
	  if (document.getElementById('ano'+String(id)).innerHTML == '►') 
	                 {
				      document.getElementById('ano'+String(id)).innerHTML = '▼';
                      for(i = 0; i < ArregloEnlaces[id-1].length; i++){
                       if (document.getElementById) document.getElementById(ArregloEnlaces[id-1][i]).style.display = 'block';
                      }					  
					 } else {
					  document.getElementById('ano'+String(id)).innerHTML = '►';
                      for(i = 0; i < ArregloEnlaces[id-1].length; i++){
                       if (document.getElementById) document.getElementById(ArregloEnlaces[id-1][i]).style.display = 'none';
                      }					  
					 }
  }
  
 }
 
 function actualizar_contenido(dato,cambio){
  if (cambio==1) {
                  ArregloEnlaces[EnlacesCounter] = new Array(ArregloEnlacesT.length);
				  for(i = 0; i < ArregloEnlacesT.length; i++){
                   ArregloEnlaces[EnlacesCounter][i] = String(ArregloEnlacesT[i]);
				  }
	              ++EnlacesCounter;
				  EnlacesCounterT=0;
				  ArregloEnlacesT.length = 0;
	             }
  
  if (dato!="" && cambio==0){
   ArregloEnlacesT[EnlacesCounterT] = dato;
   ++EnlacesCounterT;
  }
  
 }