/* [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('Accueil'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','7003',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/7003.html','true',[],''],
	['PAGE','7084',jdecode('Produits%2C+services'),jdecode(''),'/7084/index.html','true',[ 
		['PAGE','7111',jdecode('Parquets'),jdecode(''),'/7084/7111.html','true',[],''],
		['PAGE','7138',jdecode('Deck+ip%C3%A9+teck'),jdecode(''),'/7084/7138.html','true',[],''],
		['PAGE','7165',jdecode('Volets'),jdecode(''),'/7084/7165.html','true',[],''],
		['PAGE','27101',jdecode('Fen%C3%AAtres'),jdecode(''),'/7084/27101.html','true',[],'']
	],''],
	['PAGE','18701',jdecode('Tva+5.5+ou+19.6+%3F'),jdecode(''),'/18701/index.html','true',[ 
		['PAGE','19101',jdecode('Fomulaire+tva+5.5+%25'),jdecode(''),'/18701/19101.html','true',[],'']
	],''],
	['PAGE','7219',jdecode('Actualit%C3%A9s'),jdecode(''),'/7219/index.html','true',[ 
		['PAGE','7246',jdecode('Nouveaut%C3%A9s'),jdecode(''),'/7219/7246.html','true',[],''],
		['PAGE','7273',jdecode('Agenda'),jdecode(''),'/7219/7273.html','true',[],'']
	],''],
	['PAGE','7327',jdecode('Emplois'),jdecode(''),'/7327.html','true',[],''],
	['PAGE','7354',jdecode('Contact'),jdecode(''),'/7354/index.html','true',[ 
		['PAGE','7381',jdecode('T%C3%A9l%C3%A9phone%2C+Adresse'),jdecode(''),'/7354/7381.html','true',[],''],
		['PAGE','12502',jdecode('Acc%C3%A8s'),jdecode(''),'/7354/12502.html','true',[],'']
	],''],
	['PAGE','12225',jdecode('R%C3%A9f%C3%A9rences'),jdecode(''),'/12225.html','true',[],''],
	['PAGE','20101',jdecode('Blibliographie'),jdecode(''),'/20101.html','true',[],''],
	['PAGE','22001',jdecode('Liens'),jdecode(''),'/22001.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='3D5465';
theSitetree.keyvisualId='4606';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='307';
theSitetree.graphicsetId='364';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D5465';
var theTemplate={
				name: 			'Disco',
				paletteFamily: 	'3D5465',
				keyvisualId: 	'4606',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'307',
				graphicsetId: 	'364',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D5465',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3D5465',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20090603-075555'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '12502',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '10057444',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20090603-074026'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20090603-080505'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7111',
internalId:  '',
customField: '20070613-232013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7003',
internalId:  '',
customField: '20081026-150448'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7084',
internalId:  '',
customField: '20090531-194415'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12225',
internalId:  '',
customField: '20070614-000010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7138',
internalId:  '',
customField: '20090603-075204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12502',
internalId:  '',
customField: '20070614-002258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7219',
internalId:  '',
customField: '20070613-232014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7354',
internalId:  '',
customField: '20080127-132953'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '7354',
internalId:  '11775505',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7381',
internalId:  '',
customField: '20090529-094340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7165',
internalId:  '',
customField: '20090531-194813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7246',
internalId:  '',
customField: '20070613-232014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7273',
internalId:  '',
customField: '20070613-232014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7327',
internalId:  '',
customField: '20090529-094654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20080127-134842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20081026-150130'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20081026-150838'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN30HS';
var companyName   = 'Woodybat+le+batiment+avance';
var htmlTitle	  = 'WOODYBAT.FR-produits+et+services+du+b%C3%A2timent.';
var metaKeywords  = 'cloison%2Ccloisons%2Cplafond%2Cplafonds%2Cbois%2Cfer%2Calu%2Cpvc%2Cmarseille%2Cisolation%2C+phonique%2Cacoustique%2Cbardage%2Cbardeaux%2Cclin%2Clambris%2Cserrure%2Cporte%2Cportes%2Clivraisons%2Cpose%2Cposes%2Cproduits%2Cbatiment%2C';
var metaContents  = 'Woodybat+produits+et+services+pour+le+batiment.plafond%2Ccloison%2Cparquet%2CdallageIP%2Cbardage%2Cclin%2Cserrurerie%2Cblindage';
					                                                                    
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 */					                                                            

