/* [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','1508',jdecode('Accueil'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','8801',jdecode('Derni%C3%A8res+nouvelles'),jdecode(''),'/8801.html','true',[],''],
	['PAGE','4401',jdecode('Adh%C3%A9sion+%C3%A0+l%26%23x27%3BAFRAPS'),jdecode(''),'/4401.html','true',[],''],
	['PAGE','12801',jdecode('dernier+n%C2%B0+STAPS'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','4001',jdecode('Revue+STAPS'),jdecode(''),'/4001/index.html','true',[ 
		['PAGE','4028',jdecode('Instructions+aux+auteurs'),jdecode(''),'/4001/4028.html','true',[],''],
		['PAGE','4428',jdecode('Crit%C3%A8res+d%26%23x27%3Bexpertise'),jdecode(''),'/4001/4428.html','true',[],''],
		['PAGE','6024',jdecode('Charte+de+la+revue'),jdecode(''),'/4001/6024.html','true',[],''],
		['PAGE','4901',jdecode('Comit%C3%A9+de+r%C3%A9daction'),jdecode(''),'/4001/4901.html','true',[],'']
	],''],
	['PAGE','15101',jdecode('revue+STAPS+1980%2F+2000'),jdecode(''),'/15101.html','true',[],''],
	['PAGE','4055',jdecode('Publications'),jdecode(''),'/4055/index.html','true',[ 
		['PAGE','4455',jdecode('Ouvrages'),jdecode(''),'/4055/4455.html','true',[],''],
		['PAGE','4482',jdecode('CDRom'),jdecode(''),'/4055/4482.html','true',[],''],
		['PAGE','4928',jdecode('Bon+de+commande'),jdecode(''),'/4055/4928.html','true',[],'']
	],''],
	['PAGE','4082',jdecode('Colloques'),jdecode(''),'/4082/index.html','true',[ 
		['PAGE','18101',jdecode('Nouvelle+page'),jdecode(''),'/4082/18101.html','true',[],'']
	],''],
	['PAGE','4109',jdecode('Prix+Jean-Claude+Lyleire'),jdecode(''),'/4109/index.html','true',[ 
		['PAGE','4509',jdecode('Palmar%C3%A8s'),jdecode(''),'/4109/4509.html','true',[],'']
	],''],
	['PAGE','4136',jdecode('Administration'),jdecode(''),'/4136/index.html','true',[ 
		['PAGE','29701',jdecode('statuts+de+l%26%23x27%3BAFRAPS'),jdecode(''),'/4136/29701.html','true',[],'']
	],''],
	['PAGE','16401',jdecode('contacts'),jdecode(''),'/16401.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Sedan';
theSitetree.paletteFamily='5C8252';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10497';
theSitetree.graphicsetId='11105';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Sedan',
				paletteFamily: 	'5C8252',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10497',
				graphicsetId: 	'11105',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5C8252',
				e_color: 		'5C8252',
				f_color: 		'5C8252',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '6677474',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20110905-015632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20090909-165204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20110823-125957'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20110824-015538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4001',
internalId:  '',
customField: '20110824-015618'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4028',
internalId:  '',
customField: '20090110-181736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4428',
internalId:  '',
customField: '20060207-105843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6024',
internalId:  '',
customField: '20090613-190518'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20110824-015812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20080806-150737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4055',
internalId:  '',
customField: '20110321-032247'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4455',
internalId:  '',
customField: '20090909-165515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4482',
internalId:  '',
customField: '20060129-140504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4928',
internalId:  '',
customField: '20090909-151414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4082',
internalId:  '',
customField: '20110824-013625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20070413-145604'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4109',
internalId:  '',
customField: '20110214-164638'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4509',
internalId:  '',
customField: '20110214-165349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4136',
internalId:  '',
customField: '20100123-002113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20080123-112724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20100123-003834'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2P0D';
var companyName   = 'Association+Francophone+pour+la+Recherche+en+APS';
var htmlTitle	  = 'AFRAPS+association+francophone+recherche+activit%C3%A9+physique+sportive';
var metaKeywords  = 'recherche+activit%EF%BF%BDs+physiques+sportives+francophone+association+revue+STAPS';
var metaContents  = 'pr%EF%BF%BDsentation+de+association+francophone+pour+la+recherche+en+activit%EF%BF%BDs+physique+et+sportive%2C+de+la+revue+STAPS%2C+des+ouvrages+%EF%BF%BDdit%EF%BF%BDs+par+AFRAPS';
					                                                                    
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 */					                                                            

