/* [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','4598',jdecode('Comp%C3%A9tences'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4625',jdecode('Contact'),jdecode(''),'/4625.html','true',[],''],
	['PAGE','9903',jdecode('Infos+l%C3%A9gales'),jdecode(''),'/9903.html','true',[],''],
	['PAGE','10903',jdecode('Acc%C3%A8s+%C3%A0+la+justice'),jdecode(''),'/10903/index.html','true',[ 
		['PAGE','10930',jdecode('Dossier'),jdecode(''),'/10903/10930.html','true',[],'']
	],''],
	['PAGE','23801',jdecode('Actualit%C3%A9s'),jdecode(''),'/23801.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2435';
theSitetree.keyvisualName='vertrag.jpg';
theSitetree.fontsetId='399';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2435',
				keyvisualName: 	'vertrag.jpg',
				fontsetId: 		'399',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4625',
internalId:  '12792303',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20101125-143101'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4625',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4625',
internalId:  '',
customField: '20100824-160745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100824-160206'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9903',
internalId:  '',
customField: '20100824-155332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10903',
internalId:  '',
customField: '20100824-155944'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10930',
internalId:  '',
customField: '20070820-192420'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLKDI';
var companyName   = 'Cabinet++Sabine++DECAIX';
var htmlTitle	  = 'Cabinet+Sabine+DECAIX';
var metaKeywords  = 'avocat+senlis%2C+divorce%2C+correctionnel%2C+droit+p%C3%A9nal%2C+victime%2C+partie+civile%2C+honoraires%2C+conseil%2C+assistance%2C+defense%2C+juridique%2C+justice%2C+tribunal%2C+barreau%2C+senlis%2C+avocat+chantilly%2C+avocat+gouvieux%2C+avocat+creil%2C+avocat+oise%2C+avocat+picardie%2C+aide+juridictionnelle%2C+cour+dappel%2C+divorce%2C+entreprise%2C+droit+affaires%2C+legal%2C+illegal%2C+contentieux%2C+europeen%2C+international%2C+honoraires%2C+deontologie%2C+divorce%2C+pacs%2C+succession%2C+droit+de+la+famille%2C+civil%2C+commercial%2C+social%2C+prudhommes%2C+avocat%2C+avocat%2C+avocat%2C+avocat%2C+avocate%2C+oise%2C+oise%2C+oise%2C+senlis%2C+senlis%2C+gouvieux%2C+chantilly';
var metaContents  = 'avocate+experimentee+inscrite+au+barreau+de+senlis+oise+prestation+de+serment+en+1987+nombreux+champs+de+comp%C3%A9tence+avocat+senlis+avocat+chantilly+avocat+gouvieux+avocat+creil+avocat+oise+assistance+defense+conseil+entreprises+et+particuliers+';
					                                                                    
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 */					                                                            

