/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','4556',jdecode('La+Farmacia'),jdecode(''),'/4556/index.html','true',[ 
		['PAGE','93018',jdecode('Personal'),jdecode(''),'/4556/93018.html','true',[],''],
		['PAGE','93045',jdecode('Horario'),jdecode(''),'/4556/93045.html','true',[],''],
		['PAGE','30902',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/4556/30902.html','false',[],''],
		['PAGE','81515',jdecode('Contactos'),jdecode(''),'/4556/81515/index.html','true',[ 
			['PAGE','100266',jdecode('Contactos+%28follow+up+page%29'),jdecode(''),'/4556/81515/100266.html','false',[],'']
		],''],
		['PAGE','53617',jdecode('Localizaci%F3n%3A+Plano'),jdecode(''),'/4556/53617.html','true',[],'']
	],''],
	['PAGE','81542',jdecode('Nuestra+peque%F1a+historia'),jdecode(''),'/81542.html','true',[],''],
	['PAGE','81569',jdecode('Servicios'),jdecode(''),'/81569/index.html','true',[ 
		['PAGE','81596',jdecode('Atenci%F3n+Personalizada'),jdecode(''),'/81569/81596.html','true',[],''],
		['PAGE','88239',jdecode('Cosm%E9tica+Dermatol%F3gica'),jdecode(''),'/81569/88239.html','true',[],''],
		['PAGE','88266',jdecode('Infancia'),jdecode(''),'/81569/88266.html','true',[],''],
		['PAGE','88293',jdecode('Diet%E9tica%3A+Adelgazamiento'),jdecode(''),'/81569/88293.html','true',[],''],
		['PAGE','88320',jdecode('Ortopedia+Deportiva'),jdecode(''),'/81569/88320.html','true',[],''],
		['PAGE','88347',jdecode('Fitoterapia'),jdecode(''),'/81569/88347.html','true',[],''],
		['PAGE','88374',jdecode('Apiterapia'),jdecode(''),'/81569/88374.html','true',[],''],
		['PAGE','88401',jdecode('%D3ptica'),jdecode(''),'/81569/88401.html','true',[],''],
		['PAGE','88455',jdecode('Aromaterapia'),jdecode(''),'/81569/88455.html','true',[],''],
		['PAGE','88428',jdecode('Homeopat%EDa'),jdecode(''),'/81569/88428.html','true',[],''],
		['PAGE','88536',jdecode('Tensi%F3n+Arterial'),jdecode(''),'/81569/88536.html','true',[],''],
		['PAGE','93618',jdecode('F%F3rmulas+magistrales'),jdecode(''),'/81569/93618.html','true',[],'']
	],''],
	['PAGE','100518',jdecode('Punto+de+Salud'),jdecode(''),'/100518/index.html','true',[ 
		['PAGE','88482',jdecode('Pruebas+Anal%EDticas'),jdecode(''),'/100518/88482.html','true',[],''],
		['PAGE','88509',jdecode('Control+de+Peso'),jdecode(''),'/100518/88509.html','true',[],'']
	],''],
	['PAGE','81623',jdecode('Ofertas'),jdecode(''),'/81623.html','true',[],''],
	['PAGE','81650',jdecode('Curriculum'),jdecode(''),'/81650/index.html','true',[ 
		['PAGE','81677',jdecode('Jos%E9+M%AA+de+Jaime+Lor%E9n'),jdecode(''),'/81650/81677.html','true',[],''],
		['PAGE','88563',jdecode('Jos%E9+M%AA+de+Jaime+Ruiz'),jdecode(''),'/81650/88563.html','true',[],''],
		['PAGE','88590',jdecode('Pablo+de+Jaime+Ruiz'),jdecode(''),'/81650/88590.html','true',[],''],
		['PAGE','88617',jdecode('Pilar+de+Jaime+Ruiz'),jdecode(''),'/81650/88617.html','true',[],''],
		['PAGE','88644',jdecode('Carmen+Ruiz+Domenech'),jdecode(''),'/81650/88644.html','true',[],'']
	],''],
	['PAGE','88671',jdecode('L%EDneas+de+investigaci%F3n'),jdecode(''),'/88671.html','true',[],''],
	['PAGE','100545',jdecode('Historia+de+la+Ciencia'),jdecode(''),'/100545.html','true',[],''],
	['PAGE','100572',jdecode('Historia+de+la+Farmacia'),jdecode(''),'/100572.html','true',[],''],
	['PAGE','100599',jdecode('Historia+de+la+Apicultura'),jdecode(''),'/100599.html','true',[],''],
	['PAGE','100626',jdecode('Segorbe+y+comarca'),jdecode(''),'/100626.html','true',[],''],
	['PAGE','100653',jdecode('Calamocha+y+comarca'),jdecode(''),'/100653.html','true',[],''],
	['PAGE','81758',jdecode('Publicaciones'),jdecode(''),'/81758/index.html','true',[ 
		['PAGE','88698',jdecode('Adquisici%F3n'),jdecode(''),'/81758/88698.html','true',[],''],
		['PAGE','88725',jdecode('Antolog%EDa+de+textos'),jdecode(''),'/81758/88725.html','true',[],'']
	],''],
	['PAGE','81785',jdecode('Libros+del+Palancia'),jdecode(''),'/81785/index.html','true',[ 
		['PAGE','81839',jdecode('Adquisici%F3n'),jdecode(''),'/81785/81839.html','true',[],'']
	],''],
	['PAGE','81866',jdecode('Enlaces'),jdecode(''),'/81866.html','true',[],'']];
