/* [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','601',jdecode('Bienvenue'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('R%C3%A9cits+du+voyage'),jdecode(''),'/652/index.html','true',[ 
		['PAGE','6101',jdecode('Septembre+2009'),jdecode(''),'/652/6101.html','true',[],''],
		['PAGE','6122',jdecode('Octobre+2009'),jdecode(''),'/652/6122.html','true',[],''],
		['PAGE','6143',jdecode('Novembre+2009'),jdecode(''),'/652/6143.html','true',[],''],
		['PAGE','6164',jdecode('D%C3%A9cembre+2009'),jdecode(''),'/652/6164.html','true',[],''],
		['PAGE','18401',jdecode('Janvier+2010'),jdecode(''),'/652/18401.html','true',[],''],
		['PAGE','18422',jdecode('F%C3%A9vrier+2010'),jdecode(''),'/652/18422.html','true',[],''],
		['PAGE','33801',jdecode('Mars+2010'),jdecode(''),'/652/33801.html','true',[],''],
		['PAGE','40801',jdecode('Avril+2010'),jdecode(''),'/652/40801.html','true',[],''],
		['PAGE','40822',jdecode('Mai+2010'),jdecode(''),'/652/40822.html','true',[],'']
	],''],
	['PAGE','3001',jdecode('Euphonie+%3A+le+bateau'),jdecode(''),'/3001/index.html','true',[ 
		['PAGE','14922',jdecode('Un+bateau%2C+une+histoire'),jdecode(''),'/3001/14922.html','true',[],''],
		['PAGE','14943',jdecode('Sp%C3%A9cifications'),jdecode(''),'/3001/14943.html','true',[],''],
		['PAGE','34401',jdecode('Liens'),jdecode(''),'/3001/34401.html','true',[],''],
		['PAGE','14964',jdecode('Consid%C3%A9rations+t%C3%A9chniques'),jdecode(''),'/3001/14964.html','true',[],''],
		['PAGE','16901',jdecode('Album+photo+Euphonie'),jdecode(''),'/3001/16901.html','true',[],'']
	],''],
	['PAGE','3022',jdecode('L%26%23x27%3B%C3%A9quipage'),jdecode(''),'/3022/index.html','true',[ 
		['PAGE','19201',jdecode('Les+lectures+de+V%C3%A9ronique'),jdecode(''),'/3022/19201.html','true',[],''],
		['PAGE','20001',jdecode('Les+lectures+de+Jean-Marc'),jdecode(''),'/3022/20001.html','true',[],''],
		['PAGE','20501',jdecode('Les+lectures+de+Solal'),jdecode(''),'/3022/20501.html','true',[],''],
		['PAGE','20522',jdecode('Les+lectures+de+Jean'),jdecode(''),'/3022/20522.html','true',[],'']
	],''],
	['PAGE','3064',jdecode('Merci'),jdecode(''),'/3064.html','true',[],''],
	['PAGE','3085',jdecode('Contacts'),jdecode(''),'/3085.html','true',[],''],
	['PAGE','3606',jdecode('Vos+messages'),jdecode(''),'/3606/index.html','true',[ 
		['PAGE','3601',jdecode('Consultation+des+messages'),jdecode(''),'/3606/3601.html','true',[],'']
	],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Snapshot';
theSitetree.paletteFamily='6F6F6F';
theSitetree.keyvisualId='3620';
theSitetree.keyvisualName='kv_3620.jpg';
theSitetree.fontsetId='10755';
theSitetree.graphicsetId='10878';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6F6F6F';
var theTemplate={
				name: 			'Snapshot',
				paletteFamily: 	'6F6F6F',
				keyvisualId: 	'3620',
				keyvisualName: 	'kv_3620.jpg',
				fontsetId: 		'10755',
				graphicsetId: 	'10878',
				contentColor: 	'FFFFFF',
				contentBGColor: '6F6F6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FC5E7B',
				e_color: 		'BFBFBF',
				f_color: 		'050001',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100513-084934'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20091201-142329'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3606',
internalId:  '3606aam010inzqez',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3601',
internalId:  '3606aam010inzqez',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3606',
internalId:  '',
customField: '20091028-183818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20091201-141431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20100315-175416'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3064',
internalId:  '',
customField: '20091201-141539'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3085',
internalId:  '',
customField: '20091201-141644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20091028-183818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20100304-174048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6143',
internalId:  '',
customField: '20100305-233657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20091118-230517'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6164',
internalId:  '',
customField: '20100305-110546'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18422',
internalId:  '',
customField: '20100320-152931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14943',
internalId:  '',
customField: '20100306-005855'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14922',
internalId:  '',
customField: '20091201-132500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14964',
internalId:  '',
customField: '20091201-115903'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '16901',
internalId:  '1254a64f0d5',
customField: 'g.14l560cmc.4ngokrk9hmj.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20100306-004922'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20091201-142230'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100304-183108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20100514-095555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20100131-192303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20100126-225809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20100126-230022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20522',
internalId:  '',
customField: '20100126-230022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20100513-085256'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40822',
internalId:  '',
customField: '20100513-085256'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZQEZ';
var companyName   = 'Euphonie+autour+de+la+M%C3%A9diterran%C3%A9e';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

