/* [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','7901',jdecode('Home'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','7994',jdecode('Global+Human+France'),jdecode(''),'/7994.html','true',[],''],
	['PAGE','7973',jdecode('Formations'),jdecode(''),'/7973.html','true',[],''],
	['PAGE','301',jdecode('Parcours'),jdecode(''),'/301.html','true',[],''],
	['PAGE','8401',jdecode('Global+Human+Italia'),jdecode(''),'/8401.html','true',[],''],
	['PAGE','8015',jdecode('Formazioni'),jdecode(''),'/8015.html','true',[],''],
	['PAGE','352',jdecode('Percorso'),jdecode(''),'/352.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Sober';
theSitetree.paletteFamily='EFD30E';
theSitetree.keyvisualId='3489';
theSitetree.keyvisualName='kv_3489.jpg';
theSitetree.fontsetId='10758';
theSitetree.graphicsetId='10786';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F1FECE';
var theTemplate={
				name: 			'Sober',
				paletteFamily: 	'EFD30E',
				keyvisualId: 	'3489',
				keyvisualName: 	'kv_3489.jpg',
				fontsetId: 		'10758',
				graphicsetId: 	'10786',
				contentColor: 	'000000',
				contentBGColor: 'F1FECE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EFD30E',
				e_color: 		'707070',
				f_color: 		'979696',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20090225-122544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20100407-161432'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100311-011350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7973',
internalId:  '',
customField: '20100617-171714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7994',
internalId:  '',
customField: '20100311-012409'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8015',
internalId:  '',
customField: '20100407-161114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20100615-143634'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '7901',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZKRM';
var companyName   = 'Barbara+Elia';
var htmlTitle	  = 'Global+Human+System+of+Devlopement';
var metaKeywords  = 'Barbara+Elia%2C+referenziale+di+nascita%2C+danza%2C+massaggio%2C+tarocchi%2C+filosofia%2C+cristalli%2C+suono%2C+meditazione%2C+spettacoli%2C+storia+danza%2C+pedagogia%2C+cammino%2C+anima%2C+sviluppo+personale%2C+universit%C3%A0';
var metaContents  = 'Global+human+system+of+devlopment+Barbara+ELIA';
					                                                                    
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 */					                                                            
