/* [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('Bienvenue'),jdecode(''),'/1514.html','true',[],''],
	['PAGE','1571',jdecode('Pr%E9paration'),jdecode(''),'/1571/index.html','true',[ 
		['PAGE','20503',jdecode('pr%E9paration+technique'),jdecode(''),'/1571/20503.html','true',[],''],
		['PAGE','20530',jdecode('Etats+d%26%23x27%3B%E2me'),jdecode(''),'/1571/20530.html','true',[],'']
	],''],
	['PAGE','1652',jdecode('Carnets+de+voyage'),jdecode(''),'/1652/index.html','true',[ 
		['PAGE','1679',jdecode('Inde'),jdecode(''),'/1652/1679.html','true',[],''],
		['PAGE','1706',jdecode('Japon'),jdecode(''),'/1652/1706.html','true',[],''],
		['PAGE','1733',jdecode('Thailande%2C+Cambodge'),jdecode(''),'/1652/1733.html','true',[],''],
		['PAGE','27471',jdecode('Vietnam.+Laos%2C+Tha%EFlande'),jdecode(''),'/1652/27471.html','true',[],''],
		['PAGE','27552',jdecode('Malaisie%2C+singapour%2C+Indonesie'),jdecode(''),'/1652/27552.html','true',[],''],
		['PAGE','27633',jdecode('Australie'),jdecode(''),'/1652/27633.html','true',[],''],
		['PAGE','28403',jdecode('Nouvelle-Zelande'),jdecode(''),'/1652/28403.html','true',[],''],
		['PAGE','28430',jdecode('Guatemala%2C+Belize'),jdecode(''),'/1652/28430.html','true',[],''],
		['PAGE','28457',jdecode('Equateur'),jdecode(''),'/1652/28457.html','true',[],''],
		['PAGE','28484',jdecode('Perou%2C+Bolivie%2C'),jdecode(''),'/1652/28484.html','true',[],''],
		['PAGE','28511',jdecode('Chili'),jdecode(''),'/1652/28511.html','true',[],''],
		['PAGE','28538',jdecode('Retour+en+France'),jdecode(''),'/1652/28538.html','true',[],'']
	],''],
	['PAGE','29203',jdecode('Albums+photos'),jdecode(''),'/29203/index.html','true',[ 
		['PAGE','28902',jdecode('Inde'),jdecode(''),'/29203/28902.html','true',[],''],
		['PAGE','29302',jdecode('Japon'),jdecode(''),'/29203/29302.html','true',[],''],
		['PAGE','48402',jdecode('Thailande'),jdecode(''),'/29203/48402.html','true',[],''],
		['PAGE','60022',jdecode('++Cambodge+'),jdecode(''),'/29203/60022.html','true',[],''],
		['PAGE','60541',jdecode('Vietnam'),jdecode(''),'/29203/60541.html','true',[],''],
		['PAGE','63094',jdecode('Laos'),jdecode(''),'/29203/63094.html','true',[],''],
		['PAGE','66332',jdecode('+++Thailande+2+++'),jdecode(''),'/29203/66332.html','true',[],''],
		['PAGE','66499',jdecode('++++Malaisie'),jdecode(''),'/29203/66499.html','true',[],''],
		['PAGE','69022',jdecode('Indon%E9sie'),jdecode(''),'/29203/69022.html','true',[],''],
		['PAGE','72069',jdecode('Australie'),jdecode(''),'/29203/72069.html','true',[],''],
		['PAGE','74470',jdecode('Nouvelle-Z%E9lande'),jdecode(''),'/29203/74470.html','true',[],''],
		['PAGE','80230',jdecode('Etats-Unis+++Los+angeles'),jdecode(''),'/29203/80230.html','true',[],''],
		['PAGE','79870',jdecode('Guat%E9mala'),jdecode(''),'/29203/79870.html','true',[],''],
		['PAGE','79085',jdecode('Equateur'),jdecode(''),'/29203/79085.html','true',[],''],
		['PAGE','81516',jdecode('P%E9rou'),jdecode(''),'/29203/81516.html','true',[],''],
		['PAGE','85861',jdecode('Bolivie'),jdecode(''),'/29203/85861.html','true',[],''],
		['PAGE','87507',jdecode('Ile+de+P%E2ques'),jdecode(''),'/29203/87507.html','true',[],'']
	],''],
	['PAGE','92291',jdecode('Vid%E9os'),jdecode(''),'/92291.html','true',[],''],
	['PAGE','27336',jdecode('Mes+Bons+Plans'),jdecode(''),'/27336.html','true',[],''],
	['PAGE','15903',jdecode('Liens+'),jdecode(''),'/15903.html','true',[],''],
	['PAGE','89304',jdecode('Diaporama'),jdecode(''),'/89304.html','true',[],''],
	['PAGE','94491',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/94491/index.html','true',[ 
		['PAGE','94490',jdecode('Ecrire+sur+le+livre'),jdecode(''),'/94491/94490.html','true',[],'']
	],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            
