/* [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','4586',jdecode('Accueil'),jdecode(''),'/4586.html','true',[],''],
	['PAGE','4643',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/4643.html','true',[],''],
	['PAGE','6874',jdecode('Un+peu+d%26%23x27%3Bhistoire'),jdecode(''),'/6874.html','true',[],''],
	['PAGE','4670',jdecode('Actualit%C3%A9s'),jdecode(''),'/4670/index.html','true',[ 
		['PAGE','4724',jdecode('Agenda'),jdecode(''),'/4670/4724.html','true',[],'']
	],''],
	['PAGE','4778',jdecode('Contact'),jdecode(''),'/4778/index.html','true',[ 
		['PAGE','4805',jdecode('Adresse%2C+T%C3%A9l%C3%A9phone'),jdecode(''),'/4778/4805.html','true',[],''],
		['PAGE','4832',jdecode('O%C3%B9+se+situe+VABRES%3F'),jdecode(''),'/4778/4832.html','true',[],'']
	],''],
	['PAGE','5002',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/5002/index.html','true',[ 
		['PAGE','5003',jdecode('Entr%C3%A9es'),jdecode(''),'/5002/5003.html','true',[],'']
	],''],
	['PAGE','10902',jdecode('album+photos'),jdecode(''),'/10902.html','true',[],''],
	['PAGE','12701',jdecode('Forum+de+discussion+%2F+Chat'),jdecode(''),'/12701.html','true',[],''],
	['PAGE','21001',jdecode('Cuisson+primitive'),jdecode(''),'/21001.html','true',[],''],
	['PAGE','23801',jdecode('Acc%C3%A8s'),jdecode(''),'/23801.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Ornaments';
theSitetree.paletteFamily='3E8832';
theSitetree.keyvisualId='3909';
theSitetree.keyvisualName='kv_3909.jpg';
theSitetree.fontsetId='10506';
theSitetree.graphicsetId='11077';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ornaments',
				paletteFamily: 	'3E8832',
				keyvisualId: 	'3909',
				keyvisualName: 	'kv_3909.jpg',
				fontsetId: 		'10506',
				graphicsetId: 	'11077',
				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: 		'887248',
				e_color: 		'887248',
				f_color: 		'887248',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4586',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5002',
internalId:  '5002aam010in23o8',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5003',
internalId:  '5002aam010in23o8',
customField: 'action=list'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4586',
internalId:  '1490081',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '10902',
internalId:  '103fbf798e8',
customField: 'g.12lg9pl3c.62r4506cht63u.6rn80'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '12701',
internalId:  'aam010in23o810c082a1656',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4586',
internalId:  '',
customField: '20100624-202746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5002',
internalId:  '',
customField: '20040610-014441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20100509-211621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6874',
internalId:  '',
customField: '20100517-155704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4670',
internalId:  '',
customField: '20100724-102024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4724',
internalId:  '',
customField: '20100624-200959'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4778',
internalId:  '',
customField: '20100519-182543'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4805',
internalId:  '',
customField: '20071218-193704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4832',
internalId:  '',
customField: '20040718-152323'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5003',
internalId:  '',
customField: '20040610-014441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10902',
internalId:  '',
customField: '20050814-224926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20060816-180133'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '21001',
internalId:  '121686c60d5',
customField: 'g.145k49isf.402ub2jcehr.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20090607-235802'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '23801',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20100624-200824'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN23O8';
var companyName   = 'ABRES%3A+%22Terre+de+Potiers%2C+Terre+d%27Histoire%22';
var htmlTitle	  = 'VABRES%3A+Terre+de+Potiers%2C+Terre+d+Histoire';
var metaKeywords  = 'Vabres+poterie+potiers+eglise+chateau+histoire+poterie+ancienne+patrimoine+historique+metiers+anciens+haute-loire+haut-allier+alleyras+musee+art+et+traditions+populaires+fete';
var metaContents  = 'sauvegarde+et+mise+en+valeur+du+patrimoine+de+Vabres+%2843%29+canton+de+saugues+intercommunalite+pradelles+histoire+patrimoine+f%C3%AAte+poterie+ancienne+potier+potiers++googlea581517f618ec619.html';
					                                                                    
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 */					                                                            
