/* [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','1508',jdecode('Accueil'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','36401',jdecode('AID71'),jdecode(''),'/36401.html','true',[],''],
	['PAGE','28501',jdecode('Installation'),jdecode(''),'/28501.html','true',[],''],
	['PAGE','14202',jdecode('Devenir+membre+%28volgende+pagina%29'),jdecode(''),'/14202.html','false',[],''],
	['PAGE','27101',jdecode('Maintenance'),jdecode(''),'/27101.html','true',[],''],
	['PAGE','27122',jdecode('Depannage'),jdecode(''),'/27122.html','true',[],''],
	['PAGE','27143',jdecode('Formation'),jdecode(''),'/27143.html','true',[],''],
	['PAGE','27206',jdecode('Tarifs'),jdecode(''),'/27206.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Elegance';
theSitetree.paletteFamily='EBEFF8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10625';
theSitetree.graphicsetId='10624';
theSitetree.contentColor='545554';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Elegance',
				paletteFamily: 	'EBEFF8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10625',
				graphicsetId: 	'10624',
				contentColor: 	'545554',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14202',
internalId:  '',
customField: '20070906-161556'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '14202',
internalId:  'aam010in2vru114db2d5b70',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20091104-123929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20091104-133522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27122',
internalId:  '',
customField: '20091104-124209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27143',
internalId:  '',
customField: '20091104-123758'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20091104-131241'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27206',
internalId:  '',
customField: '20091104-123658'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2VRU';
var companyName   = 'Assistance+Informatique+%C3%A0+Domicile+71';
var htmlTitle	  = 'Assixstance+informatique+%C3%A0+Domicile+Macon+et+environs';
var metaKeywords  = 'Assistance+informatique+domicvile+services+personnes+M%C3%A2con+Saone+et+Loire+71+Formation+Maintenance+Installation+Windows+ordinateur+pc+Excel+word+outlook+';
var metaContents  = 'Assistance+informatique+%C3%A0+domicile+sur+M%C3%A2con+et+environs+Service+%C3%A0+la+personne+R%C3%A9ductions+dimpots++Formation+Maintenance+Installation';
					                                                                    
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 */					                                                            

