/* [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','401',jdecode('Home'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','12801',jdecode('Novedades'),jdecode(''),'/401/12801.html','true',[],''],
		['PAGE','25101',jdecode('Recomendamos'),jdecode(''),'/401/25101.html','true',[],''],
		['PAGE','12822',jdecode('B%C3%BAsquedas'),jdecode(''),'/401/12822.html','true',[],''],
		['PAGE','12906',jdecode('Pedidos'),jdecode(''),'/401/12906.html','true',[],'']
	],''],
	['PAGE','452',jdecode('Librer%C3%ADa'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','12843',jdecode('Fondo+leon%C3%A9s'),jdecode(''),'/452/12843.html','true',[],''],
		['PAGE','12864',jdecode('Oposiciones'),jdecode(''),'/452/12864.html','true',[],''],
		['PAGE','12885',jdecode('Libro+escolar'),jdecode(''),'/452/12885.html','true',[],'']
	],''],
	['PAGE','473',jdecode('Papeler%C3%ADa'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','12927',jdecode('Productos'),jdecode(''),'/473/12927.html','true',[],''],
		['PAGE','12948',jdecode('Condiciones+Generales'),jdecode(''),'/473/12948.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Ediciones'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','12969',jdecode('Pr%C3%B3ximamente'),jdecode(''),'/494/12969.html','true',[],''],
		['PAGE','24201',jdecode('Fondo+Editorial'),jdecode(''),'/494/24201.html','true',[],'']
	],''],
	['PAGE','515',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','13011',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/515/13011.html','true',[],'']
	],''],
	['PAGE','13032',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/13032.html','true',[],''],
	['PAGE','21601',jdecode('Blog'),jdecode(''),'/21601.html','true',[],''],
	['PAGE','21706',jdecode('Libro+de+visitas'),jdecode(''),'/21706/index.html','true',[ 
		['PAGE','21701',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/21706/21701.html','true',[],'']
	],''],
	['PAGE','21801',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/21801.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Liveliness';
theSitetree.paletteFamily='D78343';
theSitetree.keyvisualId='3279';
theSitetree.keyvisualName='kv_3279.jpg';
theSitetree.fontsetId='10694';
theSitetree.graphicsetId='10732';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Liveliness',
				paletteFamily: 	'D78343',
				keyvisualId: 	'3279',
				keyvisualName: 	'kv_3279.jpg',
				fontsetId: 		'10694',
				graphicsetId: 	'10732',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D78343',
				e_color: 		'BCBCBC',
				f_color: 		'737373',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['3030']={
webappId:    '3030',
documentId:  '21601',
internalId:  '21601',
customField: 'language:es;country:ES;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '21706',
internalId:  '21706aars20in3aqn',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '21701',
internalId:  '21706aars20in3aqn',
customField: 'action=list'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '21801',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20071003-233620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071003-130446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12969',
internalId:  '',
customField: '20071002-235417'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3AQN';
var companyName   = '+++LIBROS+FILAND%C3%93N';
var htmlTitle	  = 'Librer%C3%ADa+Filand%C3%B3n';
var metaKeywords  = 'Libros%2C+librer%C3%ADa%2C+isbn%2C+llibros%2C+llibrer%C3%ADa%2C+filand%C3%B3n%2C+astorga%2C+le%C3%B3n%2C+lle%C3%B3n%2C+lli%C3%B3n%2C+llengua%2C+llingua%2C+leon%C3%A9s%2C+leoneses%2C+leonesa%2C+novela%2C+poes%C3%ADa%2C+';
var metaContents  = 'Librer%C3%ADa+Filand%C3%B3n';
					                                                                    
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 */					                                                            
