/* [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','4559',jdecode('Wine+Welcome+'),jdecode(''),'/4559/index.html','true',[ 
		['PAGE','9001',jdecode('Where+are+we%3F'),jdecode(''),'/4559/9001.html','true',[],''],
		['PAGE','9028',jdecode('Who+are+we%3F'),jdecode(''),'/4559/9028.html','true',[],''],
		['PAGE','10201',jdecode('What+do+we+offer%3F'),jdecode(''),'/4559/10201.html','true',[],''],
		['PAGE','14001',jdecode('Today+in+the+Vineyard'),jdecode(''),'/4559/14001.html','true',[],'']
	],''],
	['PAGE','5703',jdecode('Wine+Tours+'),jdecode(''),'/5703/index.html','true',[ 
		['PAGE','5730',jdecode('1+Day+Wine+Tour'),jdecode(''),'/5703/5730.html','true',[],''],
		['PAGE','9055',jdecode('2+Day+Wine+Tour'),jdecode(''),'/5703/9055.html','true',[],''],
		['PAGE','9082',jdecode('3+Day+Wine+Tour'),jdecode(''),'/5703/9082.html','true',[],''],
		['PAGE','9109',jdecode('The+Loire+Treasures'),jdecode(''),'/5703/9109.html','true',[],''],
		['PAGE','9136',jdecode('The+Organic+%2F+Bio+Tour'),jdecode(''),'/5703/9136.html','true',[],''],
		['PAGE','9163',jdecode('The+Womens+Wine+Tour'),jdecode(''),'/5703/9163.html','true',[],''],
		['PAGE','5946',jdecode('Loire+Wine+Events'),jdecode(''),'/5703/5946.html','true',[],''],
		['PAGE','21801',jdecode('Group+Pricing'),jdecode(''),'/5703/21801.html','true',[],'']
	],''],
	['PAGE','5757',jdecode('Wine+Courses'),jdecode(''),'/5757/index.html','true',[ 
		['PAGE','9190',jdecode('Course+1'),jdecode(''),'/5757/9190.html','true',[],''],
		['PAGE','9217',jdecode('Course+2'),jdecode(''),'/5757/9217.html','true',[],''],
		['PAGE','9244',jdecode('Course+3'),jdecode(''),'/5757/9244.html','true',[],'']
	],''],
	['PAGE','5784',jdecode('Loire+Wines'),jdecode(''),'/5784/index.html','true',[ 
		['PAGE','5838',jdecode('Appellations'),jdecode(''),'/5784/5838.html','true',[],''],
		['PAGE','5865',jdecode('Meet+the+Wine+Makers'),jdecode(''),'/5784/5865.html','true',[],''],
		['PAGE','5892',jdecode('Organic+%2F+Biodynamic+Wines'),jdecode(''),'/5784/5892.html','true',[],''],
		['PAGE','6000',jdecode('Wine+Books+and+References'),jdecode(''),'/5784/6000.html','true',[],''],
		['PAGE','9271',jdecode('Interesting+Links'),jdecode(''),'/5784/9271.html','true',[],'']
	],''],
	['PAGE','6702',jdecode('Guestbook'),jdecode(''),'/6702/index.html','true',[ 
		['PAGE','6703',jdecode('Read+Guestbook'),jdecode(''),'/6702/6703.html','true',[],''],
		['PAGE','15402',jdecode('Loire+Images'),jdecode(''),'/6702/15402.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Lunch';
theSitetree.paletteFamily='616E30';
theSitetree.keyvisualId='3862';
theSitetree.keyvisualName='kv_3862.jpg';
theSitetree.fontsetId='10491';
theSitetree.graphicsetId='11065';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='748928';
var theTemplate={
				name: 			'Lunch',
				paletteFamily: 	'616E30',
				keyvisualId: 	'3862',
				keyvisualName: 	'kv_3862.jpg',
				fontsetId: 		'10491',
				graphicsetId: 	'11065',
				contentColor: 	'FFFFFF',
				contentBGColor: '748928',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'616E30',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'C9D894',
				e_color: 		'C9D894',
				f_color: 		'C9D894',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6702',
internalId:  '6702aam010ine1uo',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6703',
internalId:  '6702aam010ine1uo',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '15402',
internalId:  '100db81d5c4',
customField: 'g.12lgg2ehe.73p3fht16gpul.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20091110-115557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20091110-111849'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9028',
internalId:  '',
customField: '20091110-111958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20091110-115352'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20071113-161050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5703',
internalId:  '',
customField: '20091105-210103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9055',
internalId:  '',
customField: '20091110-160609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9082',
internalId:  '',
customField: '20091110-160627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9109',
internalId:  '',
customField: '20091110-160648'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9136',
internalId:  '',
customField: '20091110-114924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9163',
internalId:  '',
customField: '20091110-114634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5946',
internalId:  '',
customField: '20091105-210649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5757',
internalId:  '',
customField: '20071113-161738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9190',
internalId:  '',
customField: '20041207-151336'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9217',
internalId:  '',
customField: '20091105-205619'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9244',
internalId:  '',
customField: '20091105-205538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5784',
internalId:  '',
customField: '20041216-143325'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6702',
internalId:  '',
customField: '20040828-172522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5838',
internalId:  '',
customField: '20041214-115229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5865',
internalId:  '',
customField: '20041207-154157'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5892',
internalId:  '',
customField: '20041216-142836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6000',
internalId:  '',
customField: '20091105-205751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9271',
internalId:  '',
customField: '20071113-162119'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5730',
internalId:  '',
customField: '20091110-160547'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6703',
internalId:  '',
customField: '20040828-172522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15402',
internalId:  '',
customField: '20041216-120421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20091110-160530'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE1UO';
var companyName   = 'Vine+Adventure+Wine+Tours+2010';
var htmlTitle	  = 'Wine+Tours+Wine+Courses+Wine+Tasting+Vineyard+Visits+and+Vine+Adventures+in+the+Loire+Valley+France+Wine+Vacations+and+Holidays+and+Wine+Appreciation';
var metaKeywords  = 'Loire+wine+tastings%2C+Guided+wine+tours+Loire+valley.++Loire+wine+tours%2C++Loire+wine+tastings%2C+Loire+wine+tours%2C+Accomodation+in+the+Loire%2C+Loire+valley+tastings%2C+Wine+bike+tours%2C+Wine+Holidays%2C++Loire+Wine+courses%2C+Loire+vineyard+day+trips+from+Paris%2C+Loire+wine+tastings%2C++Guided+wine+tours+Loire+valley%2C+Private+wine+tours+Loire+Valley++Loire+wine+tours%2C+Luxury+wine+breaks%2C++Walking+cycling+wine+vacations+holidays%2C+++++';
var metaContents  = 'Vine+Adventure+is+a+site+devoted+to+Wine+Tours+Wine+Courses+and+Wine+Tasting+in+the+Loire+Valley+France.+Come+and+stay+in+the+heart+of+the+Loire+Valley+Vineyards+Taste+the+Wine%2C+Tour+the+Vineyards+and+Discover+the+fabulous+wines+that+the+region+has+to+offer.';
					                                                                    
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 */					                                                            
