/* [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('Bienvenida'),jdecode(''),'/401.html','true',[],''],
	['PAGE','2522',jdecode('Alojamientos'),jdecode(''),'/2522.html','true',[],''],
	['PAGE','2543',jdecode('Restaurante'),jdecode(''),'/2543.html','true',[],''],
	['PAGE','2564',jdecode('Actividades+multiaventura'),jdecode(''),'/2564.html','true',[],''],
	['PAGE','2585',jdecode('Historia'),jdecode(''),'/2585.html','true',[],''],
	['PAGE','2606',jdecode('Enlaces'),jdecode(''),'/2606.html','true',[],''],
	['PAGE','2648',jdecode('Localizacion+y+contacto'),jdecode(''),'/2648/index.html','true',[ 
		['PAGE','3301',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/2648/3301.html','false',[],'']
	],''],
	['PAGE','9601',jdecode('Galeria+fotografica'),jdecode(''),'/9601.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Family';
theSitetree.paletteFamily='9ECDBA';
theSitetree.keyvisualId='3832';
theSitetree.keyvisualName='kv_3832.jpg';
theSitetree.fontsetId='10635';
theSitetree.graphicsetId='11020';
theSitetree.contentColor='4F4F4F';
theSitetree.contentBGColor='9ECDBA';
var theTemplate={
				name: 			'Family',
				paletteFamily: 	'9ECDBA',
				keyvisualId: 	'3832',
				keyvisualName: 	'kv_3832.jpg',
				fontsetId: 		'10635',
				graphicsetId: 	'11020',
				contentColor: 	'4F4F4F',
				contentBGColor: '9ECDBA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AEAEAF',
				e_color: 		'AEAEAF',
				f_color: 		'AEAEAF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080502-000355'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2522',
internalId:  '',
customField: '20081103-220616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2543',
internalId:  '',
customField: '20081103-201626'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2564',
internalId:  '',
customField: '20080310-002348'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2585',
internalId:  '',
customField: '20080310-002239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2606',
internalId:  '',
customField: '20080310-010301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20080310-010334'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2648',
internalId:  '',
customField: '20080310-002207'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2648',
internalId:  'aars20in3yby1180b0d47b5',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '3301',
internalId:  'aars20in3yby1180b0d47b5',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20080212-013102'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '9601',
internalId:  '11895c87045',
customField: 'g.132asapt4.o9pp3c85vg.1s'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3YBY';
var companyName   = 'CAMPING+EL+CORTIJILLO';
var htmlTitle	  = 'Camping+El+Cortijillo';
var metaKeywords  = 'alojamiento+rural%2C+camping%2C+sierra+de+castril%2C+deportes+aventura%2C+rio+castril%2C+naturaleza';
var metaContents  = 'Alojamiento+rural+y+Camping+El+Cortijillo+en+La+Sierra+de+Castril+%28Granada%29';
					                                                                    
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 */					                                                            
