/* [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','4607',jdecode('Accueil%2CActualit%C3%A9s'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','18125',jdecode('Manager+la+S%C3%A9curit%C3%A9'),jdecode(''),'/18125.html','true',[],''],
	['PAGE','11887',jdecode('Formations+obligatoires'),jdecode(''),'/11887.html','true',[],''],
	['PAGE','11914',jdecode('Qualit%C3%A9'),jdecode(''),'/11914.html','true',[],''],
	['PAGE','11941',jdecode('Relations+humaines'),jdecode(''),'/11941.html','true',[],''],
	['PAGE','11968',jdecode('Management%2CStrat%C3%A9gie'),jdecode(''),'/11968.html','true',[],''],
	['PAGE','4664',jdecode('Contact'),jdecode(''),'/4664/index.html','true',[ 
		['PAGE','5805',jdecode('Contact+%28volgende+pagina%29'),jdecode(''),'/4664/5805.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='9BA8DA';
theSitetree.keyvisualId='3591';
theSitetree.keyvisualName='kv_3591.jpg';
theSitetree.fontsetId='10737';
theSitetree.graphicsetId='10850';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ragtime',
				paletteFamily: 	'9BA8DA',
				keyvisualId: 	'3591',
				keyvisualName: 	'kv_3591.jpg',
				fontsetId: 		'10737',
				graphicsetId: 	'10850',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'9BA8DA',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'8D8C8C',
				e_color: 		'7D87B0',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4664',
internalId:  'aam010in3xp210978b276bf',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5805',
internalId:  'aam010in3xp210978b276bf',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20070318-191843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20070318-192701'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3XP2';
var companyName   = 'PFP-FORMATION';
var htmlTitle	  = 'PFP-FORMATION';
var metaKeywords  = 'QSE%2C%EF%BF%BDvaluation%2Cs%EF%BF%BDcurit%EF%BF%BD%2Cmaitrise+des+risques%2Cpr%EF%BF%BDvention%2Cdocument+unique%2Cresponsabilit%EF%BF%BD%2CSMS%2Cincendie%2Chabilitation+%EF%BF%BDlectrique%2Cgestes+et+postures%2Ccariste%2CSST%2Csecourisme%2Caccident+du+travail%2CCHSCT%2Cconditions+de+travail%2Cconformit%EF%BF%BD+des+machines%2Caudit';
var metaContents  = 'PFP-FORMATION+est+un+cabinet+de+formation+professionnelle+depuis+1982%2C+sp%EF%BF%BDcialis%EF%BF%BD+dans+la+s%EF%BF%BDcurit%EF%BF%BD%2C+la+qualit%EF%BF%BD+et+la+gestion+des+ressources+humaines+au+sens+large.+Lactivit%EF%BF%BD+englobe+3+volets+%3A+assistance%2C+conseil+et+formation';
					                                                                    
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 */					                                                            
