/* [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','4554',jdecode('Inicio'),jdecode(''),'/4554.html','true',[],''],
	['PAGE','13401',jdecode('Quem+somos'),jdecode(''),'/13401/index.html','true',[ 
		['PAGE','13428',jdecode('Direc%C3%A7%C3%A3o'),jdecode(''),'/13401/13428.html','true',[],''],
		['PAGE','14201',jdecode('Estatutos+'),jdecode(''),'/13401/14201.html','true',[],''],
		['PAGE','14228',jdecode('Regulamento+Interno+'),jdecode(''),'/13401/14228.html','true',[],''],
		['PAGE','14255',jdecode('Regulamento+de+Utiliza%C3%A7%C3%A3o'),jdecode(''),'/13401/14255.html','true',[],'']
	],''],
	['PAGE','25530',jdecode('Sede'),jdecode(''),'/25530.html','true',[],''],
	['PAGE','14601',jdecode('Actividades+2009'),jdecode(''),'/14601/index.html','true',[ 
		['PAGE','127501',jdecode('Cruzeiro+ao+Porto+-+Vila+do+Conde'),jdecode(''),'/14601/127501.html','true',[],''],
		['PAGE','119101',jdecode('III+Cruzeiro+Internacional'),jdecode(''),'/14601/119101.html','true',[],''],
		['PAGE','119122',jdecode('Berlengas+2009'),jdecode(''),'/14601/119122.html','true',[],''],
		['PAGE','120701',jdecode('Cruzeiro+Vila+do+Conde'),jdecode(''),'/14601/120701.html','true',[],''],
		['PAGE','120722',jdecode('19%C2%BA+Aniversario+AVELA'),jdecode(''),'/14601/120722.html','true',[],''],
		['PAGE','120743',jdecode('Cruzeiro+Douro'),jdecode(''),'/14601/120743.html','true',[],''],
		['PAGE','120764',jdecode('IX+Regata+Figueira-Aveiro+2008'),jdecode(''),'/14601/120764.html','true',[],''],
		['PAGE','120785',jdecode('4%C2%BA+Passeio+AVELA%2FACREDITAR'),jdecode(''),'/14601/120785.html','true',[],''],
		['PAGE','23403',jdecode('II+Regata+Internacional+das+Rias+Baixas+%C3%A0+Ria+de+Aveiro'),jdecode(''),'/14601/23403.html','true',[],''],
		['PAGE','18201',jdecode('Berlengas+2008'),jdecode(''),'/14601/18201.html','true',[],''],
		['PAGE','15428',jdecode('Bolsa+Tripulantes'),jdecode(''),'/14601/15428.html','true',[],'']
	],''],
	['PAGE','134401',jdecode('Actividades+2010'),jdecode(''),'/134401/index.html','true',[ 
		['PAGE','134422',jdecode('Trof%C3%A9u+RIAS+BAJAS%2FRIA+de+AVEIRO'),jdecode(''),'/134401/134422.html','true',[],''],
		['PAGE','134443',jdecode('Cruzeiro+BERLENGAS'),jdecode(''),'/134401/134443.html','true',[],''],
		['PAGE','134464',jdecode('Cruzeiro+ATL%C3%82NTICO'),jdecode(''),'/134401/134464.html','true',[],''],
		['PAGE','134485',jdecode('Trof%C3%A9u+Portos+Aveiro%2FFigueira'),jdecode(''),'/134401/134485.html','true',[],''],
		['PAGE','134506',jdecode('+Passeio+Gastron%C3%B3mico'),jdecode(''),'/134401/134506.html','true',[],''],
		['PAGE','134527',jdecode('Cruzeiro+do+AVE'),jdecode(''),'/134401/134527.html','true',[],''],
		['PAGE','134548',jdecode('Cruzeiro+dos+PORTOS+DO+NORTE'),jdecode(''),'/134401/134548.html','true',[],''],
		['PAGE','134569',jdecode('Dia+da+%C3%80VELA'),jdecode(''),'/134401/134569.html','true',[],'']
	],''],
	['PAGE','17801',jdecode('Galeria+de+Imagens'),jdecode(''),'/17801/index.html','true',[ 
		['PAGE','61501',jdecode('II+Regata+Internacional+Das+Rias+Baixas'),jdecode(''),'/17801/61501.html','true',[],''],
		['PAGE','121701',jdecode('4%C2%BA+Passeio+AVELA%2FACREDITAR'),jdecode(''),'/17801/121701.html','true',[],''],
		['PAGE','89801',jdecode('Anivers%C3%A1rio'),jdecode(''),'/17801/89801.html','true',[],''],
		['PAGE','56601',jdecode('Trofeu+ACEBA+-+Rota+da+Luz'),jdecode(''),'/17801/56601.html','true',[],''],
		['PAGE','17415',jdecode('Regata+a+Berlenga+'),jdecode(''),'/17801/17415.html','true',[],''],
		['PAGE','56301',jdecode('S%C3%A3o+Jacinto+-+%22o+inicio%22'),jdecode(''),'/17801/56301.html','true',[],'']
	],''],
	['PAGE','24203',jdecode('Links'),jdecode(''),'/24203/index.html','true',[ 
		['PAGE','14901',jdecode('Meteorologia'),jdecode(''),'/24203/14901.html','true',[],''],
		['PAGE','25503',jdecode('Hor%C3%A1rios'),jdecode(''),'/24203/25503.html','true',[],''],
		['PAGE','25557',jdecode('Transportes'),jdecode(''),'/24203/25557.html','true',[],''],
		['PAGE','60501',jdecode('O+que+dizem+os+jornais'),jdecode(''),'/24203/60501.html','true',[],'']
	],''],
	['PAGE','13482',jdecode('Contacto'),jdecode(''),'/13482.html','true',[],''],
	['PAGE','61706',jdecode('Livro+de+visitas'),jdecode(''),'/61706/index.html','true',[ 
		['PAGE','61701',jdecode('Entradas'),jdecode(''),'/61706/61701.html','true',[],'']
	],''],
	['PAGE','129301',jdecode('Blog'),jdecode(''),'/129301.html','true',[],''],
	['PAGE','133401',jdecode('Mapa+de+acesso'),jdecode(''),'/133401.html','true',[],'']];
var siteelementCount=45;
theSitetree.topTemplateName='Groove';
theSitetree.paletteFamily='E1CEA1';
theSitetree.keyvisualId='6039';
theSitetree.keyvisualName='kv_6039.jpg';
theSitetree.fontsetId='11123';
theSitetree.graphicsetId='11920';
theSitetree.contentColor='5F5F60';
theSitetree.contentBGColor='E4E4E6';
var theTemplate={
				name: 			'Groove',
				paletteFamily: 	'E1CEA1',
				keyvisualId: 	'6039',
				keyvisualName: 	'kv_6039.jpg',
				fontsetId: 		'11123',
				graphicsetId: 	'11920',
				contentColor: 	'5F5F60',
				contentBGColor: 'E4E4E6',
				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:  '133401',
internalId:  '',
customField: '20091122-155832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60501',
internalId:  '',
customField: '20080117-092246'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '17415',
internalId:  '114f146da1e',
customField: 'g.12lfvemqj.7o6p6ljnm4s03.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127501',
internalId:  '',
customField: '20090905-224428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4554',
internalId:  '',
customField: '20100401-013246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20080523-114643'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100501-215056'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20071015-142352'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13428',
internalId:  '',
customField: '20091122-002712'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20070930-185011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14228',
internalId:  '',
customField: '20070930-184324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14255',
internalId:  '',
customField: '20070930-184655'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '129301',
internalId:  '129301',
customField: 'language:pt;country:PT;'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '133401',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15428',
internalId:  '',
customField: '20080304-000158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23403',
internalId:  '',
customField: '20090415-160418'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20090415-133322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20080310-190607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17415',
internalId:  '',
customField: '20080310-190638'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89801',
internalId:  '',
customField: '20080310-190545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20080415-091010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13482',
internalId:  '',
customField: '20090906-222437'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120785',
internalId:  '',
customField: '20090415-141020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134401',
internalId:  '',
customField: '20100501-215241'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120743',
internalId:  '',
customField: '20090415-135119'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120764',
internalId:  '',
customField: '20090415-135746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120701',
internalId:  '',
customField: '20090415-134042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120722',
internalId:  '',
customField: '20090415-134231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24203',
internalId:  '',
customField: '20080407-194144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25503',
internalId:  '',
customField: '20071019-223230'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25530',
internalId:  '',
customField: '20090906-222237'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25557',
internalId:  '',
customField: '20070927-220405'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '56301',
internalId:  '115ad8b6a6f',
customField: 'g.12mmok8ud.6hoat1pa4tj.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56301',
internalId:  '',
customField: '20080310-190814'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '56601',
internalId:  '115ad924975',
customField: 'g.12mmp1o52.8l2714ttsu0.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '61501',
internalId:  '116a2022258',
customField: 'g.12qh00dsc.jppaqjjq21.0'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '89801',
internalId:  '118996509c7',
customField: 'g.132clv1lv.3ubjrskioj1.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20080523-175903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134422',
internalId:  '',
customField: '20100501-215454'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '61706',
internalId:  '61706aam010inlcx8',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '61701',
internalId:  '61706aam010inlcx8',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129301',
internalId:  '',
customField: '20090910-111522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61706',
internalId:  '',
customField: '20080228-220730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61701',
internalId:  '',
customField: '20071203-225822'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '121701',
internalId:  '',
customField: '20090415-140726'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '15428',
internalId:  '11910992',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '119122',
internalId:  '',
customField: '20090430-022420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '119101',
internalId:  '',
customField: '20090906-230218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134443',
internalId:  '',
customField: '20100501-215615'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134464',
internalId:  '',
customField: '20100501-215718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134485',
internalId:  '',
customField: '20100501-215802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134506',
internalId:  '',
customField: '20100501-215836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134527',
internalId:  '',
customField: '20100501-215904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134548',
internalId:  '',
customField: '20100501-215958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134569',
internalId:  '',
customField: '20100501-220033'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLCX8';
var companyName   = '%C3%81VELA+-+Associa%C3%A7%C3%A3o+Aveirense+de+Vela+de+Cruzeiro+';
var htmlTitle	  = 'AVELA';
var metaKeywords  = 'avela++ria+de+aveiro';
var metaContents  = 'avela++ria+de+aveiro';
					                                                                    
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 */					                                                            
