/* [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('Inicio'),jdecode(''),'/401.html','true',[],''],
	['PAGE','473',jdecode('Nuestro+Restaurante'),jdecode(''),'/473.html','true',[],''],
	['PAGE','536',jdecode('Carta+de+Temporada'),jdecode(''),'/536.html','true',[],''],
	['PAGE','10901',jdecode('Nuestros+Vinos'),jdecode(''),'/10901/index.html','true',[ 
		['PAGE','557',jdecode('D.O+Campo+de+Borja'),jdecode(''),'/10901/557.html','true',[],''],
		['PAGE','10922',jdecode('Otras+Denominaciones'),jdecode(''),'/10901/10922.html','true',[],'']
	],''],
	['PAGE','578',jdecode('Men%C3%BAs+'),jdecode(''),'/578.html','true',[],''],
	['PAGE','599',jdecode('Nuestros+servicios'),jdecode(''),'/599.html','true',[],''],
	['PAGE','683',jdecode('Horario+comercial'),jdecode(''),'/683.html','true',[],''],
	['PAGE','704',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/704.html','true',[],''],
	['PAGE','725',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/725.html','true',[],''],
	['PAGE','6301',jdecode('Mapa+de+acceso'),jdecode(''),'/6301.html','true',[],''],
	['PAGE','15001',jdecode('album+del+molino'),jdecode(''),'/15001.html','true',[],''],
	['PAGE','17301',jdecode('blog+del+Molino'),jdecode(''),'/17301.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Proton';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='3537';
theSitetree.keyvisualName='kv_3537.jpg';
theSitetree.fontsetId='10446';
theSitetree.graphicsetId='10827';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Proton',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'3537',
				keyvisualName: 	'kv_3537.jpg',
				fontsetId: 		'10446',
				graphicsetId: 	'10827',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'747474',
				e_color: 		'864242',
				f_color: 		'A9A9A9',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080305-000909'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080226-170839'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10922',
internalId:  '',
customField: '20080304-231812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20080226-184456'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080624-155838'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080304-231830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080304-110807'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20090603-120034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20080305-000654'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '15001',
internalId:  '118796d56be',
customField: 'g.131sm77e4.4duolr4s5rn.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20090403-121925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20090603-115724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20080305-000753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20080418-235539'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '1838696',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '6301',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20090603-120154'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLUOE';
var companyName   = 'Bar-Restaurante+Molino+de+Berola';
var htmlTitle	  = 'Bar-Restaurante+Molino+de+Berola';
var metaKeywords  = 'restaurante%2C+asador%2C+moncayo%2C+tarazona%2C+molino+de+berola%2C+monasterio+de+veruela%2C+cartas%2C+vino+de+borja%2C+menu%2C+gastronom%C3%ADa';
var metaContents  = 'El+Molino+de+Berola+es+un+restaruante+ubicado+a+escasos+metros+del+Monasterio+de+Veruela%2C+en+Vera+de+Moncayo.++Ofrece%2C+con+un+cuidado+servicio+al+cliente%2C+toda+la+rica+Gastronom%C3%ADa+de+la+Comarca+de+Tarazona+y+el+Moncayo.';
					                                                                    
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 */					                                                            
