/* [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','4480',jdecode('Dstress+sensoriel'),jdecode(''),'/4480/index.html','true',[ 
		['PAGE','10852',jdecode('A+partager'),jdecode(''),'/4480/10852.html','true',[],''],
		['PAGE','4537',jdecode('Explications'),jdecode(''),'/4480/4537.html','true',[],''],
		['PAGE','18901',jdecode('Bienfaits'),jdecode(''),'/4480/18901.html','true',[],''],
		['PAGE','10843',jdecode('Mode+d%26%23x27%3Bemploi'),jdecode(''),'/4480/10843.html','true',[],''],
		['PAGE','11637',jdecode('D%C3%A9monstration'),jdecode(''),'/4480/11637.html','true',[],''],
		['PAGE','10861',jdecode('T%C3%A9moignages'),jdecode(''),'/4480/10861.html','true',[],'']
	],''],
	['PAGE','13201',jdecode('Dstress-foot'),jdecode(''),'/13201.html','true',[],''],
	['PAGE','13222',jdecode('Dstress-hand'),jdecode(''),'/13222.html','true',[],''],
	['PAGE','13243',jdecode('Dstress+Audio'),jdecode(''),'/13243.html','true',[],''],
	['PAGE','4564',jdecode('Points+de+vente'),jdecode(''),'/4564/index.html','true',[ 
		['PAGE','11482',jdecode('Recherchez+'),jdecode(''),'/4564/11482.html','true',[],'']
	],''],
	['PAGE','11693',jdecode('Distributeurs+'),jdecode(''),'/11693/index.html','true',[ 
		['PAGE','11812',jdecode('Suisse+romande'),jdecode(''),'/11693/11812.html','true',[],''],
		['PAGE','11803',jdecode('Suisse+Allemande'),jdecode(''),'/11693/11803.html','true',[],''],
		['PAGE','11821',jdecode('France'),jdecode(''),'/11693/11821.html','true',[],''],
		['PAGE','11830',jdecode('Belgique'),jdecode(''),'/11693/11830.html','true',[],'']
	],''],
	['PAGE','11890',jdecode('Devenir+partenaire'),jdecode(''),'/11890.html','true',[],''],
	['PAGE','4645',jdecode('Contact'),jdecode(''),'/4645/index.html','true',[ 
		['PAGE','9552',jdecode('Contact+%28Folgeseite%29'),jdecode(''),'/4645/9552.html','false',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='FF7112';
theSitetree.keyvisualId='8815';
theSitetree.keyvisualName='KV_01.swf';
theSitetree.fontsetId='17185';
theSitetree.graphicsetId='12654';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='262626';
var theTemplate={
				name: 			'Holz',
				paletteFamily: 	'FF7112',
				keyvisualId: 	'8815',
				keyvisualName: 	'KV_01.swf',
				fontsetId: 		'17185',
				graphicsetId: 	'12654',
				contentColor: 	'FFFFFF',
				contentBGColor: '262626',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FF6600',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4645',
internalId:  'abw0x0inxxvj8f51ce0ee6b62bad',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '9552',
internalId:  'abw0x0inxxvj8f51ce0ee6b62bad',
customField: 'followUp'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '11482',
internalId:  '6897112',
customField: 'fr:FR:'
};
var canonHostname = 'support.hptworkderdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXVJ';
var companyName   = 'Dstress.ch';
var htmlTitle	  = '';
var metaKeywords  = '';
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 */					                                                            

