/* [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','4598',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','16403',jdecode('Quem+Somos'),jdecode(''),'/16403.html','true',[],''],
	['PAGE','4682',jdecode('Cursos+'),jdecode(''),'/4682/index.html','true',[ 
		['PAGE','8102',jdecode('Cursos++%28volgende+pagina%29'),jdecode(''),'/4682/8102.html','false',[],''],
		['PAGE','97646',jdecode('Proximos+Cursos'),jdecode(''),'/4682/97646.html','true',[],''],
		['PAGE','69701',jdecode('Escola+de+Fitness'),jdecode(''),'/4682/69701.html','true',[],''],
		['PAGE','69728',jdecode('Escola+de+Terapias'),jdecode(''),'/4682/69728.html','true',[],''],
		['PAGE','69755',jdecode('Escola+de+Dan%C3%A7a'),jdecode(''),'/4682/69755.html','true',[],''],
		['PAGE','69782',jdecode('Escola+D%26%23x27%3BAqua'),jdecode(''),'/4682/69782.html','true',[],''],
		['PAGE','171044',jdecode('Escola+de+Turismo'),jdecode(''),'/4682/171044.html','true',[],''],
		['PAGE','81434',jdecode('Direitos+e+Deveres'),jdecode(''),'/4682/81434.html','true',[],'']
	],''],
	['PAGE','4655',jdecode('Equipamentos'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','47028',jdecode('FITPUMP'),jdecode(''),'/47028.html','true',[],''],
	['PAGE','79803',jdecode('FITBYKE'),jdecode(''),'/79803.html','true',[],''],
	['PAGE','70705',jdecode('Bolsa+de+Emprego'),jdecode(''),'/70705.html','true',[],''],
	['PAGE','22403',jdecode('Contacto'),jdecode(''),'/22403.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='1243CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10562';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Circulation',
				paletteFamily: 	'1243CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10562',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4682',
internalId:  'aam010in3aez105f31c10f0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8102',
internalId:  'aam010in3aez105f31c10f0',
customField: 'followUp'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '70705',
internalId:  'aam010in3aez1200517e51a',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20120112-203523'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97646',
internalId:  '',
customField: '20110902-201030'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8102',
internalId:  '',
customField: '20050826-160607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20070210-121719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16403',
internalId:  '',
customField: '20100311-010657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '171044',
internalId:  '',
customField: '20110902-201228'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69701',
internalId:  '',
customField: '20110902-201047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69728',
internalId:  '',
customField: '20080213-131053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69755',
internalId:  '',
customField: '20080213-131137'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69782',
internalId:  '',
customField: '20080213-131207'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81434',
internalId:  '',
customField: '20070425-010955'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20070126-134753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47028',
internalId:  '',
customField: '20110902-201254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79803',
internalId:  '',
customField: '20110902-201321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70705',
internalId:  '',
customField: '20090314-140835'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22403',
internalId:  '',
customField: '20071218-165438'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3AEZ';
var companyName   = 'IFAD+-+Instituto+de+Forma%C3%A7%C3%A3o';
var htmlTitle	  = 'IFAD-Instituto+de+Forma%C3%A7%C3%A3o+de+Massagem%2C+Terapias%2C+Desporto+e+Fitness';
var metaKeywords  = 'Fitness%2Cmassagem%2Cquiromassagem%2Cfisioterapia%2Creflexologia%2Costeopatia%2Cdrenagem%2Caerobica%2Cmusculacaoo%2Cpilates%2Ccardio%2Cnatacao%2Chidroginastica%2Cpump%2Ckombat%2Cspinning%2Cciclo%2Cindoor%2Cincentivos%2Cformacao%2Cprofissional%2Ce-learning%2Ccursos%2Cdistancia%2CFaro%2CPorto%2CAlgarve%2CPortugal%2COrthos.';
var metaContents  = 'Cursos+Tecnico+Profissionais+na+area+da+Saude+e+Fitness%2CEscola+de+Massagem+e+Terapias%2CEscola+de+Danca%2CEscola+de+Fitness%2CEscola+de+Instrutores%2CEscola+de+Actividades+Aquaticas%2CEscola+de+Gestao%2CEscola+Nautica%2CCursos+de+Pos+Graduacao%2CMasters.';
					                                                                    
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 */					                                                            

