/* [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('Home'),jdecode(''),'/401.html','true',[],'']];
var siteelementCount=1;
theSitetree.topTemplateName='Reflectance';
theSitetree.paletteFamily='7E8CE4';
theSitetree.keyvisualId='3602';
theSitetree.keyvisualName='kv_3602.jpg';
theSitetree.fontsetId='10739';
theSitetree.graphicsetId='10854';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Reflectance',
				paletteFamily: 	'7E8CE4',
				keyvisualId: 	'3602',
				keyvisualName: 	'kv_3602.jpg',
				fontsetId: 		'10739',
				graphicsetId: 	'10854',
				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: 		'7E8CE4',
				e_color: 		'424978',
				f_color: 		'A09D9D',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'support.hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2F44';
var companyName   = 'Hypnosetherapie+Gerold+Burger';
var htmlTitle	  = 'hypnose-raum+Hypnosetherapie+Gerold+Burger';
var metaKeywords  = 'hypnose%2C+hypnosetherapie%2C+hypnotherapie%2C+brugg%2C+windisch%2C+aarau%2C+aargau%2C+gerold%2C+burger%2C+mirjam%2C+hypnosystemik%2C+hypnoanalytik%2C+IGM%2C+institut+f%C3%BCr+ganzheitlich+methodik%2C+NGH%2C+trance%2C+unterbewusstsein%2C+Essst%C3%B6rungen%2C+Schlafst%C3%B6rungen%2C+Sexualst%C3%B6rungen%2C+Systemische+Arbeit++Depressive+Verstimmungen%2C+Minderwertigkeitsgef%C3%BChle%2C+Lernst%C3%B6rungen%2C+Leistungsschw%C3%A4che%2C+Verhaltensst%C3%B6rungen%2C+%C3%84ngste%2C+Schmerzprobleme%2C+Psychosomatische+St%C3%B6rungen%2C+Allergien%2C+Abh%C3%A4ngigkeiten%2C+Stressbew%C3%A4ltigung%2C+Sportliche+Leistungssteigerung++';
var metaContents  = 'hypnose%2C+hypnosetherapie%2C+hypnotherapie%2C+brugg%2C+windisch%2C+aarau%2C+aargau%2C+gerold%2C+burger%2C+mirjam%2C+hypnosystemik%2C+hypnoanalytik%2C+IGM%2C+institut+f%C3%BCr+ganzheitlich+methodik%2C+NGH%2C+trance%2C+unterbewusstsein%2C+Essst%C3%B6rungen%2C+Schlafst%C3%B6rungen%2C+Sexualst%C3%B6rungen%2C+Systemische+Arbeit++Depressive+Verstimmungen%2C+Minderwertigkeitsgef%C3%BChle%2C+Lernst%C3%B6rungen%2C+Leistungsschw%C3%A4che%2C+Verhaltensst%C3%B6rungen%2C+%C3%84ngste%2C+Schmerzprobleme%2C+Psychosomatische+St%C3%B6rungen%2C+Allergien%2C+Abh%C3%A4ngigkeiten%2C+Stressbew%C3%A4ltigung%2C+Sportliche+Leistungssteigerung++';
					                                                                    
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 */					                                                            

