/* [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','5632',jdecode('AGENDA'),jdecode(''),'/5632.html','true',[],''],
	['PAGE','601',jdecode('A+CASA'),jdecode(''),'/601.html','true',[],''],
	['PAGE','32901',jdecode('CONCEITO'),jdecode(''),'/32901.html','true',[],''],
	['PAGE','32201',jdecode('MISS%C3%83O'),jdecode(''),'/32201.html','true',[],''],
	['PAGE','32222',jdecode('PARA+QUEM%3F'),jdecode(''),'/32222.html','true',[],''],
	['PAGE','5548',jdecode('M%C3%89TODOS'),jdecode(''),'/5548.html','true',[],''],
	['PAGE','5443',jdecode('SERVI%C3%87OS'),jdecode(''),'/5443/index.html','true',[ 
		['PAGE','5464',jdecode('CONSULTORIA'),jdecode(''),'/5443/5464.html','true',[],''],
		['PAGE','5485',jdecode('FORMA%C3%87%C3%83O'),jdecode(''),'/5443/5485.html','true',[],''],
		['PAGE','5506',jdecode('BEM+ESTAR'),jdecode(''),'/5443/5506.html','true',[],''],
		['PAGE','5527',jdecode('INFORMA%C3%87%C3%83O'),jdecode(''),'/5443/5527.html','true',[],'']
	],''],
	['PAGE','5590',jdecode('EQUIPA+DA+CASA'),jdecode(''),'/5590.html','true',[],''],
	['PAGE','5611',jdecode('AMIGOS+DA+CASA'),jdecode(''),'/5611.html','true',[],''],
	['PAGE','5653',jdecode('PROJECTOS+'),jdecode(''),'/5653/index.html','true',[ 
		['PAGE','5674',jdecode('EM+CURSO'),jdecode(''),'/5653/5674.html','true',[],''],
		['PAGE','5695',jdecode('REALIZADOS'),jdecode(''),'/5653/5695.html','true',[],'']
	],''],
	['PAGE','5758',jdecode('CONTACTOS'),jdecode(''),'/5758.html','true',[],''],
	['PAGE','17501',jdecode('Blog'),jdecode(''),'/17501.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='439';
theSitetree.graphicsetId='493';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='a1a1c6';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'439',
				graphicsetId: 	'493',
				contentColor: 	'FFFFFF',
				contentBGColor: 'a1a1c6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'a1a1c6',
				b_color: 		'666699',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20080421-220406'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '601',
internalId:  '2136210',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5758',
internalId:  '',
customField: '20080421-221939'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5653',
internalId:  '',
customField: '20080422-004221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5443',
internalId:  '',
customField: '20080422-174405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5695',
internalId:  '',
customField: '20080417-133718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5548',
internalId:  '',
customField: '20080422-172330'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5632',
internalId:  '',
customField: '20080422-001449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5506',
internalId:  '',
customField: '20080417-161449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5590',
internalId:  '',
customField: '20080417-132006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20080421-235654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20080419-215858'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5527',
internalId:  '',
customField: '20080419-221919'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5611',
internalId:  '',
customField: '20080417-174059'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '17501',
internalId:  '17501',
customField: 'language:pt;country:PT;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20080417-180002'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5674',
internalId:  '',
customField: '20080417-133154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32201',
internalId:  '',
customField: '20080422-171043'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32222',
internalId:  '',
customField: '20080422-171437'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20080422-170729'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLUXI';
var companyName   = 'CASA+DA+FELICIDADE';
var htmlTitle	  = 'www.casa-da-felicidade.org';
var metaKeywords  = 'Sustent%C3%A1vel+%2C++Educa%C3%A7%C3%A3o+integrada%2C++Coaching%2C++Open+Space+Technology%2C++Desenvolvimento+pessoal%2C++Desenvolvimento+local%2C++Bem+estar%2C++Yoga+do+riso++Massagem%2C++Consultoria+%2C+Projectos+';
var metaContents  = '';
					                                                                    
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 */					                                                            
