/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','119544',jdecode('Table+de+massage'),jdecode(''),'/119544.html','true',[],''],
	['PAGE','105300',jdecode('Formulaire%2C+commande'),jdecode(''),'/105300/index.html','true',[ 
		['PAGE','105331',jdecode('Nouvelle+page+%28Form+followup+page%29'),jdecode(''),'/105300/105331.html','false',[],'']
	],''],
	['PAGE','111098',jdecode('Information+modalit%C3%A9s'),jdecode(''),'/111098.html','true',[],''],
	['PAGE','51497',jdecode('Philosophie'),jdecode(''),'/51497.html','true',[],''],
	['PAGE','53097',jdecode('Diagnostic'),jdecode(''),'/53097.html','true',[],''],
	['PAGE','53124',jdecode('Indications'),jdecode(''),'/53124.html','true',[],''],
	['PAGE','11808',jdecode('Soins+th%C3%A9rapeutiques'),jdecode(''),'/11808.html','true',[],''],
	['PAGE','85659',jdecode('Qui+sommes+nous+%3F'),jdecode(''),'/85659.html','true',[],''],
	['PAGE','95093',jdecode('Plan+de+situaiton'),jdecode(''),'/95093.html','true',[],''],
	['PAGE','95128',jdecode('Comment+nous+trouver'),jdecode(''),'/95128.html','true',[],''],
	['PAGE','95034',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/95034.html','true',[],''],
	['PAGE','95035',jdecode('Entr%C3%A9es'),jdecode(''),'/95035.html','true',[],''],
	['PAGE','109197',jdecode('Liens+utiles'),jdecode(''),'/109197.html','true',[],''],
	['PAGE','16015',jdecode('Tarifs+2006'),jdecode(''),'/16015.html','true',[],''],
	['PAGE','159164',jdecode('Espace%2C+th%C3%A9s+et+caf%C3%A9'),jdecode(''),'/159164.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='EBF2FF';
theSitetree.keyvisualId='2739';
theSitetree.keyvisualName='massage.jpg';
theSitetree.fontsetId='10412';
theSitetree.graphicsetId='10675';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Finance',
				paletteFamily: 	'EBF2FF',
				keyvisualId: 	'2739',
				keyvisualName: 	'massage.jpg',
				fontsetId: 		'10412',
				graphicsetId: 	'10675',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '95034',
internalId:  '95034ABW0X0INX36A',
customField: 'action=form&icq=false'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4598',
internalId:  '1981314',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '95093',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '95128',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['1009']={
webappId:    '1009',
documentId:  '105331',
internalId:  '5955861',
customField: 'isFollowupPage:true;documentId:105300;'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '105300',
internalId:  '1981558',
customField: 'isFollowupPage:false;followupId:105331;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '95035',
internalId:  '95034ABW0X0INX36A',
customField: 'action=list'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '159164',
internalId:  '159164',
customField: 'language:fr;country:FR;'
};
var canonHostname = 'support.hptworkderdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX36A';
var companyName   = 'CABINET+DE+NATUROPATHIE+';
var htmlTitle	  = 'www.naturotherapie.ch';
var metaKeywords  = 'Cabinet+de+naturopahie+CNMTC+%C3%A0+Lausanne%2C+Av.+Ruchonnet+2+1003+Lausanne+consultations+sur+rendez-vous.';
var metaContents  = 'Bilan+de+sant%C3%A9%2C+fangoth%C3%A9rapie%2C+massages+th%C3%A9rapeutiques+aux+huiles+essentielles%2C+naturopathie%2C+hom%C3%A9opathie%2C+acupuncture%2C+auriculoth%C3%A9rapie%2C+aromath%C3%A9rapie%2C+Drainage+lymphatique+selon+Vodder%2C+ost%C3%A9opathie%2C+fleurs+du+Dr+Bach%2C+etc...+consultations+dans+des+locaux+calmes%2C+spatieux+et+lumineux%2C+proche+de+toutes+commodit%C3%A9s+%C3%A0+Lausanne%2C+av.+Louis-Ruchonnet+2+1003+Lausanne';
					                                                                    
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 */					                                                            
