/* [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','2601',jdecode('Home'),jdecode(''),'/2601.html','true',[],''],
	['PAGE','7001',jdecode('Contacts'),jdecode(''),'/7001.html','true',[],''],
	['PAGE','8764',jdecode('R%C3%A9alisations'),jdecode(''),'/8764.html','true',[],''],
	['PAGE','8701',jdecode('Produits'),jdecode(''),'/8701/index.html','true',[ 
		['PAGE','8722',jdecode('Adduction+d%26%23x27%3Beau'),jdecode(''),'/8701/8722.html','true',[],''],
		['PAGE','8743',jdecode('Autres'),jdecode(''),'/8701/8743.html','true',[],'']
	],''],
	['PAGE','8785',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/8785.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='447';
theSitetree.graphicsetId='499';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'447',
				graphicsetId: 	'499',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'2C5574',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20080211-115546'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20110104-165350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8764',
internalId:  '',
customField: '20100330-150827'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20080118-152929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8722',
internalId:  '',
customField: '20080116-174500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8743',
internalId:  '',
customField: '20071024-155334'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8785',
internalId:  '',
customField: '20080123-115735'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '7001',
internalId:  '38063',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '2601',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLQJX';
var companyName   = 'CAFA++++++++++++++++++++Centrale++Achats++Franco++Africaine';
var htmlTitle	  = 'Centrale+Achats+Franco+Africaine';
var metaKeywords  = 'eau+potable%2Cadduction+deau%2Cexport+afrique%2Cburkina+faso%2C+pont+a+mousson+%2C+bayard%2C+grundfos%2Calldos%2C+canalisation%2Crobinet+%2C+robinet+vanne%2C+bride+%2C+cafa+%2C+cafaexport%2C+centrale+achas+francon+afriquaine%2CCAFA%2C+CAFA%2C+CAFAEXPORT%2C+adduction+eau%2C+afrique+noire+%2C+cameroun%2C+benin%2C+KAYA%2C+PVC%2C+raccord+en+fonte%2Cpompe%2C+forage%2C+eau%2C+coude%2C+manom%C3%A9tre%2C+t%C3%A9%2Cbride%2C+exportation%2C+kaya%2Ctuyau%2C+fonte%2C+';
var metaContents  = 'Exportation+de+materiel+dadduction+deau+en+Afrique+de+louest+.++partenaire+de+Pont+%C3%A0+mousson%3B+Bayard+%2C+Grundfos....++';
					                                                                    
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 */					                                                            

