/* [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','340300',jdecode('A+LA+UNE'),jdecode(''),'/340300.html','true',[],''],
	['PAGE','901',jdecode('Bienvenue'),jdecode(''),'/901.html','true',[],''],
	['PAGE','565696',jdecode('Mises+%C3%A0+jour'),jdecode(''),'/565696.html','true',[],''],
	['PAGE','952',jdecode('L%26%23x27%3Bassociation'),jdecode(''),'/952/index.html','true',[ 
		['PAGE','11843',jdecode('bureau-CA'),jdecode(''),'/952/11843.html','true',[],''],
		['PAGE','530096',jdecode('sa+vie+en+2010'),jdecode(''),'/952/530096.html','true',[],''],
		['PAGE','11864',jdecode('sa+vie+en+2009'),jdecode(''),'/952/11864.html','true',[],''],
		['PAGE','530117',jdecode('sa+vie+en+2008'),jdecode(''),'/952/530117.html','true',[],''],
		['PAGE','530138',jdecode('sa+vie+en+2007'),jdecode(''),'/952/530138.html','true',[],''],
		['PAGE','11801',jdecode('documentation'),jdecode(''),'/952/11801.html','true',[],''],
		['PAGE','114467',jdecode('de+A+%C3%A0+Z'),jdecode(''),'/952/114467.html','true',[],''],
		['PAGE','146178',jdecode('nos+ateliers'),jdecode(''),'/952/146178.html','true',[],'']
	],''],
	['PAGE','994',jdecode('Actualit%C3%A9s'),jdecode(''),'/994.html','true',[],''],
	['PAGE','66223',jdecode('Sites+%C3%A0+visiter'),jdecode(''),'/66223/index.html','true',[ 
		['PAGE','11885',jdecode('partenaires'),jdecode(''),'/66223/11885.html','true',[],''],
		['PAGE','17801',jdecode('recommand%C3%A9s'),jdecode(''),'/66223/17801.html','true',[],'']
	],''],
	['PAGE','201378',jdecode('Des+livres'),jdecode(''),'/201378.html','true',[],''],
	['PAGE','82745',jdecode('Des+revues'),jdecode(''),'/82745.html','true',[],''],
	['PAGE','78666',jdecode('Notes+de+lecture'),jdecode(''),'/78666.html','true',[],''],
	['PAGE','191322',jdecode('Audiovisuels'),jdecode(''),'/191322.html','true',[],''],
	['PAGE','57223',jdecode('Newsletter'),jdecode(''),'/57223.html','true',[],''],
	['PAGE','1036',jdecode('Contacts'),jdecode(''),'/1036.html','true',[],''],
	['PAGE','161078',jdecode('Archives'),jdecode(''),'/161078.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='7575CE';
theSitetree.keyvisualId='3358';
theSitetree.keyvisualName='kv_3358.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10738';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'7575CE',
				keyvisualId: 	'3358',
				keyvisualName: 	'kv_3358.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10738',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'1B1B6F',
				e_color: 		'1B1B6F',
				f_color: 		'1B1B6F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20100123-061208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '952',
internalId:  '',
customField: '20100310-163420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20100117-103108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11843',
internalId:  '',
customField: '20100120-095526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '994',
internalId:  '',
customField: '20100310-163740'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11885',
internalId:  '',
customField: '20100220-132429'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11864',
internalId:  '',
customField: '20100220-173211'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20100220-132329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1036',
internalId:  '',
customField: '20100123-061656'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1036',
internalId:  '2257191',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '114467',
internalId:  '',
customField: '20100120-101123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '530138',
internalId:  '',
customField: '20100117-103038'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57223',
internalId:  '',
customField: '20100123-061632'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '57223',
internalId:  '2733180',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66223',
internalId:  '',
customField: '20100123-061439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78666',
internalId:  '',
customField: '20100123-061548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82745',
internalId:  '',
customField: '20100123-061528'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '530096',
internalId:  '6283902',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '530096',
internalId:  '',
customField: '20100310-163648'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '530117',
internalId:  '',
customField: '20100205-155645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146178',
internalId:  '',
customField: '20100215-165947'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '994',
internalId:  '6283902',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '161078',
internalId:  '',
customField: '20100207-161917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201378',
internalId:  '',
customField: '20100310-141203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '191322',
internalId:  '',
customField: '20100123-061610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '340300',
internalId:  '',
customField: '20100307-161143'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '565696',
internalId:  '',
customField: '20100310-163405'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLSDV';
var companyName   = '';
var htmlTitle	  = 'ASIHVIF';
var metaKeywords  = 'histoire%2C+vie%2C+biographie%2C+autobiographie%2C+formation%2C+%C3%A9ducation';
var metaContents  = 'Histoires+de+vie+en+formation+et+recherche+biographique';
					                                                                    
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 */					                                                            
