/* [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('Accueil'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','65014',jdecode('Acheter+en+ligne'),jdecode(''),'/65014.html','true',[],''],
	['PAGE','5901',jdecode('Les+vins+d%26%23x27%3BAfrique+du+Sud'),jdecode(''),'/5901.html','true',[],''],
	['PAGE','36730',jdecode('Les+%22Champagnes%22+'),jdecode(''),'/36730/index.html','true',[ 
		['PAGE','36703',jdecode('Les+Cap+Classiques'),jdecode(''),'/36730/36703.html','true',[],''],
		['PAGE','5928',jdecode('Les+Exotiques'),jdecode(''),'/36730/5928.html','true',[],'']
	],''],
	['PAGE','55914',jdecode('Vin+de+Constance'),jdecode(''),'/55914.html','true',[],''],
	['PAGE','18903',jdecode('Les+vins+par+domaine'),jdecode(''),'/18903/index.html','true',[ 
		['PAGE','36757',jdecode('Allesverloren'),jdecode(''),'/18903/36757.html','true',[],''],
		['PAGE','96112',jdecode('Beyerskloof'),jdecode(''),'/18903/96112.html','true',[],''],
		['PAGE','36784',jdecode('Drostdy-Hof+'),jdecode(''),'/18903/36784.html','true',[],''],
		['PAGE','36811',jdecode('Fleur+du+Cap'),jdecode(''),'/18903/36811.html','true',[],''],
		['PAGE','36838',jdecode('Hill+%26+Dale'),jdecode(''),'/18903/36838.html','true',[],''],
		['PAGE','36865',jdecode('Jacobsdal'),jdecode(''),'/18903/36865.html','true',[],''],
		['PAGE','36892',jdecode('Neil+Ellis'),jdecode(''),'/18903/36892.html','true',[],''],
		['PAGE','36919',jdecode('Stellenzicht'),jdecode(''),'/18903/36919.html','true',[],''],
		['PAGE','36946',jdecode('Tukulu'),jdecode(''),'/18903/36946.html','true',[],''],
		['PAGE','36973',jdecode('Two+Oceans'),jdecode(''),'/18903/36973.html','true',[],''],
		['PAGE','79012',jdecode('Ixia'),jdecode(''),'/18903/79012.html','true',[],''],
		['PAGE','79033',jdecode('Ayama'),jdecode(''),'/18903/79033.html','true',[],''],
		['PAGE','79054',jdecode('Kanonkop'),jdecode(''),'/18903/79054.html','true',[],''],
		['PAGE','97412',jdecode('Kaapzicht'),jdecode(''),'/18903/97412.html','true',[],'']
	],''],
	['PAGE','61841',jdecode('Le+cidre+Savanna+Dry+'),jdecode(''),'/61841.html','true',[],''],
	['PAGE','5955',jdecode('Liqueur+AMARULA'),jdecode(''),'/5955.html','true',[],''],
	['PAGE','66464',jdecode('Barokes+Vins+en+canettes'),jdecode(''),'/66464.html','true',[],''],
	['PAGE','5601',jdecode('Manifestations'),jdecode(''),'/5601.html','true',[],''],
	['PAGE','20902',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/20902/index.html','true',[ 
		['PAGE','20903',jdecode('Entr%C3%A9es'),jdecode(''),'/20902/20903.html','true',[],'']
	],''],
	['PAGE','5982',jdecode('Liens'),jdecode(''),'/5982/index.html','true',[ 
		['PAGE','25103',jdecode('Moteurs+de+recherches'),jdecode(''),'/5982/25103.html','true',[],'']
	],''],
	['PAGE','4871',jdecode('Contacts'),jdecode(''),'/4871/index.html','true',[ 
		['PAGE','8911',jdecode('Contacts+%28volgende+pagina%29'),jdecode(''),'/4871/8911.html','false',[],'']
	],''],
	['PAGE','51702',jdecode('Faites+la+F%C3%AAte+%21'),jdecode(''),'/51702.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='A43F21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='157';
theSitetree.graphicsetId='182';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var theTemplate={
				name: 			'Natural',
				paletteFamily: 	'A43F21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'157',
				graphicsetId: 	'182',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'A43F21',
				b_color: 		'E76E3E',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4871',
internalId:  'aam010in3lvl109fe9722ef',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8911',
internalId:  'aam010in3lvl109fe9722ef',
customField: 'followUp'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4607',
internalId:  '7096259',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '20902',
internalId:  '20902aam010in3lvl',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '20903',
internalId:  '20902aam010in3lvl',
customField: 'action=list'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '5901',
internalId:  '10ab8127d49.bbc8a20a',
customField: 'fr:FR:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '55914',
internalId:  '10ddd3bbf8b.13e01718',
customField: 'fr:FR:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '5601',
internalId:  '10ab8135fdd.91f9d854',
customField: 'fr:FR:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '36703',
internalId:  '11f3bd67c54.762fc875',
customField: 'fr:FR:'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '51702',
internalId:  '10b90e90317',
customField: 'g.12lg2jmib.2g9i5cls87ivc.6rn80'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '36730',
internalId:  '10bcd38eeb7.ec7b3a80',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20090916-121758'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20902',
internalId:  '',
customField: '20060418-113853'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20903',
internalId:  '',
customField: '20060418-113854'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55914',
internalId:  '',
customField: '20090411-012514'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79012',
internalId:  '',
customField: '20090909-215057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20090909-214041'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090916-122148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36730',
internalId:  '',
customField: '20090909-172417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36703',
internalId:  '',
customField: '20090909-173607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5928',
internalId:  '',
customField: '20090909-221853'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18903',
internalId:  '',
customField: '20090610-220447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36757',
internalId:  '',
customField: '20090411-013651'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36784',
internalId:  '',
customField: '20090916-140824'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36811',
internalId:  '',
customField: '20090916-140313'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36838',
internalId:  '',
customField: '20090916-140452'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36865',
internalId:  '',
customField: '20090909-221025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36892',
internalId:  '',
customField: '20090916-140612'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36919',
internalId:  '',
customField: '20090909-221432'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36946',
internalId:  '',
customField: '20090909-220413'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36973',
internalId:  '',
customField: '20090909-221828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61841',
internalId:  '',
customField: '20090909-221922'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5955',
internalId:  '',
customField: '20090909-221942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66464',
internalId:  '',
customField: '20090909-213925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79033',
internalId:  '',
customField: '20090916-135227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79054',
internalId:  '',
customField: '20090916-140707'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5982',
internalId:  '',
customField: '20081110-210258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25103',
internalId:  '',
customField: '20060614-194145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4871',
internalId:  '',
customField: '20080408-124647'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8911',
internalId:  '',
customField: '20060315-164731'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51702',
internalId:  '',
customField: '20060724-112837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65014',
internalId:  '',
customField: '20090412-160250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '96112',
internalId:  '',
customField: '20090916-135948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97412',
internalId:  '',
customField: '20090909-214836'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3LVL';
var companyName   = '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++++Avec+nos+vins+commence+le+voyage...';
var htmlTitle	  = 'La+Compagnie+des+Vins+du+Nouveau+Monde';
var metaKeywords  = 'vin+afrique+du+sud%2C+vins+afrique+du+sud%2C+compagnie+des+vins+du+nouveau+monde%2Cvins+du+monde%2Cnouveau+monde%2Cvins+dAfrique+du+Sud%2C+Champagnes%2C+mariages%2Csparkling+wines%2Cvins+blancs%2Cvins+rouges%2Cros%C3%A9s%2Cvins+sud+africains%2C+Pongracz%2CAmarula%2Crooibos%2CJC+le+Roux%2Cla+chanson+%2Cle+domaine%2C+sauvignon+blanc%2Cshiraz%2Cfleur+du+cap%2Ctukulu%2Cchenin+blanc%2CDevon+Valley%2C+Stellenbosh%2C+Desiderius%2Cvoyage%2Cf%C3%AAte%2Cconvivialit%C3%A9%2C+p%C3%A9tillants%2C+pinotage%2Cpinot+noir+ros%C3%A9%2C+chardonnay%2Ctwo+oceans%2Ctendance%2C+Afrique+du+sud%2C+vin+de+Constance%2C+vins+en+canette%2C+cannettes%2CDrostdy+Hof%2CCape+Red%2CSavanna%2C+Hill++dale%2CFleur+du+Cap%2C+Vin+de+Constance+2002%2CKlein+Constantia%2Cpinotage%2C+Allesverloren%2CTinta+Barocca%2C+ayama%2C+Kanonkop%2C+beyerskloof%2C+vriesenhof%2C+Ayama%2CIxia%2CPaarl%2CKlein+Constantia%2CSavanna%2Ckaapzicht%2Cachat+vin+Dry%2Cfannydrink.com%2Cwww.fanny-drink.com%2C+continent+du+vin%2Cstellenzicht%2C+meerlust%2C';
var metaContents  = 'Le+site+contient+une+pr%C3%A9sentation+des+vins+d+Afrique+du+Sud+vendus+par+la+Compagnie+des+Vins+du+Nouveau+Monde.+La+plus+large+gamme+de+vins+d+Afrique+du+Sud+provenant+des+plus+prestigieux+domaines';
					                                                                    
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 */					                                                            
