/* [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('ACCUEIL'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5103',jdecode('NFOS-+AGENDA-ANNONCES'),jdecode(''),'/5103/index.html','true',[ 
		['PAGE','6324',jdecode('INFOS+-+ASSO+-+AGENDA+%28volgende+pagina%29'),jdecode(''),'/5103/6324.html','false',[],'']
	],''],
	['PAGE','16103',jdecode('LE+CHER+NAVIGABLE'),jdecode(''),'/16103.html','true',[],''],
	['PAGE','5989',jdecode('NAVIGUER+SUR+LE+CHER'),jdecode(''),'/5989.html','true',[],''],
	['PAGE','5935',jdecode('NEWS+%26+POTINS+D%26%23x27%3BECLUSES'),jdecode(''),'/5935.html','true',[],''],
	['PAGE','15203',jdecode('GALERIE+PHOTOS'),jdecode(''),'/15203.html','true',[],''],
	['PAGE','6234',jdecode('CONTACTS+-+LIENS'),jdecode(''),'/6234.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1749';
theSitetree.keyvisualName='funsport.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1749',
				keyvisualName: 	'funsport.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5103',
internalId:  'aam010in3hq810a5f2ac7f4',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6324',
internalId:  'aam010in3hq810a5f2ac7f4',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100215-110359'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6234',
internalId:  '',
customField: '20100121-121900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5103',
internalId:  '',
customField: '20100113-164529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16103',
internalId:  '',
customField: '20090215-205251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5935',
internalId:  '',
customField: '20091030-161758'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6324',
internalId:  '',
customField: '20060403-115220'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5989',
internalId:  '',
customField: '20090129-183253'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15203',
internalId:  '',
customField: '20091007-113220'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3HQ8';
var companyName   = 'Les+Amis+du+Cher+Canalis%C3%A9';
var htmlTitle	  = 'AMIS+DU+CHER+CANALISE+ET+NAVIGABLE+AFFLUENT+DE+LA+LOIRE';
var metaKeywords  = 'cher+canalise%2Cpatrimoine%2C+equilibre+ecologique%2C+navigation+de+plaisance%2C+navigation%2C+ski+nautique%2C+aviron%2C+voile%2C+peche%2C+randonnee%2C++pedestre%2C+cycliste%2C+barrages+a+aiguilles%2C+ecluses%2C+environnement%2C+peniche-hotel%2C+nymphea%2C+gabare%2C+jean+bricau%2C+valchantray%2C+marivole%2C+pontons%2C+haltes+nautiques%2C+cales+de+mise+a+leau%2C+bateau-restaurant%2C+fermettes%2C+amis+du+caher+canalise%2C+amis+du+cher%2C+fermettes%2C+barrages+vanne-toit%2Ccanalise%2Ccanal+de+berry%2Cveretz%2C';
var metaContents  = 'sauvegarde+et+promotion+de+la+riviere+Le+Cher+entre+le+canal+de+Berry+et+la+confluence+avec+la+Loire.+Peche%2C+randonnees%2C+navigation%2C+loisirs+nautiques%2C+enjeu+economique+et+touristique%2C+equilibre+ecologique%2C+protection+du+patrimoine+fluvial%2C+barrages+a+aiguilles%2C+ecluses';
					                                                                    
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 */					                                                            
