/* [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','401',jdecode('Accueil'),jdecode(''),'/401.html','true',[],''],
	['PAGE','56201',jdecode('Ev%C3%A8nements'),jdecode(''),'/56201.html','true',[],''],
	['PAGE','452',jdecode('Qui+Sommes+Nous'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Notre+Philosophie+'),jdecode(''),'/473.html','true',[],''],
	['PAGE','578',jdecode('Comment+proc%C3%A9dons+nous'),jdecode(''),'/578.html','true',[],''],
	['PAGE','599',jdecode('Nos+Eco-Materiaux'),jdecode(''),'/599/index.html','true',[ 
		['PAGE','620',jdecode('Murs+Isolants'),jdecode(''),'/599/620.html','true',[],''],
		['PAGE','641',jdecode('Couverture+moderne'),jdecode(''),'/599/641.html','true',[],''],
		['PAGE','704',jdecode('Charpente+performante'),jdecode(''),'/599/704.html','true',[],''],
		['PAGE','49401',jdecode('Isolation+par+l%26%23x27%3Bexterieur'),jdecode(''),'/599/49401.html','true',[],'']
	],''],
	['PAGE','683',jdecode('Visuels+de+Maisons'),jdecode(''),'/683.html','true',[],''],
	['PAGE','725',jdecode('Id%C3%A9es+de+Plans'),jdecode(''),'/725.html','true',[],''],
	['PAGE','45001',jdecode('Photos+de+chantiers'),jdecode(''),'/45001.html','true',[],''],
	['PAGE','746',jdecode('Respect+des+Normes'),jdecode(''),'/746.html','true',[],''],
	['PAGE','809',jdecode('Liens+Utiles'),jdecode(''),'/809.html','true',[],''],
	['PAGE','830',jdecode('Nous+Contacter'),jdecode(''),'/830.html','true',[],''],
	['PAGE','851',jdecode('Nos+Engagements'),jdecode(''),'/851.html','true',[],''],
	['PAGE','24301',jdecode('Lexique'),jdecode(''),'/24301.html','true',[],''],
	['PAGE','63401',jdecode('Forum'),jdecode(''),'/63401.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='6C6C6C';
theSitetree.keyvisualId='8166';
theSitetree.keyvisualName='kv_8166.jpg';
theSitetree.fontsetId='17013';
theSitetree.graphicsetId='12401';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6C6C6C';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'6C6C6C',
				keyvisualId: 	'8166',
				keyvisualName: 	'kv_8166.jpg',
				fontsetId: 		'17013',
				graphicsetId: 	'12401',
				contentColor: 	'FFFFFF',
				contentBGColor: '6C6C6C',
				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:  '401',
internalId:  '',
customField: '20110614-174229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20110414-140503'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20110305-115852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110614-172203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20080531-132647'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20090124-193445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20110614-172508'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20100316-124558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20110305-123648'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '401',
internalId:  '11925403ba3.965b93b4',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20080620-130522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20110305-104809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20110305-104147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20090920-210133'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20090124-144416'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20100109-172000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56201',
internalId:  '',
customField: '20100316-152213'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '452',
internalId:  '12766b5177e.c040fbae',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20110305-111551'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '830',
internalId:  '2356970',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '2367766',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20110305-111721'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20101208-133921'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '63401',
internalId:  'aam010inl6ro12cc5e0102e',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INL6RO';
var companyName   = 'Cr%C3%A9ativ+%27Habitat%2C+construire+autrement';
var htmlTitle	  = 'Creativ+Habitat%2C+les+maisons+en+b%C3%A9ton+cellulaire';
var metaKeywords  = 'Thermopierre%2C+siporex%2C+Construire%2C+Construction%2C+Maisons%2C+Habitat%2C+Habitation%2C+moderne%2C+cr%C3%A9ative%2C+accessibles%2C+%C3%A9conomiques%2C+%C3%A9cologiques%2C+diff%C3%A9rentes%2C+de+caract%C3%A8re%2C+de+style%2C+jolies+maisons%2C+solides%2C+siporex%2C+monomur%2C+plan%2C+isolation%2C+lumineuse%2C+belle%2C+qualit%C3%A9%2C+batir%2C+pau%2C+logement%2C+b%C3%A9arn%2C+serres-castet%2C+professionnel%2C+m%C3%A9tier%2C+constructeur%2C+creative%2C+creativ%2C+isolation+par+l+exterieur%2C+b%C3%A9ton+cellulaire%2C';
var metaContents  = 'Construire+Autrement+avec+CREATIV+HABITAT.+Des+maisons+modernes+et+accessibles%2C+simples+mais+de+style%2C+lumineuses+et+chaleureuses%2C+%C3%A9conomiques+et+riche+en+plaisir+dy+vivre.+Ch%C3%A9ativ+Habitat+vous+offre+des+maisons+qui+valorisent+l+environnement.+Ces+habitations+optimisent+les+ressources+naturelles+%3A+lumi%C3%A8re%2C+chaleur%2C+la+fraicheur%2C+etc.+Cr%C3%A9ativ+Habitat+est+install%C3%A9+dans+le+B%C3%A9arn+%C3%A0+Serres+Castet%2C+isolation+par+l+exterieur';
					                                                                    
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 */					                                                            

