/* [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','322',jdecode('LA+NEF+des+LIVRES'),jdecode(''),'/322.html','true',[],''],
	['PAGE','155544',jdecode('NOS+REFERENCEMENTS'),jdecode(''),'/155544.html','true',[],''],
	['PAGE','390909',jdecode('LISTE+ALPHABETIQUE'),jdecode(''),'/390909.html','true',[],''],
	['PAGE','431520',jdecode('NOUVEAUX+TITRES'),jdecode(''),'/431520.html','true',[],''],
	['PAGE','390309',jdecode('BOTANIQUE+d%26%23x27%3BICI...'),jdecode(''),'/390309.html','true',[],''],
	['PAGE','390330',jdecode('*+La+diversit%C3%A9+des+plantes'),jdecode(''),'/390330.html','true',[],''],
	['PAGE','390351',jdecode('*+Les+flores+et+atlas+de+flores'),jdecode(''),'/390351.html','true',[],''],
	['PAGE','390372',jdecode('*+Les+guides'),jdecode(''),'/390372.html','true',[],''],
	['PAGE','390393',jdecode('*+Autour+des+plantes'),jdecode(''),'/390393.html','true',[],''],
	['PAGE','390414',jdecode('*+Culture+bio-%C3%A9cologique'),jdecode(''),'/390414.html','true',[],''],
	['PAGE','390435',jdecode('*+Dictionnaires+de+botanique'),jdecode(''),'/390435.html','true',[],''],
	['PAGE','390456',jdecode('*+R%C3%A9flexions+et+pens%C3%A9es'),jdecode(''),'/390456.html','true',[],''],
	['PAGE','390477',jdecode('*+Ecrits+des+anciens'),jdecode(''),'/390477.html','true',[],''],
	['PAGE','390519',jdecode('*+Terroir+et+art+des+jardins'),jdecode(''),'/390519.html','true',[],''],
	['PAGE','390540',jdecode('BOTANIQUE+d%26%23x27%3BAILLEURS...'),jdecode(''),'/390540.html','true',[],''],
	['PAGE','391056',jdecode('*+A+l%26%23x27%3Best+de+la+M%C3%A9diterran%C3%A9e'),jdecode(''),'/391056.html','true',[],''],
	['PAGE','390993',jdecode('*+Afrique+du+Nord'),jdecode(''),'/390993.html','true',[],''],
	['PAGE','391014',jdecode('*+Afrique'),jdecode(''),'/391014.html','true',[],''],
	['PAGE','412920',jdecode('*+Oc%C3%A9an+indien+et+Pacifique'),jdecode(''),'/412920.html','true',[],''],
	['PAGE','412941',jdecode('*+Antilles+et+Am%C3%A9rique'),jdecode(''),'/412941.html','true',[],''],
	['PAGE','391077',jdecode('*+Extr%C3%AAme-orient'),jdecode(''),'/391077.html','true',[],''],
	['PAGE','379909',jdecode('LIVRES+ANCIENS'),jdecode(''),'/379909.html','true',[],''],
	['PAGE','391161',jdecode('REPRODUCTION+OUVRAGES'),jdecode(''),'/391161.html','true',[],''],
	['PAGE','122748',jdecode('BON+de+COMMANDE'),jdecode(''),'/122748.html','true',[],''],
	['PAGE','427720',jdecode('PAIEMENT+CB%2FPAYPAL'),jdecode(''),'/427720.html','true',[],''],
	['PAGE','166555',jdecode('INFORMATIONS+DIVERSES'),jdecode(''),'/166555.html','true',[],''],
	['PAGE','208255',jdecode('***SITES+AMIS***'),jdecode(''),'/208255.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='536300';
theSitetree.keyvisualId='8138';
theSitetree.keyvisualName='kv_8138.jpg';
theSitetree.fontsetId='17012';
theSitetree.graphicsetId='12398';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='536300';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'536300',
				keyvisualId: 	'8138',
				keyvisualName: 	'kv_8138.jpg',
				fontsetId: 		'17012',
				graphicsetId: 	'12398',
				contentColor: 	'FFFFFF',
				contentBGColor: '536300',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '322',
internalId:  '',
customField: '20111110-191132'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '427720',
internalId:  '',
customField: '20110411-155805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '391077',
internalId:  '',
customField: '20111114-135657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390993',
internalId:  '',
customField: '20111114-133035'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '391014',
internalId:  '',
customField: '20111114-133647'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '322',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '322',
internalId:  '1750960',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390393',
internalId:  '',
customField: '20111113-143817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390414',
internalId:  '',
customField: '20111113-143555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '122748',
internalId:  '',
customField: '20091220-113640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390456',
internalId:  '',
customField: '20111113-143338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390477',
internalId:  '',
customField: '20111113-165131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390519',
internalId:  '',
customField: '20111114-122926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390540',
internalId:  '',
customField: '20101107-172702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '412920',
internalId:  '',
customField: '20111114-134823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390435',
internalId:  '',
customField: '20111113-141707'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390330',
internalId:  '',
customField: '20111113-144406'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155544',
internalId:  '',
customField: '20111114-143903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390351',
internalId:  '',
customField: '20111113-144050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390372',
internalId:  '',
customField: '20111113-143930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '166555',
internalId:  '',
customField: '20111114-135530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '391056',
internalId:  '',
customField: '20111114-132243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '208255',
internalId:  '',
customField: '20111114-161204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '379909',
internalId:  '',
customField: '20091219-180324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390309',
internalId:  '',
customField: '20111113-144443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390909',
internalId:  '',
customField: '20111110-185437'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '412941',
internalId:  '',
customField: '20111114-135036'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '391161',
internalId:  '',
customField: '20101107-195736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '431520',
internalId:  '',
customField: '20111110-203201'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLUK7';
var companyName   = 'Librairie+La+Nef+des+Livres';
var htmlTitle	  = 'Librairie+La+Nef+des+Livres';
var metaKeywords  = 'librairie%2C+livres%2C+nef+des+livres%2C+botanique%2C+ethnobotanique%2C+plantes%2C+palmiers%2C+fleurs%2C+jardins%2C+cam%C3%A9lias%2C+palmiers%2C+bougainvilliers%2C+graines%2C+parcs%2C+arboretum%2C+conservatoires%2C+connaissances%2C+pivoines%2C+fleurs+des+champs%2C+des+montagnes%2C+m%C3%A9dicinales+';
var metaContents  = 'librairie+sp%C3%A9cialis%C3%A9e+en+botanique%2C+ethnobotanique%2C+connaissance+des+arbres%2C+des+plantes%2C+des+jardins+et+des+fleurs';
					                                                                    
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 */					                                                            

