/* [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('Inicio'),jdecode(''),'/601.html','true',[],''],
	['PAGE','5901',jdecode('Las+Habitaciones'),jdecode(''),'/5901.html','true',[],''],
	['PAGE','7534',jdecode('El+Comedor'),jdecode(''),'/7534.html','true',[],''],
	['PAGE','21434',jdecode('Para+Tapear'),jdecode(''),'/21434.html','true',[],''],
	['PAGE','22434',jdecode('%C2%BFComo+llegar%3F'),jdecode(''),'/22434.html','true',[],''],
	['PAGE','24134',jdecode('Configurar+ruta'),jdecode(''),'/24134.html','true',[],''],
	['PAGE','757',jdecode('Precios+y+servicios'),jdecode(''),'/757.html','true',[],''],
	['PAGE','736',jdecode('Nuestro+entorno'),jdecode(''),'/736.html','true',[],''],
	['PAGE','778',jdecode('Enlaces'),jdecode(''),'/778.html','true',[],''],
	['PAGE','799',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/799.html','true',[],''],
	['PAGE','5801',jdecode('Libro+de+Visitas'),jdecode(''),'/5801/index.html','true',[ 
		['PAGE','5806',jdecode('Publicar'),jdecode(''),'/5801/5806.html','true',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10743';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFBF2';
var theTemplate={
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10743',
				graphicsetId: 	'10823',
				contentColor: 	'000000',
				contentBGColor: 'FFFBF2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090813-235742'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '21434',
internalId:  '12314ffa99d',
customField: 'g.14cakkjea.f83kq2nsb8.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20090813-202020'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5806',
internalId:  '5806aars20inldb5',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5801',
internalId:  '5806aars20inldb5',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '5901',
internalId:  '12312c07871',
customField: 'g.14c9gl9ib.4mk37hs53f.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090813-203835'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22434',
internalId:  '',
customField: '20090813-235441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20090813-213126'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20090813-213111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20090911-140303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5806',
internalId:  '',
customField: '20090813-204602'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20090813-204705'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7534',
internalId:  '12313509013',
customField: 'g.14c9ott95.qs53a14lf6g.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7534',
internalId:  '',
customField: '20090813-202818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21434',
internalId:  '',
customField: '20090813-203039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24134',
internalId:  '',
customField: '20090813-225129'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '24134',
internalId:  'routing',
customField: 'es_ES'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLDB5';
var companyName   = 'C+A+S+A++++F+I+D+E+L';
var htmlTitle	  = '--+C+A+S+A+-+F+I+D+E+L+--';
var metaKeywords  = 'Casa+Fidel+alojamiento+Valdevimbre+vino+leon+casa+rural+bodegas+cuevas+restaurante+enoturismo+prieto+picudo';
var metaContents  = 'Casa+Fidel+alojamiento+Valdevimbre+vino+leon+casa+rural+bodegas+cuevas+restaurante+enoturismo+prieto+picudo';
					                                                                    
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 */					                                                            
