/* [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','4558',jdecode('Activit%C3%A9+%26+catalogue'),jdecode(''),'/4558/index.html','true',[ 
		['PAGE','22718',jdecode('L%C3%A9gislation'),jdecode(''),'/4558/22718.html','true',[],''],
		['PAGE','17850',jdecode('Assurance+qualit%C3%A9'),jdecode(''),'/4558/17850.html','true',[],''],
		['PAGE','22745',jdecode('Nos+CGV'),jdecode(''),'/4558/22745.html','true',[],'']
	],''],
	['PAGE','85001',jdecode('Activities+%26+catalogue'),jdecode(''),'/85001/index.html','true',[ 
		['PAGE','85578',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/85001/85578.html','false',[],'']
	],''],
	['PAGE','17877',jdecode('Contact+%2F+Contact+us'),jdecode(''),'/17877/index.html','true',[ 
		['PAGE','29502',jdecode('Nous+contacter+%28volgende+pagina%29'),jdecode(''),'/17877/29502.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Time';
theSitetree.paletteFamily='401A1A';
theSitetree.keyvisualId='2301';
theSitetree.keyvisualName='industrie.jpg';
theSitetree.fontsetId='268';
theSitetree.graphicsetId='338';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Time',
				paletteFamily: 	'401A1A',
				keyvisualId: 	'2301',
				keyvisualName: 	'industrie.jpg',
				fontsetId: 		'268',
				graphicsetId: 	'338',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'4D1A1A',
				b_color: 		'C55050',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17877',
internalId:  'aam010in35jc1050717f8ca',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '29502',
internalId:  'aam010in35jc1050717f8ca',
customField: 'followUp'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4558',
internalId:  '5354514',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '85578',
internalId:  'aam010in35jc10d78d7c611',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20060909-184031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17877',
internalId:  '',
customField: '20060905-112033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20091014-004815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22718',
internalId:  '',
customField: '20050728-212535'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17850',
internalId:  '',
customField: '20050728-213208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22745',
internalId:  '',
customField: '20050728-214746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85578',
internalId:  '',
customField: '20060904-144009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29502',
internalId:  '',
customField: '20050711-201115'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN35JC';
var companyName   = 'STAS+-+Accessoires+de+levage';
var htmlTitle	  = 'STAS+-+Le+sp%C3%A9cialiste+du+mat%C3%A9riel+de+levage+industriel';
var metaKeywords  = 'materiel+levage%2C+accessoires+levage%2C+manutention+industrielle%2C+fabrication+%EF%BF%BDlingues+simples%2C+%EF%BF%BDlingue+simple%2C+%EF%BF%BDlingues+r%EF%BF%BDglables%2C+%EF%BF%BDlingue+r%EF%BF%BDglable%2C+%EF%BF%BDlingues+avec+cosses-cral%2C+%EF%BF%BDlingue+avec+cosses-cral%2C+%EF%BF%BDlingues+en+c%EF%BF%BDble%2C+%EF%BF%BDlingue+en+c%EF%BF%BDble%2C+%EF%BF%BDlingues+inox%2C+%EF%BF%BDlingue+inox%2C+%EF%BF%BDlingues+type+flexfort%2C+%EF%BF%BDlingues+vigorflex%2C+cha%EF%BF%BDnes+Stas-alloy%2C+%EF%BF%BDlingues+plaques+de+force%2C+%EF%BF%BDlingues+textiles+type+stas-flex%2C+sangles+polyamide%2C+sangle+polyamide%2C+sangles+polyamides%2C+sangles+polyester%2C+sangle+polyester%2C+sangles+plates+%EF%BF%BD+maillons+acier+Panzer%2C+crochets+en+S%2C+crochet+en+S%2C+crochet+en+J%2C+crochet+en+J%2C+anneaux+de+levage%2C+anneau+de+levage%2C+anneau+%EF%BF%BD+tige+filet%EF%BF%BDe%2C+anneaux+%EF%BF%BD+tige+filet%EF%BF%BDe%2C+%EF%BF%BDmerillon%2C+%EF%BF%BDmerillons%2C+%EF%BF%BDtrier+de+levage%2C+%EF%BF%BDtriers+de+levage%2C+manilles+lyre%2C+manille+lyre%2C+serre-c%EF%BF%BDble%2C+serre-cable+%2Cserre+c%EF%BF%BDble%2C+serre-c%EF%BF%BDbles%2C+serre-cables%2C+tendeurs+%EF%BF%BD+chape%2C+tendeur+%EF%BF%BD+chape%2C+tendeurs+%EF%BF%BD+crochets%2C+tendeur+%EF%BF%BD+crochet%2C+douille+conique%2C+douilles+coniques%2C+coupleur%2C+coupleurs%2C+retourneurs%2C+crochet+%EF%BF%BD+containers';
var metaContents  = 'La+STAS+fabrique+des+mat%EF%BF%BDriels+et+accessoires+de+levage+pour+la+manutention+industrielle+et+a%EF%BF%BDronautique+%3A+%EF%BF%BDlingues%3B+sangles%2C+crochets%2C+anneaux+de+levage%2C+douilles+coniques%2C+tendeurs.';
					                                                                    
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 */					                                                            
