/* [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','4499',jdecode('Home'),jdecode(''),'/4499.html','true',[],''],
	['PAGE','4556',jdecode('Intro'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','40702',jdecode('Les+performers+confirm%E9s'),jdecode(''),'/40702/index.html','true',[ 
		['PAGE','4583',jdecode('Pennwood+Navaho+%28%E9talon%29'),jdecode(''),'/40702/4583.html','true',[],''],
		['PAGE','4664',jdecode('Kadima+Statina+%28x+Welcome+Sympatico%29'),jdecode(''),'/40702/4664.html','true',[],''],
		['PAGE','33102',jdecode('Welcome+Sympatica+%28x+Welcome+Sympatico%29'),jdecode(''),'/40702/33102.html','true',[],'']
	],''],
	['PAGE','40729',jdecode('Les+jeunes+en+formations'),jdecode(''),'/40729/index.html','true',[ 
		['PAGE','35602',jdecode('Opera+Statina+%28x+Kooihuster+Teake%29'),jdecode(''),'/40729/35602.html','true',[],''],
		['PAGE','35629',jdecode('Walker+de+la+Bouvegn%E9e+%28x+M.+Iri%29'),jdecode(''),'/40729/35629.html','true',[],''],
		['PAGE','38402',jdecode('Primerose+du+Parc+%28x+First+de+Launay%29'),jdecode(''),'/40729/38402.html','true',[],''],
		['PAGE','4637',jdecode('Brockabye+Michigan+%28WelshB%29'),jdecode(''),'/40729/4637.html','true',[],'']
	],''],
	['PAGE','4610',jdecode('Poulini%E8re'),jdecode(''),'/4610.html','true',[],''],
	['PAGE','35656',jdecode('A+L%26%23x27%3B%E9levage'),jdecode(''),'/35656.html','true',[],''],
	['PAGE','38702',jdecode('Etudes'),jdecode(''),'/38702/index.html','true',[ 
		['PAGE','4691',jdecode('Les+Downland'),jdecode(''),'/38702/4691.html','true',[],''],
		['PAGE','11502',jdecode('De+l%26%23x27%3Binbreeding'),jdecode(''),'/38702/11502.html','true',[],'']
	],''],
	['PAGE','16302',jdecode('Visites+d%26%23x27%3B%E9levages'),jdecode(''),'/16302.html','true',[],''],
	['PAGE','6502',jdecode('Contact'),jdecode(''),'/6502/index.html','true',[ 
		['PAGE','22402',jdecode('contact+%28volgende+pagina%29'),jdecode(''),'/6502/22402.html','false',[],'']
	],''],
	['PAGE','9302',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/9302/index.html','true',[ 
		['PAGE','9303',jdecode('Entr%E9es'),jdecode(''),'/9302/9303.html','true',[],'']
	],'']];
var siteelementCount=21;
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 */					                                                            
