/* [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','301',jdecode('Pr%C3%A9sentation'),jdecode(''),'/301.html','true',[],''],
	['PAGE','10022',jdecode('M%C3%A9tiers'),jdecode(''),'/10022.html','true',[],''],
	['PAGE','10001',jdecode('R%C3%A9f%C3%A9rences'),jdecode(''),'/10001.html','true',[],''],
	['PAGE','23101',jdecode('EcoKoncept'),jdecode(''),'/23101.html','true',[],''],
	['PAGE','10043',jdecode('Recrutement'),jdecode(''),'/10043.html','true',[],''],
	['PAGE','17301',jdecode('News'),jdecode(''),'/17301.html','true',[],''],
	['PAGE','10064',jdecode('Contact'),jdecode(''),'/10064.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='F5F5F5';
theSitetree.keyvisualId='2168';
theSitetree.keyvisualName='industrie.jpg';
theSitetree.fontsetId='356';
theSitetree.graphicsetId='407';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F5F5F5';
var theTemplate={
				name: 			'Medium',
				paletteFamily: 	'F5F5F5',
				keyvisualId: 	'2168',
				keyvisualName: 	'industrie.jpg',
				fontsetId: 		'356',
				graphicsetId: 	'407',
				contentColor: 	'000000',
				contentBGColor: 'F5F5F5',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F5F5F5',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20111003-124456'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20100913-211141'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10022',
internalId:  '',
customField: '20101102-150518'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10043',
internalId:  '',
customField: '20100913-211300'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10064',
internalId:  '',
customField: '20101102-152111'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '10064',
internalId:  '6747557',
customField: 'fr:FR:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '10043',
internalId:  '6749874',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20111003-124746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20100909-182242'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZRHJ';
var companyName   = 'Groupe+MECALIANZ';
var htmlTitle	  = 'L+alliance+des+m%C3%A9tiers+de+la+m%C3%A9canique';
var metaKeywords  = 'Assistance+mecanique%3B+mecanique+de+precision%3B+retrofit%3B+audit+machine%3B+audit+concept%3B+sav+mecanique%3B+bureau+detudes+mecanique%3B+expertise%3B+controle+de+gestion+industriel%3B+industrie%3B+emploi+industriel%3B+atecmo%3B+dfi2000%3B+monnier+sermi%2C+M.A.I%3B+industrie%3B+reglage+machine+outils%3B+machine+sp%C3%A9ciale%3B+retrofit%3B+audit+industriel%3B+electricite%3B+mecanique%3B+hydraulique%3B+bermi%3B+MMG%3B+MIG%3B+innotroph%C3%A9es%3B+cci+de+grenoble%3B+laur%C3%A9at+innotroph%C3%A9es%3B+emploi%3B+embauche%3B+offre+emploi%3B+les+affiches%3B+pr%C3%A9sences%3Bmecateq%3B+advente%3B+mesures%3B+automatismes%3B+industries%3B+MAI%3B+M.A.I%3B+grinditeq%3B+gem+grenoble%3B+';
var metaContents  = 'Presentation+des+activit%C3%A9s+du+groupe+M%C3%A9calianz';
					                                                                    
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 */					                                                            

