/* [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','4466',jdecode('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','14976',jdecode('Profil'),jdecode(''),'/14976.html','true',[],''],
	['PAGE','14914',jdecode('Udo+Stiegemeyer'),jdecode(''),'/14914.html','true',[],''],
	['PAGE','14704',jdecode('Volker+Beernink'),jdecode(''),'/14704.html','true',[],''],
	['PAGE','14945',jdecode('Frauke+Helmich'),jdecode(''),'/14945.html','true',[],''],
	['PAGE','16701',jdecode('Unser+Team'),jdecode(''),'/16701.html','true',[],''],
	['PAGE','15007',jdecode('Rechtsgebiete'),jdecode(''),'/15007/index.html','true',[ 
		['PAGE','15100',jdecode('Allgemeines+Zivilrecht'),jdecode(''),'/15007/15100.html','true',[],''],
		['PAGE','15038',jdecode('Familienrecht'),jdecode(''),'/15007/15038.html','true',[],''],
		['PAGE','15069',jdecode('Erbrecht'),jdecode(''),'/15007/15069.html','true',[],''],
		['PAGE','16016',jdecode('Verwaltungsrecht'),jdecode(''),'/15007/16016.html','true',[],''],
		['PAGE','16047',jdecode('Verkehrsunfallrecht'),jdecode(''),'/15007/16047.html','true',[],''],
		['PAGE','15131',jdecode('Strafrecht'),jdecode(''),'/15007/15131.html','true',[],''],
		['PAGE','15255',jdecode('Ordnungswidrigkeitenrecht'),jdecode(''),'/15007/15255.html','true',[],''],
		['PAGE','15985',jdecode('Arbeitsrecht'),jdecode(''),'/15007/15985.html','true',[],''],
		['PAGE','16078',jdecode('Vorsorgevollmacht'),jdecode(''),'/15007/16078.html','true',[],'']
	],''],
	['PAGE','15162',jdecode('Kosten'),jdecode(''),'/15162.html','true',[],''],
	['PAGE','15286',jdecode('Service'),jdecode(''),'/15286/index.html','true',[ 
		['PAGE','16109',jdecode('Kanzleibrief+10%2F2003'),jdecode(''),'/15286/16109.html','true',[],''],
		['PAGE','16140',jdecode('Kanzleibrief+03%2F2004'),jdecode(''),'/15286/16140.html','true',[],'']
	],''],
	['PAGE','15317',jdecode('Rechts-Links'),jdecode(''),'/15317.html','true',[],''],
	['PAGE','15878',jdecode('Kurioses+und+Am%FCsantes'),jdecode(''),'/15878/index.html','true',[ 
		['PAGE','17722',jdecode('%22Huftritte+eines+Brauereigauls%22'),jdecode(''),'/15878/17722.html','true',[],''],
		['PAGE','17801',jdecode('%22Karibikkreuzfahrt%22'),jdecode(''),'/15878/17801.html','true',[],''],
		['PAGE','17901',jdecode('%22Pkw-Schaden+durch+Kuh%22'),jdecode(''),'/15878/17901.html','true',[],''],
		['PAGE','17932',jdecode('Gereimte+Mahnung'),jdecode(''),'/15878/17932.html','true',[],''],
		['PAGE','17963',jdecode('%22Das+s%FC%DFe+Ferkelchen%22'),jdecode(''),'/15878/17963.html','true',[],'']
	],''],
	['PAGE','15601',jdecode('Rechtliche+Hinweise'),jdecode(''),'/15601.html','true',[],''],
	['PAGE','15569',jdecode('Kontakt'),jdecode(''),'/15569/index.html','true',[ 
		['PAGE','15702',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/15569/15702.html','false',[],'']
	],''],
	['PAGE','15502',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/15502.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
