/* [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','23502',jdecode('Le+Practice'),jdecode(''),'/23502/index.html','true',[ 
		['PAGE','182162',jdecode('Vid%E9os'),jdecode(''),'/23502/182162.html','true',[],''],
		['PAGE','187162',jdecode('Sch%E9ma'),jdecode(''),'/23502/187162.html','true',[],''],
		['PAGE','80627',jdecode('Avantages'),jdecode(''),'/23502/80627.html','true',[],''],
		['PAGE','85619',jdecode('Tarifs+2007'),jdecode(''),'/23502/85619.html','true',[],''],
		['PAGE','190462',jdecode('Communiqu%E9+de+presse'),jdecode(''),'/23502/190462.html','true',[],'']
	],''],
	['PAGE','187189',jdecode('Les+Machines'),jdecode(''),'/187189/index.html','true',[ 
		['PAGE','187216',jdecode('Vid%E9os'),jdecode(''),'/187189/187216.html','true',[],''],
		['PAGE','193862',jdecode('Le+logiciel'),jdecode(''),'/187189/193862.html','true',[],''],
		['PAGE','187243',jdecode('Sch%E9mas'),jdecode(''),'/187189/187243.html','true',[],''],
		['PAGE','187297',jdecode('Tarifs+2007'),jdecode(''),'/187189/187297.html','true',[],''],
		['PAGE','195962',jdecode('Location'),jdecode(''),'/187189/195962.html','true',[],'']
	],''],
	['PAGE','195262',jdecode('Events'),jdecode(''),'/195262.html','true',[],''],
	['PAGE','87219',jdecode('F.A.Q.'),jdecode(''),'/87219.html','true',[],''],
	['PAGE','57793',jdecode('D%E9monstration'),jdecode(''),'/57793.html','true',[],''],
	['PAGE','190962',jdecode('Recrutement'),jdecode(''),'/190962/index.html','true',[ 
		['PAGE','191062',jdecode('Recrutement+%28volgende+pagina%29'),jdecode(''),'/190962/191062.html','false',[],'']
	],''],
	['PAGE','170462',jdecode('Contacts'),jdecode(''),'/170462/index.html','true',[ 
		['PAGE','170494',jdecode('Contacts+%28volgende+pagina%29'),jdecode(''),'/170462/170494.html','false',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Neon';
					                                                                    
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 */					                                                            
