/* [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','401',jdecode('Dashkoma'),jdecode(''),'/401.html','true',[],''],
	['PAGE','1801',jdecode('Synth%C3%A8se+et+contact'),jdecode(''),'/1801.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Fleurist';
theSitetree.paletteFamily='E5ECEF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10464';
theSitetree.graphicsetId='10908';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5ECEF';
var theTemplate={
				name: 			'Fleurist',
				paletteFamily: 	'E5ECEF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10464',
				graphicsetId: 	'10908',
				contentColor: 	'000000',
				contentBGColor: 'E5ECEF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20081227-105742'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100124-134123'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLXK4';
var companyName   = 'D+A+S+H+K+O+M+A';
var htmlTitle	  = 'DASHKOMA';
var metaKeywords  = 'Distribution%2CBtoC%2CBtoB%2CGrande+consommation%2CVente%2CMarketing%2CAchat%2CMagasin%2CLin%C3%A9aire%2CLibre+service%2CMarge+brute%2CMerchandising%2CCommunication%2CPublicit%C3%A9%2CMedias%2CGondole%2CBouclard%2CCame%2CChariot%2CPanier%2CPGC%2CAlimentaire%2CNon+alimentaire%2CFMCG%2CFI%2CGMS%2CGSS%2CGSA%2CHyper%2CHypermarch%C3%A9%2CSuper%2CSupermarch%C3%A9%2CSup%C3%A9rette++Cooperation+commerciale%2CIndustrie%2CFabricant%2CFood%2CSport%2CBricolage%2CLoisirs%2CCulture%2CMeubles%2CBanque%2CAssurance%2COpticien%2CPharmacie%2CConseil%2CDirection%2CRessources%2CPrestation%2CServices%2CCaisse%2CSamedi%2CPrix%2CM%C3%A9nag%C3%A8re%2CClient%2CConsommateur%2C+Prospect%2CShop%2CCommerce%2CCommercial%2CRetail%2CEpicerie%2CMarche%2CMarket%2CMarchand%2CCourses%2CCommissions%2CSRP%2CCGV%2CConditions+g%C3%A9n%C3%A9rales+de+vente%2CRemise%2CRistourne%2CModernisation%2CVendeur%2CGrand+magasin%2CChaine%2CInt%C3%A9gr%C3%A9%2CFranchis%C3%A9%2CCooperative%2CRecette%2CTiroir+caisse%2CPalette%2CMarin%2CYves%2CPremier+prix%2CMDD%2CMarque+propre%2CEnseigne%2CBanner%2CPromotion%2CFidelite%2CCarte%2CDN%2CDV%2C+negocier%2C+negociation%2C+LME%2C+loi+de+modernisation%2C+PME%2C+frais%2C+epicerie%2C+DHP%2C+hygi%C3%A8ne%2C+pet+food%2C+bazar%2C+chatel%2C+raffarin%2C+surface%2C+discount%2C+flash%2C+strategie%2C+distributeur%2C+supplier%2C+industrial%2C+fast+moving+consumer+goods%2C+packaging%2C+design%2C+commerciale++';
var metaContents  = '';
					                                                                    
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 */					                                                            

