/* [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','501',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/501.html','true',[],''],
	['PAGE','7301',jdecode('Histoire'),jdecode(''),'/7301.html','true',[],''],
	['PAGE','552',jdecode('R%C3%A9form%C3%A9e+baptiste%3F'),jdecode(''),'/552.html','true',[],''],
	['PAGE','14601',jdecode('confession+de+1689'),jdecode(''),'/14601.html','true',[],''],
	['PAGE','18101',jdecode('Richard+Baxter'),jdecode(''),'/18101.html','true',[],''],
	['PAGE','18122',jdecode('Abraham+Booth'),jdecode(''),'/18122.html','true',[],''],
	['PAGE','17701',jdecode('John+Bunyan'),jdecode(''),'/17701.html','true',[],''],
	['PAGE','16622',jdecode('Jean+Calvin'),jdecode(''),'/16622.html','true',[],''],
	['PAGE','573',jdecode('Jonathan+Edwards'),jdecode(''),'/573.html','true',[],''],
	['PAGE','18143',jdecode('John+Flavel'),jdecode(''),'/18143.html','true',[],''],
	['PAGE','18501',jdecode('John+Foxe'),jdecode(''),'/18501.html','true',[],''],
	['PAGE','14901',jdecode('John+Gill'),jdecode(''),'/14901.html','true',[],''],
	['PAGE','15822',jdecode('Matthew+Henry'),jdecode(''),'/15822.html','true',[],''],
	['PAGE','15843',jdecode('Benjamin+Keach'),jdecode(''),'/15843.html','true',[],''],
	['PAGE','17722',jdecode('William+Kiffin'),jdecode(''),'/17722.html','true',[],''],
	['PAGE','16643',jdecode('John+Mac+Arthur'),jdecode(''),'/16643.html','true',[],''],
	['PAGE','17743',jdecode('John+Owen+'),jdecode(''),'/17743.html','true',[],''],
	['PAGE','15801',jdecode('Arthur+Pink'),jdecode(''),'/15801.html','true',[],''],
	['PAGE','16601',jdecode('John+Piper'),jdecode(''),'/16601.html','true',[],''],
	['PAGE','17764',jdecode('Richard+Sibbes'),jdecode(''),'/17764.html','true',[],''],
	['PAGE','15864',jdecode('Charles+Spurgeon'),jdecode(''),'/15864.html','true',[],''],
	['PAGE','15885',jdecode('Samuel+Waldron'),jdecode(''),'/15885.html','true',[],''],
	['PAGE','17785',jdecode('Thomas+Watson'),jdecode(''),'/17785.html','true',[],''],
	['PAGE','594',jdecode('les+%C3%A9glises+'),jdecode(''),'/594.html','true',[],''],
	['PAGE','615',jdecode('%C3%A9vang%C3%A9lisation+'),jdecode(''),'/615.html','true',[],''],
	['PAGE','636',jdecode('liens'),jdecode(''),'/636.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='CC0000';
theSitetree.keyvisualId='908';
theSitetree.keyvisualName='antiquitaeten2.jpg';
theSitetree.fontsetId='161';
theSitetree.graphicsetId='188';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Neon',
				paletteFamily: 	'CC0000',
				keyvisualId: 	'908',
				keyvisualName: 	'antiquitaeten2.jpg',
				fontsetId: 		'161',
				graphicsetId: 	'188',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100728-144053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20080614-160108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090817-164248'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090817-165651'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20080804-185402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20080804-185339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20080114-142224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20080614-160556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100607-174728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20080614-160013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15822',
internalId:  '',
customField: '20080804-145237'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15843',
internalId:  '',
customField: '20080804-152958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15864',
internalId:  '',
customField: '20080614-152443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15885',
internalId:  '',
customField: '20080614-152443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20080927-142411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16622',
internalId:  '',
customField: '20080804-150541'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16643',
internalId:  '',
customField: '20080614-153255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20080614-154945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17722',
internalId:  '',
customField: '20080804-154702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17743',
internalId:  '',
customField: '20080614-154945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17764',
internalId:  '',
customField: '20080804-151139'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17785',
internalId:  '',
customField: '20080715-125127'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20080715-121255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18122',
internalId:  '',
customField: '20080715-123019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18143',
internalId:  '',
customField: '20080927-143836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20080927-151929'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INL80W';
var companyName   = 'LE+LECTEUR+REFORME+BAPTISTE';
var htmlTitle	  = 'le+lecteur+r%C3%A9form%C3%A9+baptiste';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
