/* [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','4599',jdecode('PAGE+D%26%23x27%3BACCUEIL%C2%80'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','44394',jdecode('POUR+NOUS+CONTACTER'),jdecode(''),'/44394/index.html','true',[ 
		['PAGE','44432',jdecode('POUR+NOUS+CONTACTER+%28volgende+pagina%29'),jdecode(''),'/44394/44432.html','false',[],'']
	],''],
	['PAGE','65214',jdecode('COMMENT+COMMANDER'),jdecode(''),'/65214.html','true',[],''],
	['PAGE','4930',jdecode('HORAIRES+ET+ACCES'),jdecode(''),'/4930.html','true',[],''],
	['PAGE','163212',jdecode('MENTIONS+LEGALES'),jdecode(''),'/163212.html','true',[],''],
	['PAGE','164612',jdecode('CONDITIONS+GENERALES+DE+VENTE'),jdecode(''),'/164612.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B5D3B5';
theSitetree.keyvisualId='1984';
theSitetree.keyvisualName='mtb.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='384';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B5D3B5',
				keyvisualId: 	'1984',
				keyvisualName: 	'mtb.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'384',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B5D3B5',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '8614779',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20110616-234217'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '44394',
internalId:  'aam010invbov1109c5a3277',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '44432',
internalId:  'aam010invbov1109c5a3277',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65214',
internalId:  '',
customField: '20110616-192303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4930',
internalId:  '',
customField: '20110616-191736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44394',
internalId:  '',
customField: '20110616-192143'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44432',
internalId:  '',
customField: '20070207-141741'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '163212',
internalId:  '',
customField: '20080215-154933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '164612',
internalId:  '',
customField: '20080308-171523'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVBOV';
var companyName   = 'VELO+ESPACE+93';
var htmlTitle	  = 'VELO+ESPACE+93';
var metaKeywords  = 'lumi%C3%A8res+eclairage+reelight%2C+promo+destockage+VTT%2Cpromos+destockage+velo%2Croute%2Cderailleur+AV+G+zero%2Cderailleur+ARR%2Coccasion+velo%2Cpieces+occasion%2Ccassette%2Cchaine%2Cpedalier+deore%2C++lumi%C3%A8res%2Coutillage%2C+lx%2C+xt%2C+xtr%2CPG+950%2CpG+970%2CPG+980';
var metaContents  = 'magasin+cycles%2C+nord+r%C3%A9gion+parisienne%2C+paris%2C+75%2C+77%2C+78%2C+91%2C+92%2C+94%2C+lumi%C3%A8res+eclairage+reelight%2C+pedalite%2C+potence+freelock%2C+wheelguard%2C+lderailleur+ARR+XTR%2C+XT%2C+deore%2C+cassettes%2C+formula%2C+hayes%2C++shimano%2C+sram%2C++campagnolo%2C+hutchinson%2C+michelin%2C+geax%2C+continental%2C+maxxis%2C+ritchey%2C+fourche+fox%2C+zero+RH%2C+Lapierre%2C+Scott%2C+BH%2C+kuota+';
					                                                                    
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 */					                                                            

