/* [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','701',jdecode('Warum+einen+Coach'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('mein+Ziel+erreichen'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','28501',jdecode('mein+Ziel+erreichen+%28Folgeseite%29'),jdecode(''),'/752/28501.html','false',[],'']
	],''],
	['PAGE','773',jdecode('eine+Ver%C3%A4nderung+einf%C3%BChren'),jdecode(''),'/773.html','true',[],''],
	['PAGE','794',jdecode('mit+Kollegen+auskommen'),jdecode(''),'/794.html','true',[],''],
	['PAGE','815',jdecode('Mitarbeiter+motivieren'),jdecode(''),'/815.html','true',[],''],
	['PAGE','836',jdecode('Ich+will+...'),jdecode(''),'/836.html','true',[],''],
	['PAGE','857',jdecode('Ich+bin+neu+in+der+Schweiz'),jdecode(''),'/857.html','true',[],''],
	['PAGE','26801',jdecode('Kontakt'),jdecode(''),'/26801/index.html','true',[ 
		['PAGE','29401',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/26801/29401.html','false',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1758';
theSitetree.keyvisualName='recht.jpg';
theSitetree.fontsetId='291';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1758',
				keyvisualName: 	'recht.jpg',
				fontsetId: 		'291',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '752',
internalId:  'abw0x0in2nup110c127a0b2',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '28501',
internalId:  'abw0x0in2nup110c127a0b2',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '26801',
internalId:  'abw0x0in2nup110e44412b7',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '29401',
internalId:  'abw0x0in2nup110e44412b7',
customField: 'followUp'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2NUP';
var companyName   = 'www.bestcoach.ch';
var htmlTitle	  = 'bestcoach.ch';
var metaKeywords  = 'Coaching%2C+Coach%2C+Ver%C3%A4nderung%2C+Change+Management%2C+F%C3%BChrung%2C+Mitarbeiter%2C+Krise%2C+Kritik%2C+Chef%2C+Vorgesetzter%2C+Team%2C+Mobbing%2C+Sal%C3%A4r%2C+Gehalt%2C+besser+machen%2C+Hilfe%2C+Unterst%C3%BCtzung%2C+Beratung%2C+Begleitung%2C+Fragen%2C+Antworten%2C+Angst%2C+%C3%84ngste%2C+Unsicherheit%2C+Sicherheit%2C+Konkurrenz%2C+Seilschaften%2C+Leitung%2C+St%C3%A4rkung%2C+Gleichgewicht%2C+Beruf+und+Familie%2C+Karriere%2C+Bef%C3%B6rderung%2C+Aufstieg%2C+Entlassung%2C+Stellensuche%2C+Bewerbung%2C+Probleme+l%C3%B6sen%2C+Beruf%2C+Bel%C3%A4stigung%2C+career%2C+help%2C+solution%2C+expat%2C+new+in+Switzerland%2C+Krise%2C+crisis%2C+Deutsche%2C+Gesundheitswesen%2C+neu+in+der+Schweiz%2C+Arzt%2C+Aerzte%2C+Kultur%2C+Anpassung%2C+Lernen%2C+Spital%2C+Krankenhaus%2C+Pflegepersonal%2C+Pflegekr%C3%A4fte%2C+Pfleger%2C+Pflegefachfrau%2C+Deutschland%2C+Schweiz';
var metaContents  = 'Sie+sind+mit+Ihren+beruflichen+Problemen+nicht+allein.+Unser+professionelles+Coaching+f%C3%BChrt+Sie+zur+L%C3%B6sung+Ihrer+Fragen.+Zeit+und+Kosten+werden+von+Ihnen+bestimmt.+';
					                                                                    
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 */					                                                            

