/* [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('La+Granja'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','3501',jdecode('El+Lugar'),jdecode(''),'/401/3501.html','true',[],''],
		['PAGE','5401',jdecode('Agricultura'),jdecode(''),'/401/5401.html','true',[],''],
		['PAGE','5422',jdecode('Ganader%C3%ADa'),jdecode(''),'/401/5422.html','true',[],''],
		['PAGE','5443',jdecode('Fotos'),jdecode(''),'/401/5443.html','true',[],''],
		['PAGE','5464',jdecode('Rutas+Senderismo'),jdecode(''),'/401/5464.html','true',[],''],
		['PAGE','5485',jdecode('Visitas+Gratuitas'),jdecode(''),'/401/5485.html','true',[],''],
		['PAGE','6201',jdecode('Alojamientos'),jdecode(''),'/401/6201.html','true',[],''],
		['PAGE','11512',jdecode('pantu'),jdecode(''),'/401/11512.html','true',[],'']
	],''],
	['PAGE','3522',jdecode('Ecocestas'),jdecode(''),'/3522/index.html','true',[ 
		['PAGE','13412',jdecode('Nuestros+cultivos'),jdecode(''),'/3522/13412.html','true',[],''],
		['PAGE','3543',jdecode('Eco-Est%C3%A1ndar+Familiar'),jdecode(''),'/3522/3543.html','true',[],''],
		['PAGE','3585',jdecode('Eco-Single'),jdecode(''),'/3522/3585.html','true',[],''],
		['PAGE','13112',jdecode('Eco-Personalizada'),jdecode(''),'/3522/13112.html','true',[],''],
		['PAGE','5506',jdecode('Eco-En+Preparaci%C3%B3n'),jdecode(''),'/3522/5506.html','true',[],''],
		['PAGE','12812',jdecode('M%C3%A1s+Productos'),jdecode(''),'/3522/12812.html','true',[],'']
	],''],
	['PAGE','3606',jdecode('Cursos'),jdecode(''),'/3606/index.html','true',[ 
		['PAGE','5001',jdecode('Agricultura'),jdecode(''),'/3606/5001.html','true',[],''],
		['PAGE','5022',jdecode('Ganader%C3%ADa'),jdecode(''),'/3606/5022.html','true',[],''],
		['PAGE','5043',jdecode('Plantas+Medicinales'),jdecode(''),'/3606/5043.html','true',[],''],
		['PAGE','5901',jdecode('Transformados'),jdecode(''),'/3606/5901.html','true',[],''],
		['PAGE','5064',jdecode('Actividades+Gratuitas'),jdecode(''),'/3606/5064.html','true',[],'']
	],''],
	['PAGE','3648',jdecode('Varios'),jdecode(''),'/3648/index.html','true',[ 
		['PAGE','5527',jdecode('Asociaci%C3%B3n+ACCE'),jdecode(''),'/3648/5527.html','true',[],''],
		['PAGE','5548',jdecode('Grupo+Trabajo+Biodin%C3%A1mico'),jdecode(''),'/3648/5548.html','true',[],''],
		['PAGE','8912',jdecode('Noticias'),jdecode(''),'/3648/8912.html','true',[],''],
		['PAGE','8933',jdecode('Enlaces'),jdecode(''),'/3648/8933.html','true',[],''],
		['PAGE','8954',jdecode('Recetas'),jdecode(''),'/3648/8954.html','true',[],'']
	],''],
	['PAGE','3669',jdecode('Mapa-Contacto'),jdecode(''),'/3669/index.html','true',[ 
		['PAGE','12412',jdecode('Mapa'),jdecode(''),'/3669/12412.html','true',[],''],
		['PAGE','10033',jdecode('Contacto'),jdecode(''),'/3669/10033/index.html','true',[ 
			['PAGE','10412',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/3669/10033/10412.html','false',[],'']
		],''],
		['PAGE','10512',jdecode('Tu+Opini%C3%B3n'),jdecode(''),'/3669/10512/index.html','true',[ 
			['PAGE','11112',jdecode('Tu+Opini%C3%B3n+%28follow+up+page%29'),jdecode(''),'/3669/10512/11112.html','false',[],'']
		],'']
	],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Lunch';
theSitetree.paletteFamily='616E30';
theSitetree.keyvisualId='3854';
theSitetree.keyvisualName='kv_3854.jpg';
theSitetree.fontsetId='10697';
theSitetree.graphicsetId='11065';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='748928';
var theTemplate={
				name: 			'Lunch',
				paletteFamily: 	'616E30',
				keyvisualId: 	'3854',
				keyvisualName: 	'kv_3854.jpg',
				fontsetId: 		'10697',
				graphicsetId: 	'11065',
				contentColor: 	'000000',
				contentBGColor: '748928',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'616E30',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'C9D894',
				e_color: 		'C9D894',
				f_color: 		'C9D894',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091119-162441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3648',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3522',
internalId:  '',
customField: '20091120-153611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3606',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3669',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10033',
internalId:  '',
customField: '20091120-092839'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10033',
internalId:  'aars20inlosm12510b603bc',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8912',
internalId:  '',
customField: '20091120-091338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5443',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20091119-160320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3543',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3585',
internalId:  '',
customField: '20091119-154231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5506',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091119-154748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20091119-154748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20091119-154748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20091119-155809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20091119-154748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5527',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5548',
internalId:  '',
customField: '20091119-155610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10512',
internalId:  '',
customField: '20091120-094055'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10512',
internalId:  'aars20inlosm12510c10c89',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8933',
internalId:  '',
customField: '20091120-091338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8954',
internalId:  '',
customField: '20091120-091338'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11112',
internalId:  'aars20inlosm12510c10c89',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10412',
internalId:  'aars20inlosm12510b603bc',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12412',
internalId:  '',
customField: '20091120-100927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10412',
internalId:  '',
customField: '20091120-092941'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11112',
internalId:  '',
customField: '20091120-094145'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '11512',
internalId:  '12510d06697',
customField: 'g.14k8iij9c.fqned87bb.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11512',
internalId:  '',
customField: '20091120-095831'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13412',
internalId:  '',
customField: '20091120-110202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13112',
internalId:  '',
customField: '20091120-105434'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12812',
internalId:  '',
customField: '20091120-105316'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '9861778',
customField: '1501'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLOSM';
var companyName   = 'Granja+Shambhalla';
var htmlTitle	  = 'Granja+Biodin%C3%A1mica+Shambhalla';
var metaKeywords  = 'Ecocestas%2C+granja+ecologica%2C+finca+ecologica%2C+granja+biodinamica%2C+biol%C3%B3gica%2C+biodinamica%2C+agricultura+ecol%C3%B3gica%2C+ganader%C3%ADa+ecologica%2C+cursos+ecologia%2C+formaci%C3%B3n+ecologia';
var metaContents  = 'Granja+ecologica+biodinamica+dedicada+a+la+produci%C3%B3n+de+ecocestas+y+cursos+de+formaci%C3%B3n+en+agricultura+y+ganader%C3%ADa+ecol%C3%B3gica';
					                                                                    
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 */					                                                            
