/* [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','1514',jdecode('A+la+une'),jdecode(''),'/1514.html','true',[],''],
	['PAGE','47603',jdecode('Derni%E8re+minute'),jdecode(''),'/47603.html','true',[],''],
	['PAGE','18103',jdecode('Les+faits+irr%E9futables+'),jdecode(''),'/18103.html','true',[],''],
	['PAGE','8603',jdecode('Transparence'),jdecode(''),'/8603.html','true',[],''],
	['PAGE','55503',jdecode('Conf%E9d%E9ration+nationale'),jdecode(''),'/55503.html','true',[],''],
	['PAGE','51303',jdecode('Reconqu%EAte'),jdecode(''),'/51303.html','true',[],''],
	['PAGE','21703',jdecode('Les+valeurs+mutualistes+%3F'),jdecode(''),'/21703.html','true',[],''],
	['PAGE','14103',jdecode('Dissolution+du+Cr%E9dit+Mutuel+'),jdecode(''),'/14103.html','true',[],''],
	['PAGE','14403',jdecode('Annulation+de+la+cession+CIC'),jdecode(''),'/14403.html','true',[],''],
	['PAGE','14430',jdecode('L%26%23x27%3Baffaire+ERU'),jdecode(''),'/14430.html','true',[],''],
	['PAGE','14703',jdecode('Des+pratiques+usuraires+%3F'),jdecode(''),'/14703.html','true',[],''],
	['PAGE','20903',jdecode('Confusion+%E0+la+BDF'),jdecode(''),'/20903.html','true',[],''],
	['PAGE','26003',jdecode('Gestion+de+la+s%E9curit%E9+sociale+'),jdecode(''),'/26003.html','true',[],''],
	['PAGE','30103',jdecode('L%26%23x27%3Bill%E9galit%E9+de+la+Justice'),jdecode(''),'/30103.html','true',[],''],
	['PAGE','24530',jdecode('RAFFARIN'),jdecode(''),'/24530.html','true',[],''],
	['PAGE','24557',jdecode('CHIRAC'),jdecode(''),'/24557.html','true',[],''],
	['PAGE','20003',jdecode('Le+Canard+Encha%EEn%E9'),jdecode(''),'/20003.html','true',[],''],
	['PAGE','24503',jdecode('Derni%E8res+Nouvelles+d%26%23x27%3BAlsace'),jdecode(''),'/24503.html','true',[],''],
	['PAGE','45203',jdecode('Pr%E9fecture+du+Bas-Rhin'),jdecode(''),'/45203.html','true',[],''],
	['PAGE','23303',jdecode('Questions+au+gouvernement'),jdecode(''),'/23303.html','true',[],''],
	['PAGE','57303',jdecode('Reserv%E9+1'),jdecode(''),'/57303.html','true',[],''],
	['PAGE','57330',jdecode('R%E9serv%E9+2'),jdecode(''),'/57330.html','true',[],''],
	['PAGE','57357',jdecode('R%E9serv%E9+3'),jdecode(''),'/57357.html','true',[],''],
	['PAGE','57384',jdecode('R%E9serv%E9+4'),jdecode(''),'/57384.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            
