/* [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','4481',jdecode('Willkommen'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','32027',jdecode('Aktuelles'),jdecode(''),'/32027/index.html','true',[ 
		['PAGE','32427',jdecode('MoMiG+%2F+UG'),jdecode(''),'/32027/32427.html','true',[],''],
		['PAGE','32527',jdecode('Gesellschafterstreit'),jdecode(''),'/32027/32527.html','true',[],'']
	],''],
	['PAGE','35527',jdecode('Aktiengesellschaft+%28AG%29'),jdecode(''),'/35527.html','true',[],''],
	['PAGE','5003',jdecode('GmbH'),jdecode(''),'/5003/index.html','true',[ 
		['PAGE','30154',jdecode('GF+-+Anstellungsvertrag'),jdecode(''),'/5003/30154.html','true',[],''],
		['PAGE','30229',jdecode('GF+-+Abberufung'),jdecode(''),'/5003/30229.html','true',[],''],
		['PAGE','30260',jdecode('GF+-+Amtsniederlegung'),jdecode(''),'/5003/30260.html','true',[],''],
		['PAGE','30291',jdecode('GF+-+faktischer'),jdecode(''),'/5003/30291.html','true',[],''],
		['PAGE','30423',jdecode('GF+-+Haftung+Allgemein'),jdecode(''),'/5003/30423.html','true',[],''],
		['PAGE','30454',jdecode('GF+-+Haftung+%A7+43+GmbHG'),jdecode(''),'/5003/30454.html','true',[],''],
		['PAGE','30485',jdecode('GF+-+Haftung+%A7+64+GmbHG'),jdecode(''),'/5003/30485.html','true',[],''],
		['PAGE','30854',jdecode('GF+-+Haftung+%A7+31+GmbHG'),jdecode(''),'/5003/30854.html','true',[],''],
		['PAGE','30734',jdecode('GF-+Haftung+Steuern'),jdecode(''),'/5003/30734.html','true',[],''],
		['PAGE','30555',jdecode('Zahlungsunf%E4higkeit'),jdecode(''),'/5003/30555.html','true',[],''],
		['PAGE','30586',jdecode('%DCberschuldung'),jdecode(''),'/5003/30586.html','true',[],''],
		['PAGE','30929',jdecode('Haftung+-+Gesellschafter'),jdecode(''),'/5003/30929.html','true',[],'']
	],''],
	['PAGE','34027',jdecode('Liquidation'),jdecode(''),'/34027/index.html','true',[ 
		['PAGE','34066',jdecode('Aufl%F6sung+der+GmbH'),jdecode(''),'/34027/34066.html','true',[],''],
		['PAGE','34127',jdecode('Die+Liquidatoren'),jdecode(''),'/34027/34127.html','true',[],''],
		['PAGE','34165',jdecode('Rechtsfolgen'),jdecode(''),'/34027/34165.html','true',[],''],
		['PAGE','34227',jdecode('Vollbeendigung'),jdecode(''),'/34027/34227.html','true',[],''],
		['PAGE','34258',jdecode('nachwirkende+Pflichten'),jdecode(''),'/34027/34258.html','true',[],'']
	],''],
	['PAGE','33927',jdecode('Insolvenzstrafrecht'),jdecode(''),'/33927.html','true',[],''],
	['PAGE','10672',jdecode('Immobilien+-+Fonds'),jdecode(''),'/10672.html','true',[],''],
	['PAGE','10704',jdecode('Die+englische+Limited'),jdecode(''),'/10704/index.html','true',[ 
		['PAGE','33027',jdecode('Gr%FCndung'),jdecode(''),'/10704/33027.html','true',[],''],
		['PAGE','33058',jdecode('Einsatzm%F6glichkeiten'),jdecode(''),'/10704/33058.html','true',[],''],
		['PAGE','33089',jdecode('Haftung'),jdecode(''),'/10704/33089.html','true',[],''],
		['PAGE','33120',jdecode('Buchf%FChrung+'),jdecode(''),'/10704/33120.html','true',[],''],
		['PAGE','33151',jdecode('Vorteile'),jdecode(''),'/10704/33151.html','true',[],''],
		['PAGE','33182',jdecode('Nachteile'),jdecode(''),'/10704/33182.html','true',[],''],
		['PAGE','33213',jdecode('Ergebnis'),jdecode(''),'/10704/33213.html','true',[],'']
	],''],
	['PAGE','31627',jdecode('Seminare'),jdecode(''),'/31627.html','true',[],''],
	['PAGE','5111',jdecode('Kontakt'),jdecode(''),'/5111/index.html','true',[ 
		['PAGE','31434',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5111/31434.html','false',[],'']
	],''],
	['PAGE','10890',jdecode('Lageplan'),jdecode(''),'/10890.html','true',[],''],
	['PAGE','10927',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/10927.html','true',[],''],
	['PAGE','11061',jdecode('Impressum'),jdecode(''),'/11061.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Architekt';
					                                                                    
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 */					                                                            
