/* [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','452',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','494',jdecode('Introdu%C3%A7%C3%A3o'),jdecode(''),'/473/494.html','true',[],''],
		['PAGE','515',jdecode('Objectivos'),jdecode(''),'/473/515.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Penude'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','557',jdecode('Hist%C3%B3ria'),jdecode(''),'/536/557.html','true',[],''],
		['PAGE','578',jdecode('Agricultura'),jdecode(''),'/536/578.html','true',[],''],
		['PAGE','599',jdecode('Gastronomia'),jdecode(''),'/536/599.html','true',[],''],
		['PAGE','620',jdecode('Fauna'),jdecode(''),'/536/620.html','true',[],''],
		['PAGE','641',jdecode('Flora'),jdecode(''),'/536/641.html','true',[],''],
		['PAGE','662',jdecode('Animais+bravios'),jdecode(''),'/536/662.html','true',[],'']
	],''],
	['PAGE','683',jdecode('Not%C3%ADcias'),jdecode(''),'/683/index.html','true',[ 
		['PAGE','704',jdecode('%C3%9Altimas'),jdecode(''),'/683/704.html','true',[],'']
	],''],
	['PAGE','725',jdecode('Entrevistas'),jdecode(''),'/725/index.html','true',[ 
		['PAGE','746',jdecode('Institucionais'),jdecode(''),'/725/746.html','true',[],''],
		['PAGE','767',jdecode('Residentes'),jdecode(''),'/725/767.html','true',[],''],
		['PAGE','788',jdecode('Emigrantes'),jdecode(''),'/725/788.html','true',[],''],
		['PAGE','809',jdecode('Outras'),jdecode(''),'/725/809.html','true',[],'']
	],''],
	['PAGE','830',jdecode('Hist%C3%B3ria'),jdecode(''),'/830/index.html','true',[ 
		['PAGE','851',jdecode('Geral'),jdecode(''),'/830/851.html','true',[],''],
		['PAGE','872',jdecode('Concelho'),jdecode(''),'/830/872.html','true',[],''],
		['PAGE','893',jdecode('Freguesia'),jdecode(''),'/830/893.html','true',[],''],
		['PAGE','914',jdecode('Localidades'),jdecode(''),'/830/914.html','true',[],'']
	],''],
	['PAGE','935',jdecode('Festas+e+Romarias'),jdecode(''),'/935/index.html','true',[ 
		['PAGE','956',jdecode('Penude'),jdecode(''),'/935/956.html','true',[],''],
		['PAGE','977',jdecode('Lamego'),jdecode(''),'/935/977.html','true',[],''],
		['PAGE','998',jdecode('Outras'),jdecode(''),'/935/998.html','true',[],'']
	],''],
	['PAGE','1019',jdecode('Associa%C3%A7%C3%B5es'),jdecode(''),'/1019/index.html','true',[ 
		['PAGE','1040',jdecode('Associa%C3%A7%C3%B5es'),jdecode(''),'/1019/1040.html','true',[],'']
	],''],
	['PAGE','1061',jdecode('Fotografias'),jdecode(''),'/1061.html','true',[],''],
	['PAGE','1082',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/1082/index.html','true',[ 
		['PAGE','1103',jdecode('Aldeia'),jdecode(''),'/1082/1103.html','true',[],''],
		['PAGE','1124',jdecode('Outras'),jdecode(''),'/1082/1124.html','true',[],'']
	],''],
	['PAGE','1145',jdecode('Liga%C3%A7%C3%B5es'),jdecode(''),'/1145.html','true',[],''],
	['PAGE','1166',jdecode('Publicidade'),jdecode(''),'/1166/index.html','true',[ 
		['PAGE','1187',jdecode('Geral'),jdecode(''),'/1166/1187.html','true',[],''],
		['PAGE','1208',jdecode('Com%C3%A9rcio'),jdecode(''),'/1166/1208.html','true',[],''],
		['PAGE','1229',jdecode('Institucional'),jdecode(''),'/1166/1229.html','true',[],'']
	],''],
	['PAGE','25601',jdecode('Arte+e+Literatura'),jdecode(''),'/25601/index.html','true',[ 
		['PAGE','25622',jdecode('Arte'),jdecode(''),'/25601/25622.html','true',[],''],
		['PAGE','25643',jdecode('Literatura'),jdecode(''),'/25601/25643.html','true',[],''],
		['PAGE','30101',jdecode('Textos'),jdecode(''),'/25601/30101.html','true',[],'']
	],''],
	['PAGE','1250',jdecode('In+Memoriam'),jdecode(''),'/1250/index.html','true',[ 
		['PAGE','1271',jdecode('In+Memoriam'),jdecode(''),'/1250/1271.html','true',[],'']
	],''],
	['PAGE','1292',jdecode('Quem+somos'),jdecode(''),'/1292/index.html','true',[ 
		['PAGE','1313',jdecode('Autor'),jdecode(''),'/1292/1313.html','true',[],''],
		['PAGE','1334',jdecode('Colaboradores'),jdecode(''),'/1292/1334.html','true',[],''],
		['PAGE','1355',jdecode('Contactos'),jdecode(''),'/1292/1355.html','true',[],'']
	],''],
	['PAGE','1376',jdecode('Contato'),jdecode(''),'/1376.html','true',[],''],
	['PAGE','1397',jdecode('Localiza%C3%A7%C3%A3o'),jdecode(''),'/1397.html','true',[],''],
	['PAGE','4006',jdecode('Livro+de+visitas'),jdecode(''),'/4006/index.html','true',[ 
		['PAGE','4001',jdecode('Entradas'),jdecode(''),'/4006/4001.html','true',[],'']
	],''],
	['PAGE','23501',jdecode('Blog'),jdecode(''),'/23501.html','true',[],''],
	['PAGE','24101',jdecode('Mapa+de+acesso'),jdecode(''),'/24101.html','true',[],'']];
var siteelementCount=54;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='BB9C60';
theSitetree.keyvisualId='2243';
theSitetree.keyvisualName='love4.jpg';
theSitetree.fontsetId='365';
theSitetree.graphicsetId='417';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='BB9C60';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'BB9C60',
				keyvisualId: 	'2243',
				keyvisualName: 	'love4.jpg',
				fontsetId: 		'365',
				graphicsetId: 	'417',
				contentColor: 	'FFFFFF',
				contentBGColor: 'BB9C60',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'BB9C60',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '452',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090724-011551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090709-000652'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090709-000714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090709-000725'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090709-000742'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090709-000753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20090709-000803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20090708-233007'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090708-233106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20090708-233144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20090708-233246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20090708-233309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20090708-233335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20090708-233423'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20090708-233450'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20090708-233511'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20090708-233540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20090708-233630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20090708-233653'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20090708-233712'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '872',
internalId:  '',
customField: '20090708-233738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '893',
internalId:  '',
customField: '20090708-233801'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '914',
internalId:  '',
customField: '20090708-233827'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '935',
internalId:  '',
customField: '20090708-232022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '956',
internalId:  '',
customField: '20090708-234016'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '977',
internalId:  '',
customField: '20090708-235046'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '998',
internalId:  '',
customField: '20090708-235421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1019',
internalId:  '',
customField: '20090708-235447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1040',
internalId:  '',
customField: '20090708-235506'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1061',
internalId:  '',
customField: '20090708-235526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1082',
internalId:  '',
customField: '20090708-235551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1103',
internalId:  '',
customField: '20090708-235614'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1124',
internalId:  '',
customField: '20090708-235700'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1145',
internalId:  '',
customField: '20090708-235732'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1166',
internalId:  '',
customField: '20090708-235805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1187',
internalId:  '',
customField: '20090708-235834'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1208',
internalId:  '',
customField: '20090708-235859'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1229',
internalId:  '',
customField: '20090708-235924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1250',
internalId:  '',
customField: '20090709-000104'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1271',
internalId:  '',
customField: '20090709-000132'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1292',
internalId:  '',
customField: '20090709-000217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1313',
internalId:  '',
customField: '20090709-000244'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1334',
internalId:  '',
customField: '20090709-000322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1355',
internalId:  '',
customField: '20090709-000420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1376',
internalId:  '',
customField: '20090709-000447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1397',
internalId:  '',
customField: '20090713-142202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20090724-000012'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '23501',
internalId:  '23501',
customField: 'language:pt;country:PT;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4006',
internalId:  '4006aam010inzax5',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4001',
internalId:  '4006aam010inzax5',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4006',
internalId:  '',
customField: '20090708-162319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4001',
internalId:  '',
customField: '20090708-162319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20090713-130954'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '24101',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20090713-140042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25622',
internalId:  '',
customField: '20090724-000037'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25643',
internalId:  '',
customField: '20090724-000108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20090724-001726'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZAX5';
var companyName   = 'Penude+e+a+Serra+de+Montemuro';
var htmlTitle	  = 'Penude+-+Lamego';
var metaKeywords  = 'penude+lamego+magueija+magueijinha+viseu+portugal+bairral+estremadouro++grandal+matancinha+ordens+outeiro+penude+de+baixo+purga%C3%A7al+quint%C3%A3+quintaes+de+baixo+quintela+sucres+telhado+pereira+lamelas';
var metaContents  = 'penude+lamego+magueija+magueijinha+viseu+portugal+bairral+estremadouro++grandal+matancinha+ordens+outeiro+penude+de+baixo+purga%C3%A7al+quint%C3%A3+quintaes+de+baixo+quintela+sucres+telhado+pereira+lamelas';
					                                                                    
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 */					                                                            
