/* [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','4607',jdecode('Le+Domaine'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','4691',jdecode('Nos+Produits'),jdecode(''),'/4691/index.html','true',[ 
		['PAGE','30601',jdecode('Les+tarifs'),jdecode(''),'/4691/30601.html','true',[],'']
	],''],
	['PAGE','4664',jdecode('Nos+Foires'),jdecode(''),'/4664.html','true',[],''],
	['PAGE','4718',jdecode('G%C3%AEte+rural'),jdecode(''),'/4718/index.html','true',[ 
		['PAGE','30628',jdecode('Les+tarifs+-+Visite'),jdecode(''),'/4718/30628.html','true',[],'']
	],''],
	['PAGE','4745',jdecode('Contact'),jdecode(''),'/4745.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='CD984C';
theSitetree.keyvisualId='3358';
theSitetree.keyvisualName='kv_3358.jpg';
theSitetree.fontsetId='10425';
theSitetree.graphicsetId='10741';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'CD984C',
				keyvisualId: 	'3358',
				keyvisualName: 	'kv_3358.jpg',
				fontsetId: 		'10425',
				graphicsetId: 	'10741',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'412D10',
				e_color: 		'979796',
				f_color: 		'979796',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20110721-172116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4691',
internalId:  '',
customField: '20110206-170145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20110414-123852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20110721-172016'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4718',
internalId:  '',
customField: '20110721-171757'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30628',
internalId:  '',
customField: '20091208-183126'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4745',
internalId:  '',
customField: '20080113-170904'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INV6BM';
var companyName   = '+Domaine+du+Bouquet';
var htmlTitle	  = 'Domaine+du+Bouquet+%3A+Cognac%2C+pineau+des+charentes%2C+petillant+de+raisin%2C+gite+rural';
var metaKeywords  = 'domaine+du+bouquet%2C+pineau%2C+cognac%2C+Archiac%2C+jarnac-champagne%2C+jonzac%2C+produit+terroir%2C+propri%EF%BF%BDt%EF%BF%BD%2C+viticole%2C+vignerons%2C+viticulteurs%2C+producteurs%2C+gite+rural%2C+vacances%2C+17%2C+charente+maritime%2C+campagne%2C+vin+de+pays%2C+alambic%2C+cl%EF%BF%BDvacances%2C+thierry+marchais%2C+mauricette+marchais%2C+joel+veglianti%2C+hebergement%2C+foire%2C+animation%2C+vente+directe%2C+domaine+du+bouquet%2C+pineau%2C+cognac%2C+Archiac%2C+jarnac-champagne%2C+jonzac%2C+produit+terroir%2C+propri%EF%BF%BDt%EF%BF%BD%2C+viticole%2C+vignerons%2C+viticulteurs%2C+producteurs%2C+gite+rural%2C+vacances%2C+17%2C+charente+maritime%2C+campagne%2C+vin+de+pays%2C+alambic%2C+cl%EF%BF%BDvacances%2C+thierry+marchais%2C+mauricette+marchais%2C+joel+veglianti%2C+hebergement%2C+foire%2C+animation%2C+vente+directe';
var metaContents  = 'Le+Domaine+du+Bouquet+se+situe+en+Charente+Maritime%2C+en+bordure+dun+petit+village+situ%EF%BF%BD+entre+Archiac+et+Pons+%3A+Jarnac-Champagne.+Thierry+Marchais%2C+Mauricette+Marchais+et+Joel+Veglianti+sommes+vignerons+sur+cette+propri%EF%BF%BDt%EF%BF%BD+viticole.+La+vente+directe+du+Pineau%2C+du+Cognac+et+du+Vin+de+Pays+Charentais+est+assur%EF%BF%BDe+au+domaine+ou+en+foires+et+salons.+Nous+pouvons+%EF%BF%BDgalement+vous+accueillir+dans+un+G%EF%BF%BDte+Rural+tout+confort+o%EF%BF%BD+4+%EF%BF%BD+6+personnes+peuvent+y+passer+leurs+vacances+ou+week-end+en+Haute+Saintonge';
					                                                                    
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 */					                                                            

