/* [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','4597',jdecode('Accueil'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','15217',jdecode('Programmes'),jdecode(''),'/15217/index.html','true',[ 
		['PAGE','97812',jdecode('Les+Magnolias'),jdecode(''),'/15217/97812.html','true',[],''],
		['PAGE','15298',jdecode('Les+Violettes'),jdecode(''),'/15217/15298.html','true',[],'']
	],''],
	['PAGE','15325',jdecode('Terrains'),jdecode(''),'/15325/index.html','true',[ 
		['PAGE','112012',jdecode('Les+Jardins+d%26%23x27%3BEug%C3%A9nie'),jdecode(''),'/15325/112012.html','true',[],'']
	],''],
	['PAGE','96712',jdecode('Vous+vendez'),jdecode(''),'/96712.html','true',[],''],
	['PAGE','105212',jdecode('Pour+nous+contacter'),jdecode(''),'/105212.html','true',[],''],
	['PAGE','24102',jdecode('Album+photos'),jdecode(''),'/24102.html','true',[],''],
	['PAGE','15136',jdecode('Qui+sommes-nous'),jdecode(''),'/15136.html','true',[],''],
	['PAGE','31901',jdecode('Liens+utiles'),jdecode(''),'/31901.html','true',[],''],
	['PAGE','25408',jdecode('Mentions+l%C3%A9gales'),jdecode(''),'/25408/index.html','true',[ 
		['PAGE','24802',jdecode('Contact+%28volgende+pagina%29'),jdecode(''),'/25408/24802.html','false',[],'']
	],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '96712',
internalId:  '',
customField: '20100803-083340'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '24102',
internalId:  '1155acf4e3b',
customField: 'REALISATIONS'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '24802',
internalId:  'aam010inlq9i1155adf00ec',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20111017-074603'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24102',
internalId:  '',
customField: '20071001-111504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15136',
internalId:  '',
customField: '20100803-083438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15217',
internalId:  '',
customField: '20111128-102459'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15298',
internalId:  '',
customField: '20100616-142302'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4597',
internalId:  '10630421',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '112012',
internalId:  '',
customField: '20111128-102107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15325',
internalId:  '',
customField: '20111017-180133'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '105212',
internalId:  '',
customField: '20100803-083045'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24802',
internalId:  '',
customField: '20071001-112145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97812',
internalId:  '',
customField: '20111128-102434'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25408',
internalId:  '',
customField: '20100415-093711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20071222-115812'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLQ9I';
var companyName   = 'JOUBERT+IMMOBILIER+';
var htmlTitle	  = 'JOUBERT+IMMOBILIER';
var metaKeywords  = 'programme+immobilier+THPE%3Bprogramme+immobilier+HQE%3B+promoteur+THPE%3Bpromoteur+HQE%3Bpromoteur+immobilier+THPE+dans+le+rh%C3%B4ne%3B+vente+de+terrains%3B+immobilier+rhone%3B+RT2005%3B+RT2010%3B+BETON+CELLULAIRE%3B+THPE%3BHPE%3BHQE%3Blocation%3Bimmobilier+neuf%3BCHAMPAGNE+AU+MONT+DOR%3B+COLLONGES+AU+MONT+DOR%3B+OUEST+LYONNAIS%3BBBC';
var metaContents  = 'Promoteur+immobilier+sur+Lyon+et+lOuest+Lyonnais%2C+r%C3%A9alisation+de+programmes++cl%C3%A9s+en+mains+THPE%2C+maisons+BBC%2C+achat+et+vente+de+terrains+%C3%A0+b%C3%A2tir%2C+location+de+maisons';
					                                                                    
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 */					                                                            

