/* [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('EL+RESTAURANTE'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('LA+COCINA'),jdecode(''),'/652.html','true',[],''],
	['PAGE','673',jdecode('LAS+RESERVAS'),jdecode(''),'/673/index.html','true',[ 
		['PAGE','10212',jdecode('LOS+SERVICIOS+%28follow+up+page%29'),jdecode(''),'/673/10212.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='AF8F56';
theSitetree.keyvisualId='3367';
theSitetree.keyvisualName='kv_3367.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10740';
theSitetree.contentColor='806638';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'AF8F56',
				keyvisualId: 	'3367',
				keyvisualName: 	'kv_3367.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10740',
				contentColor: 	'806638',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'47320C',
				e_color: 		'47320C',
				f_color: 		'47320C',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20080922-105143'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20080922-105908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20080730-130509'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '673',
internalId:  'aars20in3dxo116204ff765',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10212',
internalId:  'aars20in3dxo116204ff765',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10212',
internalId:  '',
customField: '20071108-183020'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3DXO';
var companyName   = 'TRADICIONES+Y+COSTUMBRES';
var htmlTitle	  = 'Restaurante+Pazo+Lagar';
var metaKeywords  = 'restaurante%2C+pazo+lagar%2C+gastronom%C3%ADa%2C+vilaxoan%2C+vilagarcia%2C+pazos%2C+comer%2C+cenar%2C+xantar%2C+coci%C3%B1a%2C+cocina%2C+tradicional%2C+clasica%2C+comida%2C+vinos%2C+mariscos%2C+pescados%2C+men%C3%BA%2C+villajuan%2C+villagarcia%2C+%2C+salnes%2C+arousa%2C+comer+bien%2C+Galicia%2C+turismo%2C+chef%2C+encanto%2C+placer%2C+rias+baixas%2C+albari%C3%B1o%2Ccelebraciones%2C+bautizos%2C+comedor%2C+cenas';
var metaContents  = 'Restaurante+Pazo+Lagar+ocupa+la+parte+baja+del+Pazo+de+Sobr%C3%A1n%2C+situado+en+Vilaxo%C3%A1n%2C+Vilagarc%C3%ADa%2C+realiza+una+cocina+gallega+tradicional+evolucionada+para+adaptarse+a+las+nuevas+tendencias+pero+respetando+la+materia+prima+y+ofrece+a+sus+clientes+un+local+agradable+en+el+que+degustar+una+comida+de+grato+recuerdo%2C+acompa%C3%B1ada+de+buenos+vinos+y+un+servicio+amable+y+de+calidad.';
					                                                                    
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 */					                                                            
