/* [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','4599',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','22801',jdecode('Notre+auto-%E9cole'),jdecode(''),'/22801/index.html','true',[ 
		['PAGE','22855',jdecode('Nos+locaux'),jdecode(''),'/22801/22855.html','true',[],''],
		['PAGE','22882',jdecode('Nos+v%E9hicules'),jdecode(''),'/22801/22882.html','true',[],'']
	],''],
	['PAGE','4791',jdecode('Permis+auto+'),jdecode(''),'/4791/index.html','true',[ 
		['PAGE','4845',jdecode('Formule+traditionnelle'),jdecode(''),'/4791/4845.html','true',[],''],
		['PAGE','4818',jdecode('Forfait+packag%E9'),jdecode(''),'/4791/4818.html','true',[],''],
		['PAGE','4872',jdecode('Formule+acc%E9l%E9r%E9e'),jdecode(''),'/4791/4872.html','true',[],''],
		['PAGE','36803',jdecode('Dossier+d%26%23x27%3Binscription'),jdecode(''),'/4791/36803.html','true',[],'']
	],''],
	['PAGE','16184',jdecode('Annulation+de+permis'),jdecode(''),'/16184.html','true',[],''],
	['PAGE','22963',jdecode('Conduite+accompagn%E9e'),jdecode(''),'/22963/index.html','true',[ 
		['PAGE','15602',jdecode('Adresse%2C+T%E9l%E9phone+%28Folgeseite%29'),jdecode(''),'/22963/15602.html','false',[],'']
	],''],
	['PAGE','5007',jdecode('Permis+Moto+'),jdecode(''),'/5007/index.html','true',[ 
		['PAGE','16602',jdecode('Contact+%28Folgeseite%29'),jdecode(''),'/5007/16602.html','false',[],'']
	],''],
	['PAGE','16130',jdecode('+BSR'),jdecode(''),'/16130.html','true',[],''],
	['PAGE','22909',jdecode('Notre+pr%E9paration+au+code'),jdecode(''),'/22909.html','true',[],''],
	['PAGE','22990',jdecode('Nos+plus+%21%21%21'),jdecode(''),'/22990/index.html','true',[ 
		['PAGE','35551',jdecode('Rallye+p%E9dagogique'),jdecode(''),'/22990/35551.html','true',[],''],
		['PAGE','35578',jdecode('Code+en+1+week-end'),jdecode(''),'/22990/35578.html','true',[],'']
	],''],
	['PAGE','5034',jdecode('Liens'),jdecode(''),'/5034.html','true',[],''],
	['PAGE','34452',jdecode('Actualit%E9s'),jdecode(''),'/34452.html','true',[],''],
	['PAGE','39202',jdecode('Acc%E8s'),jdecode(''),'/39202.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Commander';
					                                                                    
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 */					                                                            
