/* [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','4478',jdecode('Alquiler+de+Burros'),jdecode(''),'/4478/index.html','true',[ 
		['PAGE','30801',jdecode('El+Camino+de+Santiago'),jdecode(''),'/4478/30801.html','true',[],''],
		['PAGE','30828',jdecode('Fiestas+Populares'),jdecode(''),'/4478/30828.html','true',[],''],
		['PAGE','40162',jdecode('Publicidad+y+TV'),jdecode(''),'/4478/40162.html','true',[],'']
	],''],
	['PAGE','40676',jdecode('Alquiler+de+carruajes'),jdecode(''),'/40676/index.html','true',[ 
		['PAGE','99006',jdecode('Bodas'),jdecode(''),'/40676/99006.html','true',[],''],
		['PAGE','40946',jdecode('Fiestas+Populares'),jdecode(''),'/40676/40946.html','true',[],''],
		['PAGE','46569',jdecode('Publicidad+y+TV'),jdecode(''),'/40676/46569.html','true',[],''],
		['PAGE','40973',jdecode('Otros'),jdecode(''),'/40676/40973.html','true',[],'']
	],''],
	['PAGE','30882',jdecode('Solicitar+informacion'),jdecode(''),'/30882/index.html','true',[ 
		['PAGE','43132',jdecode('Solicitar+informacion+%28follow+up+page%29'),jdecode(''),'/30882/43132.html','false',[],'']
	],''],
	['PAGE','47909',jdecode('ALBUM+DE+FOTOS'),jdecode(''),'/47909/index.html','true',[ 
		['PAGE','46997',jdecode('Camino+santiago'),jdecode(''),'/47909/46997.html','true',[],''],
		['PAGE','47032',jdecode('Ferias+y+Fiestas'),jdecode(''),'/47909/47032.html','true',[],''],
		['PAGE','47067',jdecode('Burro+Peregrino'),jdecode(''),'/47909/47067.html','true',[],''],
		['PAGE','47102',jdecode('Varias'),jdecode(''),'/47909/47102.html','true',[],''],
		['PAGE','47137',jdecode('Prensa+y+TV.'),jdecode(''),'/47909/47137.html','true',[],'']
	],''],
	['PAGE','49870',jdecode('Nuestras+noticias'),jdecode(''),'/49870.html','true',[],''],
	['PAGE','106606',jdecode('El+Burro+Peregrino+en+prensa'),jdecode(''),'/106606.html','true',[],''],
	['PAGE','153681',jdecode('Nuestro+burro+Zamorano'),jdecode(''),'/153681.html','true',[],''],
	['PAGE','49404',jdecode('Calendario+2009'),jdecode(''),'/49404.html','true',[],''],
	['PAGE','49004',jdecode('Agradecimientos'),jdecode(''),'/49004.html','true',[],''],
	['PAGE','42901',jdecode('Contacto'),jdecode(''),'/42901.html','true',[],''],
	['PAGE','40216',jdecode('Enlaces'),jdecode(''),'/40216.html','true',[],''],
	['PAGE','42502',jdecode('Libro+de+visitas'),jdecode(''),'/42502/index.html','true',[ 
		['PAGE','42503',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/42502/42503.html','true',[],'']
	],''],
	['PAGE','98228',jdecode('FORO'),jdecode(''),'/98228.html','true',[],''],
	['PAGE','108104',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/108104.html','true',[],''],
	['PAGE','154481',jdecode('Mapa+de+acceso'),jdecode(''),'/154481.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='CC6600';
theSitetree.keyvisualId='1401';
theSitetree.keyvisualName='tulpen.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='286';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'CC6600',
				keyvisualId: 	'1401',
				keyvisualName: 	'tulpen.jpg',
				fontsetId: 		'233',
				graphicsetId: 	'286',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CC6600',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '42502',
internalId:  '42502aas010inx2sj',
customField: 'action=form&icq=false'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '46997',
internalId:  '1106916ec60',
customField: 'g.12ape76ph.76qfra2hjr5um.6rn80'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '42503',
internalId:  '42502aas010inx2sj',
customField: 'action=list'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '30882',
internalId:  'aas010inx2sj10c8e23d380',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '43132',
internalId:  'aas010inx2sj10c8e23d380',
customField: 'followUp'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '47032',
internalId:  '11069207bff',
customField: 'g.12ape76qq.3hohupk6tumo7.6rn80'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '47067',
internalId:  '110692380f6',
customField: 'g.12ape76qv.r1suuunkrfju.6rn80'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '47102',
internalId:  '1106925db6c',
customField: 'g.12ape76r9.264erqmun271h.6rn80'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '47137',
internalId:  '11069299e13',
customField: 'g.12ape76rk.47u67vku6msk0.6rn80'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '98228',
internalId:  'aas010inx2sj110d9b5fefd',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '154481',
internalId:  '',
customField: '20081022-155105'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '108104',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4478',
internalId:  '',
customField: '20090914-081605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49404',
internalId:  '',
customField: '20090929-125243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20070312-213252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30828',
internalId:  '',
customField: '20081022-160855'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40162',
internalId:  '',
customField: '20060721-043824'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40676',
internalId:  '',
customField: '20070701-173322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '99006',
internalId:  '',
customField: '20090103-215401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40946',
internalId:  '',
customField: '20090103-215547'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46569',
internalId:  '',
customField: '20070310-122244'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40973',
internalId:  '',
customField: '20081022-163140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30882',
internalId:  '',
customField: '20090405-162505'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43132',
internalId:  '',
customField: '20060721-005228'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47909',
internalId:  '',
customField: '20070423-172332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46997',
internalId:  '',
customField: '20070128-160222'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47032',
internalId:  '',
customField: '20070128-160401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47067',
internalId:  '',
customField: '20070128-160421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47102',
internalId:  '',
customField: '20070128-160444'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47137',
internalId:  '',
customField: '20070128-160551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49870',
internalId:  '',
customField: '20090902-185103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106606',
internalId:  '',
customField: '20080713-214421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49004',
internalId:  '',
customField: '20081022-155832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42901',
internalId:  '',
customField: '20070227-150517'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40216',
internalId:  '',
customField: '20090921-132802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42502',
internalId:  '',
customField: '20060720-233537'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42503',
internalId:  '',
customField: '20060720-233537'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '98228',
internalId:  '',
customField: '20070219-122317'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '154481',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108104',
internalId:  '',
customField: '20070526-213947'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4478',
internalId:  '2784608',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '153681',
internalId:  '',
customField: '20090405-161208'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010INX2SJ';
var companyName   = 'ALQUILER+DE+BURROS+++++++++++';
var htmlTitle	  = 'EL+BURRO+PEREGRINO';
var metaKeywords  = 'donkey+ane+esel+calesa+boda+burro+paseos+en+burro+CAMELLOS+cabalgata+reyes';
var metaContents  = 'alquiler+de+burros%2C+calesa+para+boda%2C+paseos+en+burro%2C+ALQUILER+DE+CAMELLOS%2C+cabalgata+de+reyes';
					                                                                    
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 */					                                                            