var siteelementCount=43;
theSitetree.topTemplateName='NewYork';
					                                                                    
theSitetree.getById = function(id, ar) {												
							if (typeof(ar) == 'undefined')                              
								ar = this;                                              
							for (var i=0; i < ar.length; i++) {                         
								if (ar[i][POS_ID] == id)                                
									return ar[i];                                       
								if (ar[i][POS_CHILDS].length > 0) {                     
									var result=this.getById(id, ar[i][POS_CHILDS]);     
									if (result != null)                                 
										return result;                                  
								}									                    
							}                                                           
							return null;                                                
					  };                                                                
					                                                                    
theSitetree.getParentById = function(id, ar) {											
						if (typeof(ar) == 'undefined')                              	
							ar = this;                                             		
						for (var i=0; i < ar.length; i++) {                        		
							for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {   		
								if (ar[i][POS_CHILDS][j][POS_ID] == id) {          		
									// child found                                 		
									return ar[i];                                  		
								}                                                  		
								var result=this.getParentById(id, ar[i][POS_CHILDS]);   
								if (result != null)                                 	
									return result;                                  	
							}                                                       	
						}                                                           	
						return null;                                                	
					 }								                                    
					                                                                    
theSitetree.getName = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
theSitetree.getNavigationText = function(id) {                                          
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAVIGATIONTEXT];                            
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getHREF = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_HREF];                                      
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getIsNavigation = function(id) {                                            
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_ISNAVIGATION];                              
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getTemplateName = function(id, lastTemplateName, ar) {             		 
	                                                                                 
	if (typeof(lastTemplateName) == 'undefined')                                     
		lastTemplateName = this.topTemplateName;	                                 
	if (typeof(ar) == 'undefined')                                                   
		ar = this;                                                                   
		                                                                             
	for (var i=0; i < ar.length; i++) {                                              
		var actTemplateName = ar[i][POS_TEMPLATENAME];                               
		                                                                             
		if (actTemplateName == '')                                                   
			actTemplateName = lastTemplateName;		                                 
		                                                                             
		if (ar[i][POS_ID] == id) {                                			         
			return actTemplateName;                                                  
		}	                                                                         
		                                                                             
		if (ar[i][POS_CHILDS].length > 0) {                                          
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); 
			if (result != null)                                                      
				return result;                                                       
		}									                                         
	}                                                                                
	return null;                                                                     
	};                                                                               
/* EOF */					                                                            
