/* [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','1401',jdecode('Accueil'),jdecode(''),'/1401.html','true',[],''],
	['PAGE','95912',jdecode('News+%3A+Vacances+de+F%C3%A9vrier+'),jdecode(''),'/95912.html','true',[],''],
	['PAGE','18201',jdecode('Encadrement'),jdecode(''),'/18201.html','true',[],''],
	['PAGE','68301',jdecode('Nos+activit%C3%A9s'),jdecode(''),'/68301/index.html','true',[ 
		['PAGE','68322',jdecode('La+voile'),jdecode(''),'/68301/68322.html','true',[],''],
		['PAGE','68343',jdecode('Le+Cano%C3%AB+et+le+Kayak'),jdecode(''),'/68301/68343.html','true',[],''],
		['PAGE','68364',jdecode('Le+Vtt'),jdecode(''),'/68301/68364.html','true',[],''],
		['PAGE','95012',jdecode('Le+Tir+%C3%A0+l%26%23x27%3BArc+et+Sarbacane'),jdecode(''),'/68301/95012.html','true',[],''],
		['PAGE','68385',jdecode('Le+p%C3%A9dalo'),jdecode(''),'/68301/68385.html','true',[],'']
	],''],
	['PAGE','17264',jdecode('Nos+publics+et+nos+tarifs'),jdecode(''),'/17264/index.html','true',[ 
		['PAGE','17285',jdecode('Les+particuliers'),jdecode(''),'/17264/17285.html','true',[],''],
		['PAGE','17306',jdecode('Les+groupes+et+scolaires'),jdecode(''),'/17264/17306.html','true',[],''],
		['PAGE','17327',jdecode('Les+entreprises'),jdecode(''),'/17264/17327.html','true',[],'']
	],''],
	['PAGE','11901',jdecode('Calendrier+2012'),jdecode(''),'/11901.html','true',[],''],
	['PAGE','18222',jdecode('Manifestations+%2F+Stages'),jdecode(''),'/18222.html','true',[],''],
	['PAGE','31501',jdecode('A+l%26%23x27%3Bhonneur+...'),jdecode(''),'/31501.html','true',[],''],
	['PAGE','19101',jdecode('Liens+utiles'),jdecode(''),'/19101.html','true',[],''],
	['PAGE','21401',jdecode('Contactez-nous'),jdecode(''),'/21401.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='414E8C';
theSitetree.keyvisualId='8162';
theSitetree.keyvisualName='kv_8162.jpg';
theSitetree.fontsetId='17012';
theSitetree.graphicsetId='12397';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='414E8C';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'414E8C',
				keyvisualId: 	'8162',
				keyvisualName: 	'kv_8162.jpg',
				fontsetId: 		'17012',
				graphicsetId: 	'12397',
				contentColor: 	'FFFFFF',
				contentBGColor: '414E8C',
				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:  '1401',
internalId:  '',
customField: '20111224-135107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20111224-150407'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20080305-194256'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '21401',
internalId:  '1846532',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17264',
internalId:  '',
customField: '20111224-125121'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20110127-144354'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17285',
internalId:  '',
customField: '20111223-163844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17306',
internalId:  '',
customField: '20111224-142705'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17327',
internalId:  '',
customField: '20100201-093006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18222',
internalId:  '',
customField: '20111224-130010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20111223-163229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95012',
internalId:  '',
customField: '20111224-172428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95912',
internalId:  '',
customField: '20111224-172216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20080322-191241'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1401',
internalId:  '2004399',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68301',
internalId:  '',
customField: '20111223-124757'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '17264',
internalId:  '1846532',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68322',
internalId:  '',
customField: '20111223-132611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68343',
internalId:  '',
customField: '20100125-143049'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68364',
internalId:  '',
customField: '20100125-143314'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68385',
internalId:  '',
customField: '20100125-143444'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLURI';
var companyName   = 'Association+Gamaches+Plein+Air';
var htmlTitle	  = 'Association+Gamaches+Plein+Air';
var metaKeywords  = 'voile%3B+vtt%3B+planche+%C3%A0+voile%3B+plein+air%3B+pedalo%3B+gamaches%3B+sport%3B+nature%3B+week+end%3B+somme%3B+picardie%3B+laser%3B+420%3B+catamaran%3B+initiation%2C+perfectionnement%2C+stage+technique%2C+animation%2C+encadrement%2C+location%2C+vall%C3%A9e+Bresle%2C+c%C3%B4te+picarde%2C+plan+deau%2C+base+nautique%2C+tir+%C3%A0+larc%2C+sarbacane%2C+fl%C3%A9che%2C+v%C3%A9lo%2C+randonn%C3%A9e%2C+parcours+vtt%2C+plein+air%3B+pleine+nature%3B+';
var metaContents  = 'voile%3B+vtt%3B+planche+%C3%A0+voile%3B+plein+air%3B+pedalo%3B+gamaches%3B+sport%3B+nature%3B+week+end%3B+somme%3B+picardie%3B+laser%3B+420%3B+catamaran%3B+initiation%2C+perfectionnement%2C+stage+technique%2C+animation%2C+encadrement%2C+location%2C+plein+air%3B+pleine+nature%3B++vall%C3%A9e+Bresle%2C+c%C3%B4te+picarde%2C+plan+deau%2C+base+nautique%2C+tir+%C3%A0+larc%2C+sarbacane%2C+fl%C3%A9che%2C+v%C3%A9lo%2C+randonn%C3%A9e%2C+parcours+vtt%2C+';
					                                                                    
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 */					                                                            

