/* [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','1501',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/1501.html','true',[],''],
	['PAGE','42601',jdecode('Massabielle'),jdecode(''),'/42601/index.html','true',[ 
		['PAGE','45001',jdecode('Massabielle+Photos'),jdecode(''),'/42601/45001.html','true',[],''],
		['PAGE','46901',jdecode('Equipements+'),jdecode(''),'/42601/46901.html','true',[],'']
	],''],
	['PAGE','12601',jdecode('Retraites'),jdecode(''),'/12601/index.html','true',[ 
		['PAGE','14001',jdecode('Avec+enfants'),jdecode(''),'/12601/14001.html','true',[],''],
		['PAGE','14022',jdecode('Sans+enfants'),jdecode(''),'/12601/14022.html','true',[],''],
		['PAGE','14043',jdecode('Ecole+d%26%23x27%3Boraison'),jdecode(''),'/12601/14043.html','true',[],'']
	],''],
	['PAGE','97101',jdecode('Formations+END'),jdecode(''),'/97101.html','true',[],''],
	['PAGE','134912',jdecode('Autres+propositions'),jdecode(''),'/134912.html','true',[],''],
	['PAGE','12643',jdecode('Accueil+groupes'),jdecode(''),'/12643.html','true',[],''],
	['PAGE','94601',jdecode('Accueil+individuel'),jdecode(''),'/94601.html','true',[],''],
	['PAGE','12664',jdecode('+Amis%2FCommunaut%C3%A9+'),jdecode(''),'/12664.html','true',[],''],
	['PAGE','12685',jdecode('T%C3%A9moignages'),jdecode(''),'/12685.html','true',[],''],
	['PAGE','40901',jdecode('Acc%C3%A8s'),jdecode(''),'/40901.html','true',[],''],
	['PAGE','12706',jdecode('Contact%2FFormulaire'),jdecode(''),'/12706.html','true',[],''],
	['PAGE','13601',jdecode('Nos+liens'),jdecode(''),'/13601.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2226';
theSitetree.keyvisualName='hochzeit2.jpg';
theSitetree.fontsetId='365';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2226',
				keyvisualName: 	'hochzeit2.jpg',
				fontsetId: 		'365',
				graphicsetId: 	'415',
				contentColor: 	'000000',
				contentBGColor: '93A6CC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1501',
internalId:  '',
customField: '20100827-143817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20100809-112924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20100809-120003'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12643',
internalId:  '',
customField: '20100521-121609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20080623-152158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14022',
internalId:  '',
customField: '20100809-114014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12685',
internalId:  '',
customField: '20080923-104702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12664',
internalId:  '',
customField: '20091012-160001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12706',
internalId:  '',
customField: '20100809-114615'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '12706',
internalId:  '2972813',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20081013-115017'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '40901',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20100126-105707'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20100809-160625'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '46901',
internalId:  '11aa53a7887',
customField: 'g.13aijqkvs.3akn33vta5o.3o'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1501',
internalId:  '2984806',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '45001',
internalId:  '11aa4e81bf1',
customField: 'g.13aietkmq.gor4ghe0dc.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20080924-163620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14043',
internalId:  '',
customField: '20100617-113902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134912',
internalId:  '',
customField: '20100716-163548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94601',
internalId:  '',
customField: '20080924-162910'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97101',
internalId:  '',
customField: '20100616-110331'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLVT7';
var companyName   = 'Massabielle+';
var htmlTitle	  = 'Ma+maison+sera+une+maison+de+pri%C3%A8re+pour+tous+les+peuples';
var metaKeywords  = 'Massabielle.+Sessions.+Retraites+Spirituelles.Val+dOise.Maison+accueil+Couples.Famille.Fianc%C3%A9s.Pri%C3%A8res%2C+formations.+Ecole+oraison.Equipes+Notre-Dame.+Dioc%C3%A8se+IDF.Lieu+ressourcement.Ecoute.Dialogue.Communaut%C3%A9+priante.Caffarel';
var metaContents  = 'Massabielle+est+un+lieu+daccueil+ouvert+%C3%A0+tous+pour+se+resourcer%2C+prier%2C+se+former.';
					                                                                    
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 */					                                                            
