/* [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','4598',jdecode('Accueil'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','47997',jdecode('Mes+expos'),jdecode(''),'/47997.html','true',[],''],
	['PAGE','68738',jdecode('Mon+atelier'),jdecode(''),'/68738.html','true',[],''],
	['PAGE','36671',jdecode('Mon+parcours'),jdecode(''),'/36671.html','true',[],''],
	['PAGE','65723',jdecode('Mes+galeries'),jdecode(''),'/65723/index.html','true',[ 
		['PAGE','31038',jdecode('Animaux'),jdecode(''),'/65723/31038.html','true',[],''],
		['PAGE','51330',jdecode('Carnaval'),jdecode(''),'/65723/51330.html','true',[],''],
		['PAGE','30957',jdecode('Portraits'),jdecode(''),'/65723/30957.html','true',[],''],
		['PAGE','30984',jdecode('Musique'),jdecode(''),'/65723/30984.html','true',[],''],
		['PAGE','41724',jdecode('Calligraphie'),jdecode(''),'/65723/41724.html','true',[],''],
		['PAGE','56847',jdecode('New+York'),jdecode(''),'/65723/56847.html','true',[],''],
		['PAGE','31011',jdecode('Nus'),jdecode(''),'/65723/31011.html','true',[],''],
		['PAGE','76803',jdecode('s%E9rie+Juda%EFca+juin+2008'),jdecode(''),'/65723/76803.html','true',[],'']
	],''],
	['PAGE','21390',jdecode('Pour+me+contacter'),jdecode(''),'/21390.html','true',[],''],
	['PAGE','66602',jdecode('Mon+livre+d%26%23x27%3Bor'),jdecode(''),'/66602/index.html','true',[ 
		['PAGE','66603',jdecode('Entr%E9es'),jdecode(''),'/66602/66603.html','true',[],'']
	],''],
	['PAGE','67703',jdecode('Mes+liens'),jdecode(''),'/67703.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Metal';
					                                                                    
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 */					                                                            
