/* [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','1002',jdecode('Startseite'),jdecode(''),'/1002.html','true',[],''],
	['PAGE','2893',jdecode('Versicherungen'),jdecode(''),'/2893/index.html','true',[ 
		['PAGE','2916',jdecode('Privatkunden'),jdecode(''),'/2893/2916.html','true',[],''],
		['PAGE','2939',jdecode('Senioren+60+PLUS'),jdecode(''),'/2893/2939.html','true',[],''],
		['PAGE','2962',jdecode('Gesch%E4ftskunden'),jdecode(''),'/2893/2962.html','true',[],'']
	],''],
	['PAGE','29370',jdecode('Verm%F6gensanlagen'),jdecode(''),'/29370.html','true',[],''],
	['PAGE','28866',jdecode('Finanzierungen'),jdecode(''),'/28866.html','true',[],''],
	['PAGE','29207',jdecode('Vergleiche'),jdecode(''),'/29207/index.html','true',[ 
		['PAGE','28897',jdecode('Vorsorgerechner'),jdecode(''),'/29207/28897.html','true',[],''],
		['PAGE','28928',jdecode('Hausrat+u.+Wohngeb%E4ude'),jdecode(''),'/29207/28928.html','true',[],''],
		['PAGE','28959',jdecode('Unfall'),jdecode(''),'/29207/28959.html','true',[],''],
		['PAGE','28990',jdecode('Rechtsschutz'),jdecode(''),'/29207/28990.html','true',[],''],
		['PAGE','29021',jdecode('Private+Haftpflicht'),jdecode(''),'/29207/29021.html','true',[],''],
		['PAGE','29052',jdecode('Hundehaftpflicht'),jdecode(''),'/29207/29052.html','true',[],'']
	],''],
	['PAGE','29083',jdecode('Gesetzliche+Krankenkasse'),jdecode(''),'/29083/index.html','true',[ 
		['PAGE','29114',jdecode('KK-Wechselrechner'),jdecode(''),'/29083/29114.html','true',[],''],
		['PAGE','29145',jdecode('Aufnahmeantrag'),jdecode(''),'/29083/29145.html','true',[],'']
	],''],
	['PAGE','1216',jdecode('Kontakt'),jdecode(''),'/1216/index.html','true',[ 
		['PAGE','3238',jdecode('Adresse%2C+Telefon'),jdecode(''),'/1216/3238.html','true',[],''],
		['PAGE','3261',jdecode('So+finden+Sie+uns'),jdecode(''),'/1216/3261.html','true',[],'']
	],''],
	['PAGE','1147',jdecode('Mitarbeiter'),jdecode(''),'/1147.html','true',[],''],
	['PAGE','28804',jdecode('Impressum'),jdecode(''),'/28804.html','true',[],''],
	['PAGE','28835',jdecode('AGB'),jdecode(''),'/28835.html','true',[],''],
	['PAGE','29176',jdecode('Unsere+B%FCros'),jdecode(''),'/29176.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Straight';
					                                                                    
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 */					                                                            
