/* [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('P%C3%81GINA+INICIAL'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','154712',jdecode('NOT%C3%8DCIAS'),jdecode(''),'/401/154712.html','true',[],''],
		['PAGE','50801',jdecode('EVENTOS'),jdecode(''),'/401/50801.html','true',[],''],
		['PAGE','70201',jdecode('A+origem+dos+saloios'),jdecode(''),'/401/70201.html','true',[],''],
		['PAGE','80101',jdecode('Legisla%C3%A7%C3%A3o'),jdecode(''),'/401/80101.html','true',[],''],
		['PAGE','166312',jdecode('ATITUDES+%21'),jdecode(''),'/401/166312.html','true',[],'']
	],''],
	['PAGE','2801',jdecode('O+CLUBE'),jdecode(''),'/2801/index.html','true',[ 
		['PAGE','7943',jdecode('Historia'),jdecode(''),'/2801/7943.html','true',[],''],
		['PAGE','7964',jdecode('Fundadores'),jdecode(''),'/2801/7964.html','true',[],''],
		['PAGE','7985',jdecode('Estatutos'),jdecode(''),'/2801/7985.html','true',[],''],
		['PAGE','8006',jdecode('Regulamentos+Internos'),jdecode(''),'/2801/8006.html','true',[],''],
		['PAGE','41022',jdecode('Comunicados'),jdecode(''),'/2801/41022.html','true',[],''],
		['PAGE','68701',jdecode('Mensagens'),jdecode(''),'/2801/68701.html','true',[],''],
		['PAGE','113401',jdecode('CICLOTURISMO'),jdecode(''),'/2801/113401.html','true',[],''],
		['PAGE','115401',jdecode('Eventos'),jdecode(''),'/2801/115401.html','true',[],''],
		['PAGE','243212',jdecode('PROTOCOLOS'),jdecode(''),'/2801/243212.html','true',[],''],
		['PAGE','169312',jdecode('ENCONTROS+CAS'),jdecode(''),'/2801/169312.html','true',[],''],
		['PAGE','8069',jdecode('%C3%81REAS+SERVI%C3%87O'),jdecode(''),'/2801/8069.html','true',[],'']
	],''],
	['PAGE','8027',jdecode('%C3%93RG%C3%83OS+SOCIAIS'),jdecode(''),'/8027.html','true',[],''],
	['PAGE','76901',jdecode('GALERIA'),jdecode(''),'/76901/index.html','true',[ 
		['PAGE','7901',jdecode('RELATOS+DE+VIAGEM'),jdecode(''),'/76901/7901.html','true',[],''],
		['PAGE','179112',jdecode('II%C2%AA+Assembleia+Geral+do+CAS'),jdecode(''),'/76901/179112.html','true',[],''],
		['PAGE','144912',jdecode('IV%C2%BA+GESTO+ECOSOLID%C3%81RIO'),jdecode(''),'/76901/144912.html','true',[],''],
		['PAGE','176212',jdecode('I%C2%BA+Encontro+CAS+...foi+bonita+a+festa+p%C3%A1...'),jdecode(''),'/76901/176212.html','true',[],''],
		['PAGE','109201',jdecode('I%C2%BA+Encontro+CAS+%C3%81lbum+Fusta'),jdecode(''),'/76901/109201.html','true',[],''],
		['PAGE','100401',jdecode('I%C2%BA+Encontro+CAS'),jdecode(''),'/76901/100401.html','true',[],''],
		['PAGE','64201',jdecode('I%C2%AA+Assembleia+Geral+do+CAS'),jdecode(''),'/76901/64201.html','true',[],''],
		['PAGE','76101',jdecode('II%C2%BA+Encontro+Grupo+Autocaravanista+Saloio++++'),jdecode(''),'/76901/76101.html','true',[],'']
	],''],
	['PAGE','118701',jdecode('LOJA+VIRTUAL'),jdecode(''),'/118701.html','true',[],''],
	['PAGE','7922',jdecode('LINK%26%23x27%3BS+%C3%9ATEIS'),jdecode(''),'/7922.html','true',[],''],
	['PAGE','2001',jdecode('CONTACTO'),jdecode(''),'/2001.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='414E8C';
theSitetree.keyvisualId='8166';
theSitetree.keyvisualName='kv_8166.jpg';
theSitetree.fontsetId='17012';
theSitetree.graphicsetId='12397';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='414E8C';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'414E8C',
				keyvisualId: 	'8166',
				keyvisualName: 	'kv_8166.jpg',
				fontsetId: 		'17012',
				graphicsetId: 	'12397',
				contentColor: 	'FFFFFF',
				contentBGColor: '414E8C',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100903-183812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144912',
internalId:  '',
customField: '20100418-162505'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100524-235839'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2001',
internalId:  '4376757',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100418-163315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20100418-162933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100418-163154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7922',
internalId:  '',
customField: '20100804-002710'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7943',
internalId:  '',
customField: '20100418-163350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7964',
internalId:  '',
customField: '20100418-163425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7985',
internalId:  '',
customField: '20100418-163520'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20100418-163648'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8027',
internalId:  '',
customField: '20100526-132414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20100826-020929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8069',
internalId:  '',
customField: '20100902-153408'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76101',
internalId:  '',
customField: '20100418-162759'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76901',
internalId:  '',
customField: '20100418-162353'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70201',
internalId:  '',
customField: '20100429-185426'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '76101',
internalId:  '11ee76a8687',
customField: 'g.13rjm3vie.cbj818e815.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64201',
internalId:  '',
customField: '20100418-162725'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '154712',
internalId:  '',
customField: '20100814-114919'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41022',
internalId:  '',
customField: '20100601-230250'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '64201',
internalId:  '11ed50b0694',
customField: 'g.13rag8qdc.bh5d45t1sv.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80101',
internalId:  '',
customField: '20100519-121930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '100401',
internalId:  '',
customField: '20100418-162653'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '100401',
internalId:  '11fbabd2280',
customField: 'g.13utas2g5.egna288r77.0'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '109201',
internalId:  '11fd99fccfb',
customField: 'g.13vcpk8l3.7663k8fh73u.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '109201',
internalId:  '',
customField: '20100418-162620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113401',
internalId:  '',
customField: '20100418-162100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '115401',
internalId:  '',
customField: '20100217-030439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118701',
internalId:  '',
customField: '20100611-014715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '176212',
internalId:  '',
customField: '20100418-162535'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '166312',
internalId:  '',
customField: '20100418-162245'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '169312',
internalId:  '',
customField: '20100707-154049'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '179112',
internalId:  '1239b85ef5f',
customField: 'g.14ednv3aj.1a4ava83gu8g.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '179112',
internalId:  '',
customField: '20100418-162427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '243212',
internalId:  '',
customField: '20100901-155928'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ908';
var companyName   = 'CLUBE+AUTOCARAVANISTA+SALOIO';
var htmlTitle	  = 'Clube+Autocaravanista+Saloio';
var metaKeywords  = 'CAS+Autocaravanas+Clube+Saloio+Clube+Autocaravanismo+campismo+camping+auto+caravanas+motorhome+campingcar+cas';
var metaContents  = 'Clube+Autocaravanismo+Saloio++S%C3%A3o+Juli%C3%A3o+2655-020++CARVOEIRA++E-mail%3A+cas.autocaravanismo%40gmail.com++++++';
					                                                                    
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 */					                                                            
