/* [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','1536',jdecode('Pr%C3%A9sentation'),jdecode(''),'/1536.html','true',[],''],
	['PAGE','1509',jdecode('Emplacements'),jdecode(''),'/1509.html','true',[],''],
	['PAGE','1593',jdecode('Locations'),jdecode(''),'/1593.html','true',[],''],
	['PAGE','1620',jdecode('Contacts+et+Acc%C3%A9s'),jdecode(''),'/1620.html','true',[],''],
	['PAGE','1647',jdecode('Tarifs'),jdecode(''),'/1647.html','true',[],''],
	['PAGE','1674',jdecode('Loisirs'),jdecode(''),'/1674.html','true',[],''],
	['PAGE','1701',jdecode('Occasions+en+vente'),jdecode(''),'/1701.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Postcards';
theSitetree.paletteFamily='89CB62';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10490';
theSitetree.graphicsetId='11059';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='F3FAF0';
var theTemplate={
				name: 			'Postcards',
				paletteFamily: 	'89CB62',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10490',
				graphicsetId: 	'11059',
				contentColor: 	'A00000',
				contentBGColor: 'F3FAF0',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'89CB62',
				e_color: 		'89CB62',
				f_color: 		'89CB62',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20080730-170553'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1593',
internalId:  '',
customField: '20080730-170920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1647',
internalId:  '',
customField: '20100531-120041'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1674',
internalId:  '',
customField: '20100126-185158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20100531-121242'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20070806-170102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1509',
internalId:  '',
customField: '20080311-141311'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN36JZ';
var companyName   = 'Camping+le+Mont+C%C3%A9sar++*+*';
var htmlTitle	  = 'le+mont+cesar';
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 */					                                                            
