/* [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','1509',jdecode('Accueil'),jdecode(''),'/1509.html','true',[],''],
	['PAGE','45101',jdecode('Entrez+chez+nous'),jdecode(''),'/45101/index.html','true',[ 
		['PAGE','13003',jdecode('Les+Chambres'),jdecode(''),'/45101/13003.html','true',[],''],
		['PAGE','13111',jdecode('Tarifs'),jdecode(''),'/45101/13111.html','true',[],''],
		['PAGE','43102',jdecode('L%26%23x27%3Balbum+photo'),jdecode(''),'/45101/43102.html','true',[],'']
	],''],
	['PAGE','2401',jdecode('Contactez-nous'),jdecode(''),'/2401/index.html','true',[ 
		['PAGE','7802',jdecode('R%C3%A9servation+en+ligne+%28volgende+pagina%29'),jdecode(''),'/2401/7802.html','false',[],'']
	],''],
	['PAGE','13057',jdecode('Liens'),jdecode(''),'/13057.html','true',[],''],
	['PAGE','44501',jdecode('Welcome'),jdecode(''),'/44501.html','true',[],''],
	['PAGE','81801',jdecode('La+presse+en+parle'),jdecode(''),'/81801.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='FFD375';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='385';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'FFD375',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'385',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFD375',
				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['1001']={
webappId:    '1001',
documentId:  '2401',
internalId:  'aam010ineent101f914742d',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7802',
internalId:  'aam010ineent101f914742d',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1509',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '43102',
internalId:  '1052e2accf2',
customField: 'g.12lfkesdd.4961jebp0vnje.6rn80'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1509',
internalId:  '5356248',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20060425-175100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1509',
internalId:  '',
customField: '20091006-131011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13003',
internalId:  '',
customField: '20060302-100454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13111',
internalId:  '',
customField: '20081027-134425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43102',
internalId:  '',
customField: '20060425-155538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20080711-110607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7802',
internalId:  '',
customField: '20050209-224422'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13057',
internalId:  '',
customField: '20081027-134607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20081027-131258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81801',
internalId:  '',
customField: '20060425-165710'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEENT';
var companyName   = 'La+Ferme+des+Denis+-+26+Chanos-Curson';
var htmlTitle	  = 'La+Ferme+des+Denis';
var metaKeywords  = 'chambre+dhote%2C+drome%2C+valrhona%2C+rhone%2C+vallee%2C+vin%2C+chapoutier%2C+golf+valence%2C+golf%2C+valence';
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 */					                                                            
