/* [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','1001',jdecode('+Les+API+4'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','1052',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/1052/index.html','true',[ 
		['PAGE','3301',jdecode('Notre+%C3%A9quipe'),jdecode(''),'/1052/3301.html','true',[],''],
		['PAGE','1073',jdecode('O%C3%B9+nous+trouver'),jdecode(''),'/1052/1073.html','true',[],'']
	],''],
	['PAGE','3322',jdecode('Nos+productions+'),jdecode(''),'/3322.html','true',[],''],
	['PAGE','3343',jdecode('Commande+en+ligne'),jdecode(''),'/3343.html','true',[],''],
	['PAGE','3364',jdecode('Op%C3%A9rations+sp%C3%A9ciales'),jdecode(''),'/3364.html','true',[],''],
	['PAGE','1115',jdecode('infos+et+liens+utiles'),jdecode(''),'/1115.html','true',[],''],
	['PAGE','3385',jdecode('Calendrier+'),jdecode(''),'/3385.html','true',[],''],
	['PAGE','3406',jdecode('Contact'),jdecode(''),'/3406.html','true',[],''],
	['PAGE','3427',jdecode('les+abeilles+et+le+miel'),jdecode(''),'/3427.html','true',[],''],
	['PAGE','3448',jdecode('mention+d%26%23x27%3BImpression'),jdecode(''),'/3448.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Animal';
theSitetree.paletteFamily='519D4A';
theSitetree.keyvisualId='4292';
theSitetree.keyvisualName='kv_4292.jpg';
theSitetree.fontsetId='10791';
theSitetree.graphicsetId='11210';
theSitetree.contentColor='194F14';
theSitetree.contentBGColor='D0E3CE';
var theTemplate={
				name: 			'Animal',
				paletteFamily: 	'519D4A',
				keyvisualId: 	'4292',
				keyvisualName: 	'kv_4292.jpg',
				fontsetId: 		'10791',
				graphicsetId: 	'11210',
				contentColor: 	'194F14',
				contentBGColor: 'D0E3CE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'519D4A',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20111227-185904'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1001',
internalId:  '11936961',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20110201-183818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100811-181236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1073',
internalId:  '',
customField: '20100817-165941'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3322',
internalId:  '',
customField: '20110819-150642'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1115',
internalId:  '',
customField: '20111124-155244'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3343',
internalId:  '',
customField: '20100826-174109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3364',
internalId:  '',
customField: '20120101-215659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3385',
internalId:  '',
customField: '20120201-155312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3406',
internalId:  '',
customField: '20110504-162417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3427',
internalId:  '',
customField: '20110315-112510'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3448',
internalId:  '',
customField: '20110218-151637'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '3406',
internalId:  '11936997',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLW0I';
var companyName   = 'LA+MIELLERIE+DE+MAGALI';
var htmlTitle	  = 'MIELS+de+Bourgogne++%C3%A0+LA+MIELLERIE+DE+MAGALI+LES+API+4';
var metaKeywords  = 'miel+de+Bourgogne%2C+miels+de+Bourgogne%2C+Burgundy+honeys%2C+Burgunder++honige%2Cmiel+PERRONNEAU%2C+GADREAU++Jacqueline+Paul+Herv%C3%A9+Jo%C3%AAl+Ren%C3%A9+%2C+reines+dabeilles%2C+ruches%2C++ruchettes%2C++ruchers%2C+essaims+%2Cproduction+artisanale+de+Bourgogne%2C+famille+PERRONNEAU+Dijon++META+NAME%3DTITLE+CONTENT%3DMiel+de+Bourgogne++META+NAME%3DAUTHOR+CONTENT%3DJacqueline+GADREAU-PERRONNEAU++META+NAME%3DOWNER+CONTENT%3Dapi4%40orange.fr++META+NAME%3DSUBJECT+CONTENT%3Dmiels+et+produits+de+la+ruche+apiculteurs+r%C3%A9coltants++META+NAME%3DRATING+CONTENT%3Dnature%2C+alimentation++META+NAME%3DDESCRIPTION+CONTENT%3Dactivit%C3%A9s+apicoles+et+productions+familales+de+miels+et+produits+de+la+ruche++META+NAME%3DABSTRACT+CONTENT%3Dactivit%C3%A9s+apicoles+et+productions+familales+de+miels+et+produits+de+la+ruche++META+NAME%3DKEYWORDS+CONTENT%3Dmiel%2C+abeilles%2C+ruches%2C+miel+Dijon%2C+miel+Perronneau%2C+Bourgogne%2C+apiculteur%2C+apiculture%2C+essaims++META+NAME%3DREVISIT-AFTER+CONTENT%3D8+DAYS++META+NAME%3DLANGUAGE+CONTENT%3DFR++META+NAME%3DROBOTS+CONTENT%3DAll++';
var metaContents  = 'abeilles%2C+fleurs%2C+miel%2C+miel++de+Bourgogne%2C+apiculture+raisonn%C3%A9e+familiale%2C+transhumance%2C+miels+de+crus++de+Bourgogne%2C+aub%C3%A9pine+colza%2C+jach%C3%A8res+fleuries%2C+tournesols%2C+sapin%2C+miel+en+rayons%2C+';
					                                                                    
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 */					                                                            

