/* [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','856769',jdecode('Cet+%C3%A9t%C3%A9'),jdecode(''),'/856769.html','true',[],''],
	['PAGE','1508',jdecode('MON+AGENDA'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','367071',jdecode('Bienvenue'),jdecode(''),'/367071/index.html','true',[ 
		['PAGE','1646',jdecode('ateliers+d%26%23x27%3B%C3%A9criture+%3F'),jdecode(''),'/367071/1646.html','true',[],''],
		['PAGE','15503',jdecode('histoires+de+vie+%3F'),jdecode(''),'/367071/15503.html','true',[],'']
	],''],
	['PAGE','2801',jdecode('Qui+je+suis+%3F'),jdecode(''),'/2801/index.html','true',[ 
		['PAGE','208990',jdecode('quelques+%C3%A9crits'),jdecode(''),'/2801/208990.html','true',[],'']
	],''],
	['PAGE','535144',jdecode('NOUVEAUTES'),jdecode(''),'/535144.html','true',[],''],
	['PAGE','1673',jdecode('Actualit%C3%A9s'),jdecode(''),'/1673.html','true',[],''],
	['PAGE','1727',jdecode('Sites+%C3%A0+visiter'),jdecode(''),'/1727.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','665166',jdecode('au+fil+des+lectures'),jdecode(''),'/34305/665166.html','true',[],'']
	],''],
	['PAGE','147319',jdecode('Jeux%2C+sons%2C+images'),jdecode(''),'/147319.html','true',[],''],
	['PAGE','419482',jdecode('Newsletter'),jdecode(''),'/419482.html','true',[],''],
	['PAGE','184861',jdecode('Archives'),jdecode(''),'/184861.html','true',[],''],
	['PAGE','1781',jdecode('Nous+contacter'),jdecode(''),'/1781.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='666666';
theSitetree.keyvisualId='1818';
theSitetree.keyvisualName='zettel.jpg';
theSitetree.fontsetId='285';
theSitetree.graphicsetId='349';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='666666';
var theTemplate={
				name: 			'Art',
				paletteFamily: 	'666666',
				keyvisualId: 	'1818',
				keyvisualName: 	'zettel.jpg',
				fontsetId: 		'285',
				graphicsetId: 	'349',
				contentColor: 	'FFFFFF',
				contentBGColor: '666666',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'666666',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1781',
internalId:  '12042969',
customField: 'fr:FR:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '419482',
internalId:  '12042817',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '856769',
internalId:  '',
customField: '20100721-094757'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100718-120238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20091101-093457'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '208990',
internalId:  '',
customField: '20100228-121027'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1646',
internalId:  '',
customField: '20091101-093329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '665166',
internalId:  '',
customField: '20100718-201449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '535144',
internalId:  '',
customField: '20100721-100936'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15503',
internalId:  '',
customField: '20091101-093405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1673',
internalId:  '',
customField: '20100721-100440'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '166819',
internalId:  '',
customField: '20100718-071823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1727',
internalId:  '',
customField: '20100718-214715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34305',
internalId:  '',
customField: '20100718-091007'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '147319',
internalId:  '',
customField: '20100509-135114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '184861',
internalId:  '',
customField: '20091231-113613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '367071',
internalId:  '',
customField: '20100223-143748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1781',
internalId:  '',
customField: '20100625-113956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '419482',
internalId:  '',
customField: '20100427-220607'
};
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 */					                                                            
