/* [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','4599',jdecode('Accueil'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','50816',jdecode('Environnement'),jdecode(''),'/50816.html','true',[],''],
	['PAGE','50843',jdecode('Marquage'),jdecode(''),'/50843/index.html','true',[ 
		['PAGE','50897',jdecode('Impression+quadri'),jdecode(''),'/50843/50897.html','true',[],''],
		['PAGE','50870',jdecode('Impression+standart'),jdecode(''),'/50843/50870.html','true',[],''],
		['PAGE','50924',jdecode('Impression+sp%C3%A9cial'),jdecode(''),'/50843/50924.html','true',[],''],
		['PAGE','60503',jdecode('Nuancier'),jdecode(''),'/50843/60503.html','true',[],'']
	],''],
	['PAGE','253189',jdecode('T%C3%A9l%C3%A9chargement'),jdecode(''),'/253189/index.html','true',[ 
		['PAGE','118252',jdecode('Mod%C3%A9le+de+commande'),jdecode(''),'/253189/118252.html','true',[],''],
		['PAGE','253210',jdecode('fiche+Encre+%C3%A0+L%26%23x27%3Beau'),jdecode(''),'/253189/253210.html','true',[],''],
		['PAGE','255889',jdecode('Imprim%26%23x27%3BVert'),jdecode(''),'/253189/255889.html','true',[],'']
	],''],
	['PAGE','81325',jdecode('Notre+parc+machine'),jdecode(''),'/81325.html','true',[],''],
	['PAGE','116694',jdecode('Photo'),jdecode(''),'/116694/index.html','true',[ 
		['PAGE','116224',jdecode('notre+savoir+faire'),jdecode(''),'/116694/116224.html','true',[],''],
		['PAGE','57402',jdecode('l%26%23x27%3Bentreprise'),jdecode(''),'/116694/57402.html','true',[],''],
		['PAGE','222289',jdecode('c%C3%A9l%C3%A9brit%C3%A9'),jdecode(''),'/116694/222289.html','true',[],'']
	],''],
	['PAGE','112025',jdecode('Boutique+textile'),jdecode(''),'/112025/index.html','true',[ 
		['PAGE','135825',jdecode('Quat%26%23x27%3Brues'),jdecode(''),'/112025/135825.html','true',[],''],
		['PAGE','135852',jdecode('Laspid'),jdecode(''),'/112025/135852.html','true',[],'']
	],''],
	['PAGE','57130',jdecode('Acc%C3%A8s'),jdecode(''),'/57130.html','true',[],''],
	['PAGE','78625',jdecode('Nous+contacter'),jdecode(''),'/78625.html','true',[],''],
	['PAGE','57165',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/57165/index.html','true',[ 
		['PAGE','57166',jdecode('Entr%C3%A9es'),jdecode(''),'/57165/57166.html','true',[],'']
	],''],
	['PAGE','72903',jdecode('Site+%C3%A0+voir'),jdecode(''),'/72903.html','true',[],''],
	['PAGE','200867',jdecode('Actu%2Finfo'),jdecode(''),'/200867.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1280';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='192';
theSitetree.graphicsetId='232';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'990000',
				keyvisualId: 	'1280',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'192',
				graphicsetId: 	'232',
				contentColor: 	'006633',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '57402',
internalId:  '10abe8dd9e0',
customField: 'g.12lflk7c1.7naoo40ktm5u6.6rn80'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '57130',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '57165',
internalId:  '57165aam010inep84',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '57166',
internalId:  '57165aam010inep84',
customField: 'action=list'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '78625',
internalId:  '12196396',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '253210',
internalId:  '',
customField: '20090215-132258'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '116224',
internalId:  '113a5a7059c',
customField: 'g.12lflk7dn.23mbvq0m6jg73.6rn80'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '112025',
internalId:  'aam010inep841154af62caf',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20100131-124129'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50816',
internalId:  '',
customField: '20090603-142759'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '72903',
internalId:  '',
customField: '20090215-133514'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '222289',
internalId:  '116e269fe54',
customField: 'g.12rh64i2c.q47qb52af4.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50843',
internalId:  '',
customField: '20090128-112020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50897',
internalId:  '',
customField: '20070916-134533'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50870',
internalId:  '',
customField: '20070701-195606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50924',
internalId:  '',
customField: '20071101-205138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60503',
internalId:  '',
customField: '20070701-202851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118252',
internalId:  '',
customField: '20090215-130909'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81325',
internalId:  '',
customField: '20071203-150025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '116694',
internalId:  '',
customField: '20070708-143051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '116224',
internalId:  '',
customField: '20070708-140308'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57402',
internalId:  '',
customField: '20070708-140333'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '112025',
internalId:  '',
customField: '20071012-205800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '135825',
internalId:  '',
customField: '20071231-194217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '135852',
internalId:  '',
customField: '20080526-203225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57130',
internalId:  '',
customField: '20060422-000752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78625',
internalId:  '',
customField: '20061117-121744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '255889',
internalId:  '',
customField: '20090215-135848'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57165',
internalId:  '',
customField: '20061202-173859'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57166',
internalId:  '',
customField: '20060422-000457'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '200867',
internalId:  '200867',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '200867',
internalId:  '',
customField: '20090215-210333'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '222289',
internalId:  '',
customField: '20071216-111338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '253189',
internalId:  '',
customField: '20090215-135202'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEP84';
var companyName   = 'FJ+SERIGRAPHIE';
var htmlTitle	  = 'FJ+SERIGRAPHIE';
var metaKeywords  = 's%C3%A9rigraphie';
var metaContents  = 's%C3%A9rigraphie+textile';
					                                                                    
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 */					                                                            
