/* [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','156612',jdecode('Qui+sommes-nous'),jdecode(''),'/156612.html','true',[],''],
	['PAGE','452',jdecode('Contact'),jdecode(''),'/452.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Family';
theSitetree.paletteFamily='9ECDBA';
theSitetree.keyvisualId='3839';
theSitetree.keyvisualName='kv_3839.jpg';
theSitetree.fontsetId='10635';
theSitetree.graphicsetId='11020';
theSitetree.contentColor='4F4F4F';
theSitetree.contentBGColor='9ECDBA';
var theTemplate={
				name: 			'Family',
				paletteFamily: 	'9ECDBA',
				keyvisualId: 	'3839',
				keyvisualName: 	'kv_3839.jpg',
				fontsetId: 		'10635',
				graphicsetId: 	'11020',
				contentColor: 	'4F4F4F',
				contentBGColor: '9ECDBA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AEAEAF',
				e_color: 		'AEAEAF',
				f_color: 		'AEAEAF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '156612',
internalId:  '',
customField: '20100615-110915'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100505-042205'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '156612',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '452',
internalId:  '2798730',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLUA5';
var companyName   = 'Naturel+et+Bien+Etre';
var htmlTitle	  = 'plantcom+produits+naturels+et+de+bien+%C3%AAtre%2C+di%C3%A9t%C3%A9tique%2Chuile+essentielle%2Ccomplements+nutritionnels%2Cplantes+aromatiques';
var metaKeywords  = 'phytoth%C3%A9rapie%2C+plante%2C+cosm%C3%A9tique%2C+femme%2C+rencontre%2C+beaut%C3%A9+femme%2C+homme%2C+voyage%2C+bio%2C+biologique%2C+%C3%A9quitable%2Caromatique%2Cis%C3%A8re%2Cvizille%2C+38220%2C+jarrie%2C+champs+sur+drac%2Ccr%C3%A8me+de+jur%2C+themis%2C+cr%C3%A8me+anti+-%C3%A2ge%2C+jus+dalloer+vera%2C+hydratante%2C+maquillage%2Cphytoplant%2C+bioar%C3%B4me%2Cartisanat+sel%2C+vecteur+energy%2C+altereco%2Caromazone%2Cnature+et+progr%C3%A8s%2Cone+voice%2Csavon+dalep%2C+savon+v%C3%A9g%C3%A9tal%2Cginseng%2Ccadeaux%2Cvoyage%2Cmousse+%C3%A0+raser%2Capr%C3%A8s+rasage%2C';
var metaContents  = 'Vente+de+produits+cosm%C3%A9tiques+et+de+bien+%C3%AAtre%2C+produits+naturels%2Ccosm%C3%A9tiques+biologiques%2C+plantes+aromatiques%2C+huiles+essentielles%2C+elixirs+floraux%2C+elixirs+min%C3%A9raux%2C+th%C3%A9s+biologiques%2C+is%C3%A8re%2C+vizille%2C+jarie%2C+champs+sur+drac%2C+champagnier%2Cherbeys%2Claffrey%2C+montchaboud%2C+vaulnaveys%2C+sechilienne%2C+notre-dame-de-mesage%2Cvif%2Cshampooing%2C+savon+dalep%2C+huile+dargan%2Camandien%2Cpalntcom%2C80+avenue+aristide+briand+38220+';
					                                                                    
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 */					                                                            
