/* [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','17401',jdecode('Nuestra+casa'),jdecode(''),'/17401.html','true',[],''],
	['PAGE','54301',jdecode('Zonas+comunes'),jdecode(''),'/54301.html','true',[],''],
	['PAGE','17464',jdecode('%22La+Dehesa%22'),jdecode(''),'/17464.html','true',[],''],
	['PAGE','26843',jdecode('%22Prao+Romero%22'),jdecode(''),'/26843.html','true',[],''],
	['PAGE','58501',jdecode('El+patio'),jdecode(''),'/58501.html','true',[],''],
	['PAGE','17443',jdecode('Las+habitaciones'),jdecode(''),'/17443/index.html','true',[ 
		['PAGE','38901',jdecode('%22La+Solana%22'),jdecode(''),'/17443/38901.html','true',[],''],
		['PAGE','26101',jdecode('%22Las+Cumbres%22'),jdecode(''),'/17443/26101.html','true',[],''],
		['PAGE','26401',jdecode('%22El+Linar+de+la+Fuente%22'),jdecode(''),'/17443/26401.html','true',[],''],
		['PAGE','26422',jdecode('%22Los+Casta%C3%B1os%22'),jdecode(''),'/17443/26422.html','true',[],''],
		['PAGE','26443',jdecode('%22Los+Rosales%22'),jdecode(''),'/17443/26443.html','true',[],'']
	],''],
	['PAGE','44701',jdecode('Los+ba%C3%B1os'),jdecode(''),'/44701/index.html','true',[ 
		['PAGE','26864',jdecode('%22La+Fuente+Las+Eras%22'),jdecode(''),'/44701/26864.html','true',[],''],
		['PAGE','26906',jdecode('%22La+Fuente+Los+Chorros%22'),jdecode(''),'/44701/26906.html','true',[],''],
		['PAGE','26885',jdecode('%22La+Fuente+El+Vallejo%22'),jdecode(''),'/44701/26885.html','true',[],'']
	],''],
	['PAGE','31801',jdecode('Todas+las+fotos+'),jdecode(''),'/31801.html','true',[],''],
	['PAGE','62601',jdecode('Tarifas'),jdecode(''),'/62601.html','true',[],''],
	['PAGE','65714',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/65714.html','true',[],''],
	['PAGE','17506',jdecode('El+pueblo'),jdecode(''),'/17506.html','true',[],''],
	['PAGE','56101',jdecode('Actividades'),jdecode(''),'/56101.html','true',[],''],
	['PAGE','62101',jdecode('Lugares+de+inter%C3%A9s'),jdecode(''),'/62101.html','true',[],''],
	['PAGE','17590',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/17590/index.html','true',[ 
		['PAGE','63101',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/17590/63101.html','false',[],'']
	],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Vignette';
theSitetree.paletteFamily='E79E6E';
theSitetree.keyvisualId='3549';
theSitetree.keyvisualName='kv_3549.jpg';
theSitetree.fontsetId='10783';
theSitetree.graphicsetId='10833';
theSitetree.contentColor='875534';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Vignette',
				paletteFamily: 	'E79E6E',
				keyvisualId: 	'3549',
				keyvisualName: 	'kv_3549.jpg',
				fontsetId: 		'10783',
				graphicsetId: 	'10833',
				contentColor: 	'875534',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'E79E6E',
				e_color: 		'886146',
				f_color: 		'C97556',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20081206-133723'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17506',
internalId:  '',
customField: '20081206-122732'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20081209-114931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58501',
internalId:  '',
customField: '20081204-130418'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20081209-123022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26885',
internalId:  '',
customField: '20081209-122602'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20081209-122000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62601',
internalId:  '',
customField: '20081209-120630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26843',
internalId:  '',
customField: '20081202-131125'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17590',
internalId:  '',
customField: '20081206-133255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17443',
internalId:  '',
customField: '20081209-123415'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '65714',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17464',
internalId:  '',
customField: '20081209-121729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20081209-121928'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '31801',
internalId:  '11d3e297293',
customField: 'g.13kv2r1fr.7speslpufvk.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20081209-120425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26422',
internalId:  '',
customField: '20081209-122030'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26443',
internalId:  '',
customField: '20081209-122057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20081209-121852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26864',
internalId:  '',
customField: '20081209-122206'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26906',
internalId:  '',
customField: '20081209-122612'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17590',
internalId:  'aars20invc5h11e0c47800b',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54301',
internalId:  '',
customField: '20081209-115208'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62101',
internalId:  '',
customField: '20081206-124658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20081206-134525'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '63101',
internalId:  'aars20invc5h11e0c47800b',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65714',
internalId:  '',
customField: '20081209-130634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63101',
internalId:  '',
customField: '20081206-133059'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVC5H';
var companyName   = 'Casa+Rural+con+encanto';
var htmlTitle	  = 'elcaprichodeana.es';
var metaKeywords  = 'casa+rural';
var metaContents  = '';
					                                                                    
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 */					                                                            
