/* [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','1514',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/1514/index.html','true',[ 
		['PAGE','17805',jdecode('Page+d%26%23x27%3Baccueil+%28volgende+pagina%29'),jdecode(''),'/1514/17805.html','false',[],''],
		['PAGE','25702',jdecode('In+English'),jdecode(''),'/1514/25702.html','true',[],'']
	],''],
	['PAGE','1652',jdecode('Tarifs'),jdecode(''),'/1652.html','true',[],''],
	['PAGE','1571',jdecode('Programme+%2F+show+schedule'),jdecode(''),'/1571/index.html','true',[ 
		['PAGE','310054',jdecode('F%C3%A9vrier+%2F+February'),jdecode(''),'/1571/310054.html','true',[],''],
		['PAGE','316554',jdecode('Mars+%2F+March'),jdecode(''),'/1571/316554.html','true',[],'']
	],''],
	['PAGE','15225',jdecode('Acc%C3%A8s+%2F+directions'),jdecode(''),'/15225.html','true',[],''],
	['PAGE','1598',jdecode('Un+peu+d%26%23x27%3Bhistoires+%2F+History'),jdecode(''),'/1598/index.html','true',[ 
		['PAGE','24102',jdecode('In+English'),jdecode(''),'/1598/24102.html','true',[],'']
	],''],
	['PAGE','16850',jdecode('Livre+d%26%23x27%3Bor+%2F+Guestbook'),jdecode(''),'/16850/index.html','true',[ 
		['PAGE','16851',jdecode('Entr%C3%A9es'),jdecode(''),'/16850/16851.html','true',[],'']
	],''],
	['PAGE','111943',jdecode('Location'),jdecode(''),'/111943.html','true',[],''],
	['PAGE','146064',jdecode('Boutique'),jdecode(''),'/146064.html','true',[],''],
	['PAGE','15299',jdecode('Album+Photos'),jdecode(''),'/15299.html','true',[],''],
	['PAGE','31702',jdecode('Spectacle+Swing+Show'),jdecode(''),'/31702.html','true',[],''],
	['PAGE','149664',jdecode('Livre+60+ans+de+Jazz'),jdecode(''),'/149664.html','true',[],''],
	['PAGE','201143',jdecode('Partenaires'),jdecode(''),'/201143.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='0B578E';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='394';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0B578E';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'0B578E',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'394',
				contentColor: 	'FFFFFF',
				contentBGColor: '0B578E',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'0B578E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['2001']={
webappId:    '2001',
documentId:  '15225',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '15299',
internalId:  '107375f29b4',
customField: 'g.12lf48hbt.pr86aajpmbnm.6rn80'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '16850',
internalId:  '16850aam010in3riv',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '16851',
internalId:  '16850aam010in3riv',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1514',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1514',
internalId:  'aam010in3riv1073bc96d50',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17805',
internalId:  'aam010in3riv1073bc96d50',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1514',
internalId:  '',
customField: '20101108-163006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1571',
internalId:  '',
customField: '20120131-122429'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '310054',
internalId:  '',
customField: '20120125-124917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17805',
internalId:  '',
customField: '20051029-115055'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25702',
internalId:  '',
customField: '20100903-112122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1598',
internalId:  '',
customField: '20071120-134500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24102',
internalId:  '',
customField: '20051112-105227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1652',
internalId:  '',
customField: '20090901-121651'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1514',
internalId:  '6185414',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15225',
internalId:  '',
customField: '20101221-151557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15299',
internalId:  '',
customField: '20051028-174942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16850',
internalId:  '',
customField: '20051028-171202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16851',
internalId:  '',
customField: '20061120-135236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31702',
internalId:  '',
customField: '20060330-132218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '111943',
internalId:  '',
customField: '20080219-160426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146064',
internalId:  '',
customField: '20081016-150135'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201143',
internalId:  '',
customField: '20110831-100947'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '316554',
internalId:  '',
customField: '20120131-140742'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '149664',
internalId:  '',
customField: '20100407-093732'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3RIV';
var companyName   = 'CAVEAU+DE+LA+HUCHETTE';
var htmlTitle	  = 'CAVEAU+DE+LA+HUCHETTE';
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 */					                                                            

