/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','12101',jdecode('A+SERPESSOA'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','494',jdecode('Consultas'),jdecode(''),'/494.html','true',[],''],
	['PAGE','452',jdecode('Marca%C3%A7%C3%A3o+Consultas'),jdecode(''),'/452.html','true',[],''],
	['PAGE','94801',jdecode('Ced%C3%AAncia+de+Espa%C3%A7os'),jdecode(''),'/94801.html','true',[],''],
	['PAGE','96801',jdecode('Forma%C3%A7%C3%B5es+2010'),jdecode(''),'/96801.html','true',[],''],
	['PAGE','536',jdecode('Forma%C3%A7%C3%B5es+2009'),jdecode(''),'/536.html','true',[],''],
	['PAGE','33901',jdecode('Forma%C3%A7%C3%B5es+2008'),jdecode(''),'/33901/index.html','true',[ 
		['PAGE','33922',jdecode('Hipnose+Cl%C3%ADnica+Paul+Aurand'),jdecode(''),'/33901/33922.html','true',[],'']
	],''],
	['PAGE','12122',jdecode('Inscri%C3%A7%C3%A3o+Forma%C3%A7%C3%A3o+'),jdecode(''),'/12122.html','true',[],''],
	['PAGE','515',jdecode('Acordos'),jdecode(''),'/515.html','true',[],''],
	['PAGE','33543',jdecode('Contactos'),jdecode(''),'/33543.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='C6CCE6';
theSitetree.keyvisualId='2560';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='10753';
theSitetree.graphicsetId='10459';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='c6cce6';
var theTemplate={
				name: 			'Simple',
				paletteFamily: 	'C6CCE6',
				keyvisualId: 	'2560',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'10753',
				graphicsetId: 	'10459',
				contentColor: 	'000000',
				contentBGColor: 'c6cce6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'FFFFFF',
				f_color: 		'817E7E',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100604-194308'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100303-221752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090320-020430'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090415-123824'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20080713-192107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090320-015759'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '96801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '12122',
internalId:  '3194599',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100604-194549'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '452',
internalId:  '3198040',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20081223-023656'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33922',
internalId:  '',
customField: '20081223-030406'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33543',
internalId:  '',
customField: '20100401-155621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94801',
internalId:  '',
customField: '20100116-231915'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '96801',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '96801',
internalId:  '',
customField: '20100430-161957'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '96801',
internalId:  '4963501',
customField: '1501'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLEXO';
var companyName   = 'SERPESSOA';
var htmlTitle	  = 'SERPESSOA';
var metaKeywords  = 'psicologia%2C+psiquiatria%2C+terapia%2C+psicoterapia%2C+hipnose%2C+regress%C3%A3o+de+mem%C3%B3ria%2C+regress%C3%A3o%2C+forma%C3%A7%C3%A3o%2C+trauma%2C+depress%C3%A3o%2C+fobia%2C+tumor%2C+oncologia%2C+t%C3%A9cnica+peres%2C+peres%2C+j%C3%BAlio+peres%2C+transpessoal%2C+vidas+passadas%2C+paul+aurand%2C+j%C3%BAlio+peres%2C+lourdes+barbosa%2C+hans+tendam';
var metaContents  = 'Curso+Terapia+Regressiva+Vivencial+Peres%2C+por+J%C3%BAlio+Peres%2C+e+Curso+de+Hipnose+Cl%C3%ADnica%2C+por+Paul+Aurand.++Consultas+de+psicologia+e+psicoterapia%2C+regress%C3%B5es+de+mem%C3%B3ria+e+hipnose%2C+entre+outras+t%C3%A9cnicas.';
					                                                                    
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 */					                                                            
