/* [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('Accueil'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','28043',jdecode('Actualit%E9'),jdecode(''),'/28043.html','true',[],''],
	['PAGE','4710',jdecode('Historique'),jdecode(''),'/4710.html','true',[],''],
	['PAGE','10330',jdecode('Famille+Breguet'),jdecode(''),'/10330.html','true',[],''],
	['PAGE','11303',jdecode('A%E9rodrome'),jdecode(''),'/11303.html','true',[],''],
	['PAGE','55814',jdecode('Rues+de+DOUAI'),jdecode(''),'/55814.html','true',[],''],
	['PAGE','4683',jdecode('Les+Pilotes'),jdecode(''),'/4683.html','true',[],''],
	['PAGE','10357',jdecode('Les+Machines'),jdecode(''),'/10357.html','true',[],''],
	['PAGE','14903',jdecode('+Les+100+ans++du+Gyroplane'),jdecode(''),'/14903.html','true',[],''],
	['PAGE','58514',jdecode('Souvenirs+2007+des+100+ans+'),jdecode(''),'/58514.html','true',[],''],
	['PAGE','10384',jdecode('Galerie+photos'),jdecode(''),'/10384.html','true',[],''],
	['PAGE','25868',jdecode('Vid%E9o'),jdecode(''),'/25868.html','true',[],''],
	['PAGE','26515',jdecode('Annexes'),jdecode(''),'/26515.html','true',[],''],
	['PAGE','20654',jdecode('Livres+utiles'),jdecode(''),'/20654.html','true',[],''],
	['PAGE','4764',jdecode('Liens'),jdecode(''),'/4764.html','true',[],''],
	['PAGE','24003',jdecode('Forum'),jdecode(''),'/24003.html','true',[],''],
	['PAGE','4791',jdecode('Contact'),jdecode(''),'/4791.html','true',[],''],
	['PAGE','4737',jdecode('Vos+remarques'),jdecode(''),'/4737/index.html','true',[ 
		['PAGE','12402',jdecode('News+%28Folgeseite%29'),jdecode(''),'/4737/12402.html','false',[],'']
	],''],
	['PAGE','16703',jdecode('Remerciements'),jdecode(''),'/16703.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            

