/* [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','501',jdecode('L%26%23x27%3BENTREPRISE'),jdecode(''),'/501.html','true',[],''],
	['PAGE','5622',jdecode('LA+VAISSELLE'),jdecode(''),'/5622.html','true',[],''],
	['PAGE','5601',jdecode('LE+MOBILIER'),jdecode(''),'/5601.html','true',[],''],
	['PAGE','552',jdecode('TENTES+PLIANTES'),jdecode(''),'/552.html','true',[],''],
	['PAGE','594',jdecode('LES+ACCESSOIRES+'),jdecode(''),'/594.html','true',[],''],
	['PAGE','615',jdecode('PETITS+MATERIELS'),jdecode(''),'/615.html','true',[],''],
	['PAGE','657',jdecode('MOBILIER+LUMINEUX'),jdecode(''),'/657.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='843';
theSitetree.keyvisualName='sektflasche.jpg';
theSitetree.fontsetId='161';
theSitetree.graphicsetId='194';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Neon',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'843',
				keyvisualName: 	'sektflasche.jpg',
				fontsetId: 		'161',
				graphicsetId: 	'194',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20120106-131142'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20120106-133047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20120105-101136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20120106-132919'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20120106-132046'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20120106-133138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20111230-154940'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '501',
internalId:  '2117753',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLT8U';
var companyName   = 'AF+EQUIPEMENTS';
var htmlTitle	  = 'location+de+materiel+de+reception+vaisselle';
var metaKeywords  = 'location+housse+de+chaises%2C+location+chaises%2C+location+table+rondes%2C+location+tables+rectangulaires%2C+location+potelets+%2B+cordons%2C+location+chapiteaux%2C+location+tentes%2C+decoration%2C+mange-debout+%2C+gueridon%2C+location+eclairage%2C+spots%2C+scene%2C+plancher%2C+praticable%2Clocation+wc+chimique%2Clocation+de+vaisselle%2Cnappes%2Cserviettes%2Ccouverts%2Cverres%2Corganisation+evenements%2Clocation+materiel+de+reception%2Cbayonne%2Canglet+sud-ouest%2Clandes+nappage%2Cpays+basque%2Caquitaine%2Corganisation+mariage';
var metaContents  = 'location+de+mat%C3%A9riel+de+r%C3%A9ception%2C+chapiteaux%2C+tentes%2C+mobilier%2C+d%C3%A9coration%2C+accessoires%2C+wc+chimiques%2C+organisation+d%C3%A9v%C3%A8nements+bayonne+64+sud+ouest+aquitaine+vaisselle+nappage+%2Chousse+de+chaise%2C+location+vaisselle%2CORGANISATION+MARIAGE';
					                                                                    
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 */					                                                            

