/* [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','1513',jdecode('Home'),jdecode(''),'/1513.html','true',[],''],
	['PAGE','6163',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/6163.html','true',[],''],
	['PAGE','7702',jdecode('Services'),jdecode(''),'/7702.html','true',[],''],
	['PAGE','7104',jdecode('R%C3%A9f%C3%A9rences'),jdecode(''),'/7104.html','true',[],''],
	['PAGE','7402',jdecode('Acc%C3%A8s'),jdecode(''),'/7402.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='D89452';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='447';
theSitetree.graphicsetId='501';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'D89452',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'447',
				graphicsetId: 	'501',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CC7621',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1513',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '7402',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1513',
internalId:  '1327288',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1513',
internalId:  '',
customField: '20071220-185203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6163',
internalId:  '',
customField: '20040913-160248'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7402',
internalId:  '',
customField: '20040913-152216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7104',
internalId:  '',
customField: '20040913-160213'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7702',
internalId:  '',
customField: '20040913-150408'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2SNA';
var companyName   = 'G%C3%A9nie+Micro+SAS';
var htmlTitle	  = 'Ce+site+web+pr%C3%A9sente+les+activit%C3%A9s+de+G%C3%A9nie+Micro+S.A.S%2C+%C3%A9diteur+de+produits+de+gestion+sous+Magic+depuis+1989.';
var metaKeywords  = 'gestion%2C+logiciel%2C+Base+de+donn%C3%A9es%2C+magic%2C+comptabilit%C3%A9%2C+gmcompta%2C+paye%2C+gmpaye%2C+gestion+commerciale%2C+arsino%C3%A9%2C+Georgein%2C+TPV%2C+TPE%2C+%C3%A9diteur%2C+finance%2C+banque%2C+d%EF%BF%BDveloppement%2C+MSE%2C+L4G%2C+Btrieve%2C+SQL%2C+Visual+Basic%2C+maintenance%2C+soft';
var metaContents  = 'Ce+site+web+pr%C3%A9sente+les+activit%C3%A9s+de+G%C3%A9nie+Micro+S.A.S%2C+%C3%A9diteur+de+produits+de+gestion+sous+Magic+depuis+1989.';
					                                                                    
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 */					                                                            

