/* [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','4597',jdecode('Accueil'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','6002',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/6002/index.html','true',[ 
		['PAGE','6029',jdecode('Notre+%E9quipe'),jdecode(''),'/6002/6029.html','true',[],''],
		['PAGE','6302',jdecode('Notre+philosophie'),jdecode(''),'/6002/6302.html','true',[],''],
		['PAGE','6329',jdecode('Notre+exp%E9rience'),jdecode(''),'/6002/6329.html','true',[],'']
	],''],
	['PAGE','6356',jdecode('Produits%2C+services'),jdecode(''),'/6356/index.html','true',[ 
		['PAGE','6383',jdecode('Gestion+'),jdecode(''),'/6356/6383.html','true',[],''],
		['PAGE','6410',jdecode('Formation'),jdecode(''),'/6356/6410.html','true',[],''],
		['PAGE','6437',jdecode('Cr%E9ation+de+site'),jdecode(''),'/6356/6437.html','true',[],''],
		['PAGE','21406',jdecode('+++++Les+risques+professionnels'),jdecode(''),'/6356/21406.html','true',[],'']
	],''],
	['PAGE','6729',jdecode('Tarifs'),jdecode(''),'/6729.html','true',[],''],
	['PAGE','6756',jdecode('Actualit%E9s'),jdecode(''),'/6756/index.html','true',[ 
		['PAGE','6783',jdecode('Nouveaut%E9s'),jdecode(''),'/6756/6783.html','true',[],''],
		['PAGE','6837',jdecode('Tableau+de+bord+et+chiffres+cles'),jdecode(''),'/6756/6837.html','true',[],''],
		['PAGE','14803',jdecode('Liens+utiles'),jdecode(''),'/6756/14803.html','true',[],''],
		['PAGE','21433',jdecode('Agenda'),jdecode(''),'/6756/21433.html','true',[],'']
	],''],
	['PAGE','6891',jdecode('Contact'),jdecode(''),'/6891/index.html','true',[ 
		['PAGE','17927',jdecode('Contact+%28Folgeseite%29'),jdecode(''),'/6891/17927.html','false',[],''],
		['PAGE','6945',jdecode('Comment+nous+trouver'),jdecode(''),'/6891/6945/index.html','true',[ 
			['PAGE','13710',jdecode('Comment+nous+trouver+%28Folgeseite%29'),jdecode(''),'/6891/6945/13710.html','false',[],'']
		],''],
		['PAGE','13373',jdecode('Adresse%2C+T%E9l%E9phone'),jdecode(''),'/6891/13373.html','true',[],'']
	],''],
	['PAGE','13092',jdecode('Acc%E8s'),jdecode(''),'/13092.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Amaze';
					                                                                    
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 */					                                                            

