/* [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','4922',jdecode('CASA+ALBERTO'),jdecode(''),'/4922.html','true',[],''],
	['PAGE','12101',jdecode('Historia'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','17701',jdecode('Carta+-+Sugerencias'),jdecode(''),'/17701.html','true',[],''],
	['PAGE','17722',jdecode('Men%C3%BAs+Especiales+Grupos'),jdecode(''),'/17722/index.html','true',[ 
		['PAGE','26101',jdecode('Men%C3%BA+n%C2%BA+1'),jdecode(''),'/17722/26101.html','true',[],''],
		['PAGE','26122',jdecode('Men%C3%BA+n%C2%BA+2'),jdecode(''),'/17722/26122.html','true',[],''],
		['PAGE','26143',jdecode('Men%C3%BA+n%C2%BA+3'),jdecode(''),'/17722/26143.html','true',[],''],
		['PAGE','26164',jdecode('Men%C3%BA+Casa+Alberto'),jdecode(''),'/17722/26164.html','true',[],'']
	],''],
	['PAGE','17743',jdecode('Detalles+Interior'),jdecode(''),'/17743.html','true',[],''],
	['PAGE','17764',jdecode('Reservas+on-line'),jdecode(''),'/17764/index.html','true',[ 
		['PAGE','20901',jdecode('Reservas+on-line+%28follow+up+page%29'),jdecode(''),'/17764/20901.html','false',[],'']
	],''],
	['PAGE','17785',jdecode('Comentarios'),jdecode(''),'/17785/index.html','true',[ 
		['PAGE','21201',jdecode('Comentarios+%28follow+up+page%29'),jdecode(''),'/17785/21201.html','false',[],'']
	],''],
	['PAGE','17806',jdecode('Art%C3%ADculos+en+Medios+'),jdecode(''),'/17806.html','true',[],''],
	['PAGE','17827',jdecode('Noticias'),jdecode(''),'/17827.html','true',[],''],
	['PAGE','19901',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/19901.html','true',[],''],
	['PAGE','23706',jdecode('Libro+de+visitas'),jdecode(''),'/23706/index.html','true',[ 
		['PAGE','23701',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/23706/23701.html','true',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='650000';
theSitetree.keyvisualId='1403';
theSitetree.keyvisualName='suppenteller.jpg';
theSitetree.fontsetId='235';
theSitetree.graphicsetId='296';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'650000',
				keyvisualId: 	'1403',
				keyvisualName: 	'suppenteller.jpg',
				fontsetId: 		'235',
				graphicsetId: 	'296',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'650000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4922',
internalId:  '',
customField: '20080130-113534'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4922',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20080211-190718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17722',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '19901',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20080310-182329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17764',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17764',
internalId:  'aars20in382m11899cb27a8',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '20901',
internalId:  'aars20in382m11899cb27a8',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17743',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17785',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17785',
internalId:  'aars20in382m11899d4eb4c',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21201',
internalId:  'aars20in382m11899d4eb4c',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17827',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17806',
internalId:  '',
customField: '20080310-170057'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '23706',
internalId:  '23706aars20in382m',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '23701',
internalId:  '23706aars20in382m',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20081028-130908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23706',
internalId:  '',
customField: '20080804-163705'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20080804-163705'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26122',
internalId:  '',
customField: '20081028-130908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26143',
internalId:  '',
customField: '20081028-130908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26164',
internalId:  '',
customField: '20081028-130908'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN382M';
var companyName   = 'TABERNA+-+RESTAURANTE';
var htmlTitle	  = 'Casa+Alberto';
var metaKeywords  = '';
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 */					                                                            
