/* [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','4559',jdecode('Accueil'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','9301',jdecode('CONTACT'),jdecode(''),'/9301.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='7575CE';
theSitetree.keyvisualId='3362';
theSitetree.keyvisualName='kv_3362.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10738';
theSitetree.contentColor='5757DA';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'7575CE',
				keyvisualId: 	'3362',
				keyvisualName: 	'kv_3362.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10738',
				contentColor: 	'5757DA',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'1B1B6F',
				e_color: 		'1B1B6F',
				f_color: 		'1B1B6F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '9301',
internalId:  '12938771',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20100113-115946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20100113-120438'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEYP6';
var companyName   = 'ConstruireSaPiscine.com';
var htmlTitle	  = 'ConstruireSaPiscine.com+%3A+toutes+les+techniques+pour+construire+sa+piscine+traditionnelle+simplement';
var metaKeywords  = 'e-book-construiresapiscine+construire-sa-piscine+ebook+piscine+piscines+bassin+beton+tarif+prix+devis+couler+traditionnelle+technique+techniques+truc+astuce+batir+construire+construction+documentation+quantitatif+quantitatifs+bloc+bancher+skimmer+refoulement+bonde+prise+balai+eau+traitement+pompe+filtre+filtration+escalier+materiaux+projet+cout+construire+sa+piscine+technique+devis+etude+securite+plan+lien+autoconstructeur+particulier+balneotherapie+musique+aquatique+hydrotherapie+ph+cartouche';
var metaContents  = 'Le+site+Construire+Sa+Piscine+.com+est+destin%C3%A9+%C3%A0+ceux+dont+l+objectif+est+la+construction+de+leur+piscine+traditionnelle+en+b%C3%A9ton.+Vous+pourrez+nous+contacter+afin+d+obtenir+une+%C3%A9tude+personnalis%C3%A9e%2C+de+la+pr%C3%A9paration+du+projet+%C3%A0+la+r%C3%A9alisation+compl%C3%A8te+de+la+construction.+Construire+sa+piscine+%3A+Nous+d%C3%A9terminerons+pour+vous+le+chiffrage+estimatif+de+la+solution+choisie.+Selon+le+choix+des+mat%C3%A9riaux+%28blocs+%C3%A0+bancher%2C+agglos+parpaings%29%2C+le+choix+des+finitions+de+votre+piscine+%28peinture%2C+liner%2C+enduits%2C+pate+ou+emaux+de+verre%29.+Nous+vous+transmettrons+%C3%A9tudes+et+quantitatifs%2C+sch%C3%A9mas+de+montage%2C+faconnages+des+armatures+du+b%C3%A9ton.+Mais+aussi+les+protections+et+s%C3%A9curit%C3%A9s+obligatoires%2C+les+options+%28nage+%C3%A0+contre+courant%2C+piscine+%C3%A0+d%C3%A9bordement%2C+spa%2C+jacuzzi%2C+musique+aquatique+de+piscine%2C+chauffage...+%29.+LE+SITE+POUR+CONSTRUIRE+SA+PISCINE+TRADITIONNELLE+SIMPLEMENT+c+est+construiresapiscine.com+et+vous+verrez+quil+devient+maintenant+tr%C3%A8s+facile+de+r%C3%A9aliser+soi-m%C3%AAme+sa+piscine+b%C3%A9ton+traditionnelle.+';
					                                                                    
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 */					                                                            
