/* [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','4598',jdecode('PRESENTATION'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','130761',jdecode('BOURSE+AUX+LIVRES'),jdecode(''),'/130761/index.html','true',[ 
		['PAGE','130803',jdecode('Coll%C3%A8ge'),jdecode(''),'/130761/130803.html','true',[],''],
		['PAGE','130782',jdecode('Lyc%C3%A9e'),jdecode(''),'/130761/130782.html','true',[],'']
	],''],
	['PAGE','57003',jdecode('ACTIONS'),jdecode(''),'/57003/index.html','true',[ 
		['PAGE','25301',jdecode('Covoiturage'),jdecode(''),'/57003/25301.html','true',[],''],
		['PAGE','33123',jdecode('Parents+Correspondants'),jdecode(''),'/57003/33123.html','true',[],''],
		['PAGE','54132',jdecode('Forum+des+m%C3%A9tiers'),jdecode(''),'/57003/54132.html','true',[],''],
		['PAGE','52505',jdecode('Demi-pension'),jdecode(''),'/57003/52505.html','true',[],''],
		['PAGE','54105',jdecode('PPE'),jdecode(''),'/57003/54105.html','true',[],''],
		['PAGE','58480',jdecode('Ephiphanie'),jdecode(''),'/57003/58480/index.html','true',[ 
			['PAGE','59307',jdecode('Ephiphanie+%28volgende+pagina%29'),jdecode(''),'/57003/58480/59307.html','false',[],'']
		],''],
		['PAGE','58453',jdecode('Portes+Ouvertes'),jdecode(''),'/57003/58453.html','true',[],''],
		['PAGE','79603',jdecode('Activit%C3%A9s+CHANEL'),jdecode(''),'/57003/79603.html','true',[],''],
		['PAGE','58426',jdecode('APEL+D%C3%A9partemental'),jdecode(''),'/57003/58426.html','true',[],''],
		['PAGE','53303',jdecode('Pastorale'),jdecode(''),'/57003/53303.html','true',[],'']
	],''],
	['PAGE','25655',jdecode('NOUVELLES+ET+RDV'),jdecode(''),'/25655.html','true',[],''],
	['PAGE','67102',jdecode('ACCES'),jdecode(''),'/67102.html','true',[],''],
	['PAGE','68203',jdecode('LIENS'),jdecode(''),'/68203.html','true',[],''],
	['PAGE','86001',jdecode('NOUS+CONTACTER'),jdecode(''),'/86001.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='315881';
theSitetree.keyvisualId='2287';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='372';
theSitetree.graphicsetId='419';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='315881';
var theTemplate={
				name: 			'Steps',
				paletteFamily: 	'315881',
				keyvisualId: 	'2287',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'372',
				graphicsetId: 	'419',
				contentColor: 	'FFFFFF',
				contentBGColor: '315881',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'315881',
				b_color: 		'2985B5',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100831-113815'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4598',
internalId:  '7665315',
customField: '1501'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4598',
internalId:  '12739220',
customField: 'fr:FR:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '52505',
internalId:  '12751933',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86001',
internalId:  '',
customField: '20071016-200223'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '33123',
internalId:  '10995575',
customField: 'fr:FR:'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '58480',
internalId:  'aam010inv0ob10c0da81715',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '59307',
internalId:  'aam010inv0ob10c0da81715',
customField: 'followUp'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '67102',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57003',
internalId:  '',
customField: '20100430-113142'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33123',
internalId:  '',
customField: '20100826-084715'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '25301',
internalId:  '12756404',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79603',
internalId:  '',
customField: '20100512-124650'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '54132',
internalId:  '10995792',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20100527-103515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52505',
internalId:  '',
customField: '20090902-173622'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53303',
internalId:  '',
customField: '20100430-101317'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54105',
internalId:  '',
customField: '20081024-181606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54132',
internalId:  '',
customField: '20090929-151110'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58426',
internalId:  '',
customField: '20090929-150459'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58453',
internalId:  '',
customField: '20060626-020350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58480',
internalId:  '',
customField: '20090929-150711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59307',
internalId:  '',
customField: '20060626-020555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25655',
internalId:  '',
customField: '20100430-102103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '130761',
internalId:  '',
customField: '20100903-091550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '130803',
internalId:  '',
customField: '20100628-110507'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '130782',
internalId:  '',
customField: '20100831-104324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67102',
internalId:  '',
customField: '20061016-153952'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68203',
internalId:  '',
customField: '20100618-164936'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INV0OB';
var companyName   = 'Association+Parents+d%27El%C3%A8ves+St-Pierre-Chanel';
var htmlTitle	  = 'APEL+SPC';
var metaKeywords  = 'Covoiturage%2CForum+de+Metier%2CBourse+aux+livres%2C+PPE%2CRoland+Weiland%2CIsabelle+Maiolo%2CAnnie+Duboche%2C+Danielle+Brique%2CWaltraud+Olbertz-Santolini%2CMichel+Sanlaville%2C+Thierry+Wawzzyniak%2CYveline+Gallet%2C+Beatrice+Sapa%2C';
var metaContents  = 'Saint+Pierre+Chanel+Coll%EF%BF%BDge+et+Lyc%EF%BF%BDe%2C+Covoiturage%2CForum+de+Metier%2CBourse+aux+livres';
					                                                                    
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 */					                                                            
