/* [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('Pr%C3%A9sentation'),jdecode(''),'/501.html','true',[],''],
	['PAGE','2001',jdecode('acc%C3%A8s+site+FOYER'),jdecode(''),'/2001/index.html','true',[ 
		['PAGE','2022',jdecode('Historique'),jdecode(''),'/2001/2022.html','true',[],''],
		['PAGE','2043',jdecode('Vie+au+Foyer'),jdecode(''),'/2001/2043.html','true',[],''],
		['PAGE','2064',jdecode('Tarifs'),jdecode(''),'/2001/2064.html','true',[],''],
		['PAGE','2085',jdecode('Candidature'),jdecode(''),'/2001/2085.html','true',[],''],
		['PAGE','7101',jdecode('Photos'),jdecode(''),'/2001/7101.html','true',[],''],
		['PAGE','8301',jdecode('Acc%C3%A8s'),jdecode(''),'/2001/8301.html','true',[],''],
		['PAGE','19901',jdecode('Contact'),jdecode(''),'/2001/19901.html','true',[],'']
	],''],
	['PAGE','2106',jdecode('acc%C3%A8s+site+UNION'),jdecode(''),'/2106/index.html','true',[ 
		['PAGE','2127',jdecode('Historique'),jdecode(''),'/2106/2127.html','true',[],''],
		['PAGE','2148',jdecode('Adh%C3%A9rents'),jdecode(''),'/2106/2148.html','true',[],''],
		['PAGE','20901',jdecode('Bureau'),jdecode(''),'/2106/20901.html','true',[],''],
		['PAGE','17801',jdecode('Congr%C3%A8s'),jdecode(''),'/2106/17801.html','true',[],''],
		['PAGE','2169',jdecode('Archives'),jdecode(''),'/2106/2169.html','true',[],''],
		['PAGE','18701',jdecode('M%C3%A0J+fichier'),jdecode(''),'/2106/18701.html','true',[],'']
	],'']];
var siteelementCount=16;
theSitetree.topTemplateName='City';
theSitetree.paletteFamily='FFCB89';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11072';
theSitetree.graphicsetId='11845';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F8A131';
var theTemplate={
				name: 			'City',
				paletteFamily: 	'FFCB89',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11072',
				graphicsetId: 	'11845',
				contentColor: 	'000000',
				contentBGColor: 'F8A131',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20080605-212257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20090129-225745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2064',
internalId:  '',
customField: '20090129-225427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2022',
internalId:  '',
customField: '20080211-230145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20080810-171435'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '19901',
internalId:  '4829980',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20090301-094309'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '501',
internalId:  '1603126',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20090129-222918'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2085',
internalId:  '',
customField: '20100125-183242'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2127',
internalId:  '',
customField: '20080208-233159'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2148',
internalId:  '',
customField: '20090301-100053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2169',
internalId:  '',
customField: '20080810-172904'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '18701',
internalId:  '4826893',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20090224-231710'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7101',
internalId:  '11800d5b469',
customField: 'g.1300bplof.8dou8skokts.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20080210-235609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20090224-225545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20090301-095254'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '8301',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20080211-231245'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLTU3';
var companyName   = 'MAISON+DES+LYCEENNES+++-++Union+des+A';
var htmlTitle	  = '';
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 */					                                                            
