/* [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('Le+Fer+a+Cheval+du+Batiment'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','16501',jdecode('Pavillon+de+L%26%23x27%3Bavenir'),jdecode(''),'/16501.html','true',[],''],
	['PAGE','42602',jdecode('MAISON+MAC+photos'),jdecode(''),'/42602.html','true',[],''],
	['PAGE','17801',jdecode('Piscine'),jdecode(''),'/17801.html','true',[],''],
	['PAGE','24501',jdecode('amenagement++'),jdecode(''),'/24501.html','true',[],''],
	['PAGE','22601',jdecode('VERANDA'),jdecode(''),'/22601.html','true',[],''],
	['PAGE','24528',jdecode('Charpente+bois++'),jdecode(''),'/24528.html','true',[],''],
	['PAGE','66101',jdecode('r%C3%A9alisation+sur+couverture'),jdecode(''),'/66101.html','true',[],''],
	['PAGE','35301',jdecode('r%C3%A9cup%C3%A9ration+d%26%23x27%3Beau+de+pluies'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','20201',jdecode('Carrelage'),jdecode(''),'/20201.html','true',[],''],
	['PAGE','20228',jdecode('Planch%C3%A9+Chauffant'),jdecode(''),'/20228.html','true',[],''],
	['PAGE','28163',jdecode('Chauffage+au+Gaz+fioul+et+Bois'),jdecode(''),'/28163.html','true',[],''],
	['PAGE','28244',jdecode('Combustibles'),jdecode(''),'/28244.html','true',[],''],
	['PAGE','32001',jdecode('%C3%A9nergies+Renouvelables'),jdecode(''),'/32001.html','true',[],''],
	['PAGE','28352',jdecode('Installations+%C3%A0+l%26%23x27%3B%C3%A9nergie+solaire'),jdecode(''),'/28352.html','true',[],''],
	['PAGE','28325',jdecode('Radiateurs'),jdecode(''),'/28325.html','true',[],''],
	['PAGE','37201',jdecode('FENETRES+ET+PORTES+ET+VOLETS'),jdecode(''),'/37201.html','true',[],''],
	['PAGE','28001',jdecode('ou+sommes-nous'),jdecode(''),'/28001.html','true',[],''],
	['PAGE','28406',jdecode('Services'),jdecode(''),'/28406.html','true',[],''],
	['PAGE','54901',jdecode('Qui+sommes-nous'),jdecode(''),'/54901/index.html','true',[ 
		['PAGE','54955',jdecode('O%C3%B9+nous+trouver'),jdecode(''),'/54901/54955.html','true',[],'']
	],''],
	['PAGE','67801',jdecode('R%C3%A9alisation+de+travaux+sur+videos'),jdecode(''),'/67801.html','true',[],''],
	['PAGE','68201',jdecode('videos+de+travaux'),jdecode(''),'/68201.html','true',[],''],
	['PAGE','89001',jdecode('Liens+favoris'),jdecode(''),'/89001.html','true',[],''],
	['PAGE','89022',jdecode('Contact'),jdecode(''),'/89022.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1223';
theSitetree.keyvisualName='buero.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='228';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1223',
				keyvisualName: 	'buero.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'228',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '7073643',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '42602',
internalId:  '10e145e59e8',
customField: 'g.12lgqbf9h.3br14rdcgq7ei.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20111227-080102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20110317-112211'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42602',
internalId:  '',
customField: '20070128-105430'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20110317-112345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20111217-113701'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20110317-112551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24528',
internalId:  '',
customField: '20110317-112627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20110317-112817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20110317-112911'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20228',
internalId:  '',
customField: '20110317-113128'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28163',
internalId:  '',
customField: '20111203-185034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67801',
internalId:  '',
customField: '20081128-220102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28244',
internalId:  '',
customField: '20110317-095207'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20110317-113323'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28352',
internalId:  '',
customField: '20070315-223622'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28325',
internalId:  '',
customField: '20060905-183438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37201',
internalId:  '',
customField: '20110323-101530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20110317-113624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28406',
internalId:  '',
customField: '20110317-113659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20081128-231856'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20110317-111425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66101',
internalId:  '',
customField: '20110317-112704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54955',
internalId:  '',
customField: '20070526-100438'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2DY4';
var companyName   = 'LE+FER+A+CHEVAL+DU+BATIMENT';
var htmlTitle	  = '++++++++++++++++++++LE+FER+A+CHEVAL+DU+BATIMENT';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

