/* [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','4599',jdecode('PRINCIPAL'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','8212',jdecode('DESTAQUES'),jdecode(''),'/8212.html','true',[],''],
	['PAGE','92210',jdecode('Workshop+Rumba+Jun+2008'),jdecode(''),'/92210.html','true',[],''],
	['PAGE','89610',jdecode('Dia+Mundial+da+Dan%C3%A7a+2008'),jdecode(''),'/89610.html','true',[],''],
	['PAGE','55312',jdecode('Workshop+Salsa+14+Jul+07'),jdecode(''),'/55312.html','true',[],''],
	['PAGE','48412',jdecode('Dia+Mundial+da+Dan%C3%A7a+2007'),jdecode(''),'/48412.html','true',[],''],
	['PAGE','52912',jdecode('Outros+Eventos'),jdecode(''),'/52912/index.html','true',[ 
		['PAGE','62710',jdecode('Via+Latina+2007-08'),jdecode(''),'/52912/62710.html','true',[],''],
		['PAGE','68110',jdecode('Quinta+da+Sobreira+2007-08'),jdecode(''),'/52912/68110.html','true',[],'']
	],''],
	['PAGE','132010',jdecode('FOTOS'),jdecode(''),'/132010.html','true',[],''],
	['PAGE','4903',jdecode('QUEM+SOMOS'),jdecode(''),'/4903/index.html','true',[ 
		['PAGE','5303',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/4903/5303.html','true',[],''],
		['PAGE','11412',jdecode('Princ%C3%ADpios+e+metodologias'),jdecode(''),'/4903/11412.html','true',[],''],
		['PAGE','5330',jdecode('Curr%C3%ADculo+da+Escola'),jdecode(''),'/4903/5330.html','true',[],''],
		['PAGE','6630',jdecode('Professores'),jdecode(''),'/4903/6630.html','true',[],''],
		['PAGE','29512',jdecode('Curr%C3%ADculo+Jonas'),jdecode(''),'/4903/29512.html','true',[],'']
	],''],
	['PAGE','5357',jdecode('MODALIDADES'),jdecode(''),'/5357/index.html','true',[ 
		['PAGE','5384',jdecode('Dan%C3%A7as+Latinas'),jdecode(''),'/5357/5384.html','true',[],''],
		['PAGE','5411',jdecode('Salsa'),jdecode(''),'/5357/5411.html','true',[],'']
	],''],
	['PAGE','7544',jdecode('NOVAS+TURMAS'),jdecode(''),'/7544/index.html','true',[ 
		['PAGE','9511',jdecode('NOVAS+TURMAS+%28volgende+pagina%29'),jdecode(''),'/7544/9511.html','false',[],'']
	],''],
	['PAGE','6603',jdecode('HORARIOS+E+LOCAIS'),jdecode(''),'/6603/index.html','true',[ 
		['PAGE','37611',jdecode('Fotos+dos+Locais'),jdecode(''),'/6603/37611.html','true',[],'']
	],''],
	['PAGE','12912',jdecode('GRUPO+DE+DAN%C3%87A'),jdecode(''),'/12912/index.html','true',[ 
		['PAGE','27143',jdecode('GRUPO+DE+DAN%C3%87A+%28volgende+pagina%29'),jdecode(''),'/12912/27143.html','false',[],'']
	],''],
	['PAGE','30612',jdecode('CURSOS+E+WORKSHOPS'),jdecode(''),'/30612.html','true',[],''],
	['PAGE','26212',jdecode('FESTAS'),jdecode(''),'/26212.html','true',[],''],
	['PAGE','51712',jdecode('IMPRENSA'),jdecode(''),'/51712.html','true',[],''],
	['PAGE','58715',jdecode('LIGA%C3%87%C3%95ES'),jdecode(''),'/58715.html','true',[],''],
	['PAGE','6657',jdecode('CONTACTOS'),jdecode(''),'/6657/index.html','true',[ 
		['PAGE','11911',jdecode('CONTACTOS+%28volgende+pagina%29'),jdecode(''),'/6657/11911.html','false',[],'']
	],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='339';
theSitetree.graphicsetId='391';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='990000';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'339',
				graphicsetId: 	'391',
				contentColor: 	'FFFFFF',
				contentBGColor: '990000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '8983210',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7544',
internalId:  'aam010invenp11035c2edac',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '9511',
internalId:  'aam010invenp11035c2edac',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6657',
internalId:  'aam010invenp1103ad96087',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11911',
internalId:  'aam010invenp1103ad96087',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '12912',
internalId:  'aam010invenp110643d643a',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '27143',
internalId:  'aam010invenp110643d643a',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20100302-202931'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '37611',
internalId:  '110a7899bb4',
customField: 'g.12leu0hkd.5intg8gmgfims.6rn80'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '4599',
internalId:  '110cad89a32.543a84aa',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8212',
internalId:  '',
customField: '20091207-184028'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55312',
internalId:  '',
customField: '20080218-195925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48412',
internalId:  '',
customField: '20080505-215000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52912',
internalId:  '',
customField: '20080105-013146'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20090302-012021'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5303',
internalId:  '',
customField: '20080324-195235'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11412',
internalId:  '',
customField: '20070127-023805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5330',
internalId:  '',
customField: '20080513-021743'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5357',
internalId:  '',
customField: '20090831-173534'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5384',
internalId:  '',
customField: '20080102-163500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5411',
internalId:  '',
customField: '20080102-163858'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6603',
internalId:  '',
customField: '20100305-200157'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37611',
internalId:  '',
customField: '20070209-183215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7544',
internalId:  '',
customField: '20100223-212616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9511',
internalId:  '',
customField: '20070118-161111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6630',
internalId:  '',
customField: '20091012-172753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29512',
internalId:  '',
customField: '20091225-201519'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89610',
internalId:  '',
customField: '20080828-184202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12912',
internalId:  '',
customField: '20070127-173431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27143',
internalId:  '',
customField: '20070127-164729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30612',
internalId:  '',
customField: '20080509-015048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26212',
internalId:  '',
customField: '20091012-180159'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51712',
internalId:  '',
customField: '20091001-204828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58715',
internalId:  '',
customField: '20080105-013815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6657',
internalId:  '',
customField: '20090412-170107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11911',
internalId:  '',
customField: '20070119-155349'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '62710',
internalId:  '1158233851e',
customField: 'g.12m1302lg.thpjmc44o.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62710',
internalId:  '',
customField: '20071229-053832'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '68110',
internalId:  '11721f8dbb1',
customField: 'g.12sgv033r.1kskvdoe21a.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68110',
internalId:  '',
customField: '20071229-053938'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '92210',
internalId:  '',
customField: '20080509-015924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132010',
internalId:  '',
customField: '20091012-173815'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVENP';
var companyName   = 'RITMOLATINO.pt';
var htmlTitle	  = 'RITMO+LATINO+Escola+de+Dan%C3%A7a';
var metaKeywords  = 'dancas%2Csalsa%2Cbachata%2Ckizomba%2Ccoimbra%2Cmerengue';
var metaContents  = 'Escola+de+Dancas+Afro-Latino-Americanas+-+COIMBRA+-+Salsa%2C+merengue%2C+bachata%2C+chachacha%2C+roda+de+casino%2C+kizomba%2C+kuduro';
					                                                                    
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 */					                                                            
