/* [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','1515',jdecode('Home'),jdecode(''),'/1515.html','true',[],''],
	['PAGE','20103',jdecode('Produits'),jdecode(''),'/20103.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='315881';
theSitetree.keyvisualId='2266';
theSitetree.keyvisualName='e_commerz.jpg';
theSitetree.fontsetId='367';
theSitetree.graphicsetId='419';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='315881';
var theTemplate={
				name: 			'Steps',
				paletteFamily: 	'315881',
				keyvisualId: 	'2266',
				keyvisualName: 	'e_commerz.jpg',
				fontsetId: 		'367',
				graphicsetId: 	'419',
				contentColor: 	'FFFFFF',
				contentBGColor: '315881',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'315881',
				b_color: 		'2985B5',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '20103',
internalId:  '12519786',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1515',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1515',
internalId:  '',
customField: '20060217-140120'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20103',
internalId:  '',
customField: '20090304-180223'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3VWO';
var companyName   = 'ACI+MULTIMEDIA+%3A+NOS+SOLUTIONS+DE+GED';
var htmlTitle	  = 'logiciels+de+GED+archivage+GEIDE+multimedia+internet+prestations+services';
var metaKeywords  = 'armoires%2C+gestion+electronique+de+documents%2C+rayons%2Cchemises%2C+sous-chemises%2Cweb%2Cfax%2Cmail%2Corganisation+documentaire%2C+classement%2Cr%EF%BF%BDseau%2C+indexation+ocr%2C+hebergement%2C+biblioth%EF%BF%BDconomie%2C+WORM%2C+scann%EF%BF%BDrisation%2C+logiciel%2C+logiciel+indexation%2C+num%EF%BF%BDriser%2C+industriel%2C+commerce%2C+back-up%2C+%EF%BF%BDlectronique%2Cbiblioth%EF%BF%BDques%2C+conservation+de+dossiers%2C+stockage+darchives%2C+ing%EF%BF%BDnierie+documentaire%2C+num%EF%BF%BDrisation+darchives%2Cinternet%2Creferencement%2Cweb%2Chtml%2C+sites+internet%2Cdeveloppement%2Cdhtml%2Cmail%2C+intranet%2C+gestion+de+documents%2C+sauvegarde+de+donn%EF%BF%BDes%2C+logiciel+archivage%2Csyst%EF%BF%BDme+darchivage%2C+conservation+darchives%2Cbases+de+donnees%2C+mat%EF%BF%BDriel+de+stockage%2C+logiciel+gestion+archive%2C+logiciel+ged+intranet%2C+impression%2C+indexation%2C+GEIDE%2C+archive%2C+archiver%2C+archivage+GEIDE%2C+archivistes%2C+geide%2C+internet%2Cnum%EF%BF%BDrisation%2C+donn%EF%BF%BDes%2C+HSM%2C+stockage%2C+index%2C+conservation%2C+documentation%2C+archivage+informatique%2C+gestion+electronique+de+documents%2C+ocr%2C+gestion+%EF%BF%BDlectronique%2C+numerisation%2C+document+%EF%BF%BDlectronique%2Clogistique+documentaire%2C+organisation+darchives%2Crayonnages%2Crecherche+multi+crit%EF%BF%BDres%2Cbiblioth%EF%BF%BDque%2Cdossiers%2C+plan+darchivage%2Cgestion+darchives%2C+stockage+de+dossiers%2C+archivageprofessionnel%2C+Archivage+GED%2C+sauvegarde%2C+stockage+cd+rom%2C+archivage+num%EF%BF%BDrique';
var metaContents  = 'vente+logiciel+de+Ged+gestion+courriers+d%EF%BF%BDlib%EF%BF%BDrations+de+parc+informatique+de+gestion+documentaire+en+full+texte+phototh%EF%BF%BDque+plans+archivage+cd+rom+indexation+numerisation+%EF%BF%BDdition+%EF%BF%BDlectronique+internet+referencement+multimedia+duplication+cd';
					                                                                    
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 */					                                                            
