/* [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','943169',jdecode('C%26%23x27%3Best+pour+bient%C3%B4t'),jdecode(''),'/943169.html','true',[],''],
	['PAGE','367071',jdecode('Bienvenue'),jdecode(''),'/367071/index.html','true',[ 
		['PAGE','1028080',jdecode('histoires+de+vie'),jdecode(''),'/367071/1028080.html','true',[],''],
		['PAGE','1028101',jdecode('ateliers+d%26%23x27%3B%C3%A9criture'),jdecode(''),'/367071/1028101.html','true',[],'']
	],''],
	['PAGE','970169',jdecode('Les+mises+%C3%A0+jour'),jdecode(''),'/970169.html','true',[],''],
	['PAGE','897769',jdecode('L%26%23x27%3Bassociation'),jdecode(''),'/897769.html','true',[],''],
	['PAGE','2801',jdecode('Mich%C3%A8le+CLEACH'),jdecode(''),'/2801/index.html','true',[ 
		['PAGE','208990',jdecode('quelques+%C3%A9crits'),jdecode(''),'/2801/208990.html','true',[],'']
	],''],
	['PAGE','998369',jdecode('Catherine+MALARD'),jdecode(''),'/998369/index.html','true',[ 
		['PAGE','1012480',jdecode('quelques+%C3%A9crits'),jdecode(''),'/998369/1012480.html','true',[],'']
	],''],
	['PAGE','931669',jdecode('Actualit%C3%A9s'),jdecode(''),'/931669.html','true',[],''],
	['PAGE','1727',jdecode('Sites+%C3%A0+visiter'),jdecode(''),'/1727.html','true',[],''],
	['PAGE','976669',jdecode('Articles+%C3%A0+lire'),jdecode(''),'/976669.html','true',[],''],
	['PAGE','166819',jdecode('Livres+%C3%A0+lire'),jdecode(''),'/166819.html','true',[],''],
	['PAGE','34305',jdecode('Revues+%C3%A0+lire'),jdecode(''),'/34305/index.html','true',[ 
		['PAGE','1108491',jdecode('lectures+2012'),jdecode(''),'/34305/1108491.html','true',[],''],
		['PAGE','665166',jdecode('lectures+2008-2011'),jdecode(''),'/34305/665166.html','true',[],'']
	],''],
	['PAGE','147319',jdecode('Jeux%2C+sons%2C+images'),jdecode(''),'/147319.html','true',[],''],
	['PAGE','1116691',jdecode('Newsletter'),jdecode(''),'/1116691/index.html','true',[ 
		['PAGE','981969',jdecode('s%26%23x27%3Binscrire'),jdecode(''),'/1116691/981969.html','true',[],'']
	],''],
	['PAGE','1781',jdecode('Nous+contacter'),jdecode(''),'/1781.html','true',[],''],
	['PAGE','974469',jdecode('Archives'),jdecode(''),'/974469.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='CECEA9';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10571';
theSitetree.graphicsetId='10772';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='F3F9FC';
var theTemplate={
				name: 			'Borders',
				paletteFamily: 	'CECEA9',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10571',
				graphicsetId: 	'10772',
				contentColor: 	'0000A0',
				contentBGColor: 'F3F9FC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1781',
internalId:  '12042969',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '974469',
internalId:  '',
customField: '20120208-170319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '976669',
internalId:  '',
customField: '20120208-110903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1012480',
internalId:  '',
customField: '20120122-135245'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20120208-102612'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '208990',
internalId:  '',
customField: '20120108-062800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '970169',
internalId:  '',
customField: '20120212-154933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '665166',
internalId:  '',
customField: '20120107-192451'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1116691',
internalId:  '',
customField: '20120208-180557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '897769',
internalId:  '',
customField: '20120208-101917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '998369',
internalId:  '',
customField: '20120208-103727'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '943169',
internalId:  '',
customField: '20120212-153711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '166819',
internalId:  '',
customField: '20120208-105135'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1727',
internalId:  '',
customField: '20120208-104031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34305',
internalId:  '',
customField: '20120208-105224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '981969',
internalId:  '',
customField: '20120115-135240'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '147319',
internalId:  '',
customField: '20120208-105319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '931669',
internalId:  '',
customField: '20120212-154733'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '367071',
internalId:  '',
customField: '20120208-101455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1781',
internalId:  '',
customField: '20120208-105449'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '981969',
internalId:  '12042817',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1028101',
internalId:  '',
customField: '20111210-135737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1028080',
internalId:  '',
customField: '20111210-141042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1108491',
internalId:  '',
customField: '20120129-001553'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVFJP';
var companyName   = 'LE+DIRE+ET+L%27ECRIRE';
var htmlTitle	  = 'le+dire+et+l+%C3%A9crire';
var metaKeywords  = 'ecriture%2C+ateliers%2C+histoires%2C+vie%2C+dire%2C+ecrire%2C+ateliers+d+ecriture%2C+histoires+de+vie%2C+recits+de+vie%2C+autobiographie%2C+autofiction%2C+Michele+CLEACH%2C+formation%2C+%C3%A9ducation';
var metaContents  = 'Histoires+de+vie%2C+Ateliers+d+ecriture%2C+R%C3%A9cits+de+vie%2C+Education%2C+Formation+des+adultes';
					                                                                    
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 */					                                                            

