/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4613',jdecode('Privatkunden'),jdecode(''),'/4613/index.html','true',[ 
		['PAGE','4640',jdecode('Top-Angebote'),jdecode(''),'/4613/4640.html','true',[],''],
		['PAGE','4667',jdecode('Altersvorsorge'),jdecode(''),'/4613/4667.html','true',[],''],
		['PAGE','4694',jdecode('Berufsunf%E4higkeit'),jdecode(''),'/4613/4694.html','true',[],''],
		['PAGE','4721',jdecode('Haftpflicht'),jdecode(''),'/4613/4721.html','true',[],''],
		['PAGE','4748',jdecode('Hausrat'),jdecode(''),'/4613/4748.html','true',[],''],
		['PAGE','4775',jdecode('Wohngeb%E4ude'),jdecode(''),'/4613/4775.html','true',[],''],
		['PAGE','4802',jdecode('Unfall'),jdecode(''),'/4613/4802.html','true',[],''],
		['PAGE','4829',jdecode('Kfz-Versicherung'),jdecode(''),'/4613/4829.html','true',[],''],
		['PAGE','4856',jdecode('Rechtsschutz'),jdecode(''),'/4613/4856.html','true',[],''],
		['PAGE','4883',jdecode('Todesfallschutz'),jdecode(''),'/4613/4883.html','true',[],''],
		['PAGE','4910',jdecode('Kranken'),jdecode(''),'/4613/4910.html','true',[],'']
	],''],
	['PAGE','4937',jdecode('Firmenkunden'),jdecode(''),'/4937/index.html','true',[ 
		['PAGE','4964',jdecode('TOP-Angebote'),jdecode(''),'/4937/4964.html','true',[],''],
		['PAGE','4991',jdecode('betriebliche+Altersvorsorge'),jdecode(''),'/4937/4991.html','true',[],''],
		['PAGE','5018',jdecode('Gewerbeversicherung'),jdecode(''),'/4937/5018.html','true',[],''],
		['PAGE','5045',jdecode('Industrieversicherung'),jdecode(''),'/4937/5045.html','true',[],''],
		['PAGE','5072',jdecode('Rechtsschutz'),jdecode(''),'/4937/5072.html','true',[],'']
	],''],
	['PAGE','5099',jdecode('Vergleichsrechner'),jdecode(''),'/5099/index.html','true',[ 
		['PAGE','6103',jdecode('Gesetzliche+KV'),jdecode(''),'/5099/6103.html','true',[],''],
		['PAGE','6130',jdecode('Private+KV'),jdecode(''),'/5099/6130.html','true',[],''],
		['PAGE','6157',jdecode('Private+KV-Zusatz'),jdecode(''),'/5099/6157.html','true',[],''],
		['PAGE','6184',jdecode('Auslandsreise+KV'),jdecode(''),'/5099/6184.html','true',[],''],
		['PAGE','6211',jdecode('Privathaftpflicht'),jdecode(''),'/5099/6211.html','true',[],''],
		['PAGE','6238',jdecode('Tierhalterhaftpflicht'),jdecode(''),'/5099/6238.html','true',[],''],
		['PAGE','6265',jdecode('Hausrat'),jdecode(''),'/5099/6265.html','true',[],''],
		['PAGE','6292',jdecode('Unfall'),jdecode(''),'/5099/6292.html','true',[],''],
		['PAGE','6319',jdecode('Autoversicherung'),jdecode(''),'/5099/6319.html','true',[],''],
		['PAGE','6346',jdecode('Berufsunf%E4higkeit'),jdecode(''),'/5099/6346.html','true',[],''],
		['PAGE','6373',jdecode('Todesfallabsicherung'),jdecode(''),'/5099/6373.html','true',[],''],
		['PAGE','6400',jdecode('Altersvorsorge'),jdecode(''),'/5099/6400.html','true',[],''],
		['PAGE','6427',jdecode('Rechtsschutz'),jdecode(''),'/5099/6427.html','true',[],'']
	],''],
	['PAGE','5126',jdecode('Schadensmeldung'),jdecode(''),'/5126.html','true',[],''],
	['PAGE','5153',jdecode('Aktuelles'),jdecode(''),'/5153.html','true',[],''],
	['PAGE','5180',jdecode('Unsere+Partner'),jdecode(''),'/5180.html','true',[],''],
	['PAGE','5207',jdecode('Kontakt'),jdecode(''),'/5207.html','true',[],''],
	['PAGE','6454',jdecode('So+finden+Sie+uns'),jdecode(''),'/6454.html','true',[],''],
	['PAGE','5234',jdecode('Links'),jdecode(''),'/5234.html','true',[],''],
	['PAGE','6481',jdecode('Tipps+%26+Tricks'),jdecode(''),'/6481.html','true',[],''],
	['PAGE','6508',jdecode('Kunden+Login'),jdecode(''),'/6508.html','true',[],''],
	['PAGE','6535',jdecode('Mitarbeiter+Login'),jdecode(''),'/6535.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            

