/* [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('Accueil'),jdecode(''),'/2601.html','true',[],''],
	['PAGE','601',jdecode('Prestations'),jdecode(''),'/601.html','true',[],''],
	['PAGE','28701',jdecode('Home'),jdecode(''),'/28701.html','true',[],''],
	['PAGE','28722',jdecode('Services'),jdecode(''),'/28722.html','true',[],''],
	['PAGE','23001',jdecode('Contact'),jdecode(''),'/23001.html','true',[],''],
	['PAGE','29606',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/29606/index.html','true',[ 
		['PAGE','29601',jdecode('Entr%C3%A9es'),jdecode(''),'/29606/29601.html','true',[],'']
	],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='396';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1E3A6F';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'396',
				contentColor: 	'FFFFFF',
				contentBGColor: '1E3A6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'1E3A6F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20101006-155001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20101006-155150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20101006-160620'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '2601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20101006-155254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28722',
internalId:  '',
customField: '20101006-155924'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '29606',
internalId:  '29606aam010inlint',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '29601',
internalId:  '29606aam010inlint',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29606',
internalId:  '',
customField: '20090723-100415'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20090723-100415'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLINT';
var companyName   = 'A.M.C';
var htmlTitle	  = 'AMC';
var metaKeywords  = 'r%C3%A9paration+navale%2C+automatis%C3%A9%2C+pneumatique%2C+Rexroth%2C+hydraulique%2C+hydraulicien%2C+flexible%2C+moteur%2C+diesel%2C+bateau%2C+propulsion%2C+Steyr+motors%2C+steyr+motors+hybrid%2C+groupe+%C3%A9lectrog%C3%A8ne%2C+commande+moteur%2C+beggiora%2C+pernechele%2C+La+Ciotat%2C+M%C3%A9diterrann%C3%A9e';
var metaContents  = 'Automatisme+Marine+Consultant%2C+r%C3%A9parateur+naval+de+bateau+de+plaisance%2C+installation+et+r%C3%A9paration+syst%C3%A8me+hydrauliques%2Cpneumatiques+automatis%C3%A9s+%28stabilisateurs%2C+grues%2C+passerelles%2C+centrales+hydrauliques%29%2C+installation+commandes+moteur+Rexroth%2C+fournisseur+de+flexibles+hydrauliques+et+m%C3%A9canique+diesel+%28moteur+de+propulsions+et+groupe+%C3%A9lectrog%C3%A8ne%29...dans+les+bouches+du+Rhone+et+l%C3%A0+o%C3%B9+souhaite+le+client.';
					                                                                    
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 */					                                                            

