/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','51401',jdecode('Ofertas+y+Paquetes'),jdecode(''),'/51401.html','true',[],''],
	['PAGE','652',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/652.html','true',[],''],
	['PAGE','715',jdecode('Tarifas'),jdecode(''),'/715.html','true',[],''],
	['PAGE','25501',jdecode('Actividades+y+Ocio'),jdecode(''),'/25501.html','true',[],''],
	['PAGE','65801',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/65801.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Powering';
theSitetree.paletteFamily='FD7100';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10735';
theSitetree.graphicsetId='10570';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='808080';
var theTemplate={
				name: 			'Powering',
				paletteFamily: 	'FD7100',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10735',
				graphicsetId: 	'10570',
				contentColor: 	'FFFFFF',
				contentBGColor: '808080',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100723-173232'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20100304-213201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51401',
internalId:  '',
customField: '20100625-230213'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65801',
internalId:  '',
customField: '20100627-145930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20100719-122439'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20100719-122009'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INL2FH';
var companyName   = 'Apartamentos+Turisticos+Rurales.';
var htmlTitle	  = '+Apartamentos+Turisticos+Rurales+en+Beas+de+Segura%2C+Ja%C3%A9n.+Las+casas+de+Nani.699568365';
var metaKeywords  = 'CASAS%2C+SIERRA+DE+SEGURA%2CSIERRA+DE+CAZORLA%2C+SIERRA+DE+LAS+VILLAS%2C+NANI%2C+ALOJAMIENTO%2C+CASAS%2C+RURALES%2C+VACACIONES%2C+JA%C3%89N%2C+BEAS+DE+SEGURA%2C+ENCARNACION%2C+SIERRA%2C+dIVERSION%2C+SEGURA%2C+SAN+MARCOS%2C+TURISMO%2C+RURAL%2C+BODAS%2C+LA+VEGUILLA%2C+HOTEL%2C+AVENIDA%2C+FALLA%2C+DORMIR%2C+GRATIS%2C+BARATO%2C+BUENO%2C+BONITO%2C+PUEBLO%2C+DISFRUTAR%2C+ARROYO+DEL+OJANCO%2C+VILLANUEVA+DEL+ARZOBISPO%2C+CA%C3%91ADA+CATENA%2C+CORTIJOS+NUEVOS%2C+PANTANO+DEL+TRANCO%2C+PANTANO+GUADALMENA%2C+EL+YELMO%2C+POLIGONO+INDUSTRIAL%2C+CORNICABRAL%2C+TRABAJO%2C+DESCANSO%2C+TRANQUILIDAD%2C+FIESTA%2C+APARTAHOTEL%2C+ALBERGUE';
var metaContents  = 'CASAS%2CAPARTAMENTOS%2CSIERRA+DE+SEGURA%2C+SIERRA+DE+CAZORLA%2C+SIERRA+DE+LAS+VILLAS%2C+NANI%2C+ALOJAMIENTO%2C+RURAL%2C+JA%C3%89N%2C+BEAS+DE+SEGURA%2C+ENCARNACION%2C+CUADROS%2C+SIERRA+SEGURA%2C+SAN+MARCOS%2C+TURISMO%2C+TURISMO+RURAL%2C+BODAS%2C+LA+VEGUILLA%2C+HOTEL+AVENIDA%2C+FALLA%2C+MATERIALES+DE+CONSTRUCCION%2C+ARROYO+DEL+OJANCO%2C+VILLANUEVA+DEL+ARZOBISPO%2C+CA%C3%91ADA+CATENA%2C+CORTIJOS+NUEVOS%2C+PANTANO+DEL+TRANCO%2C+PANTANO+GUADALMENA%2C+EL+YELMO%2C+POLIGONO+INDUSTRIAL+EL+CORNICABRAL';
					                                                                    
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 */					                                                            
