/* [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('Wir+%FCber+uns'),jdecode(''),'/4613/index.html','true',[ 
		['PAGE','4640',jdecode('Unsere+Unternehmungen'),jdecode(''),'/4613/4640/index.html','true',[ 
			['PAGE','10159',jdecode('Unsere+Unternehmungen+%28Folgeseite%29'),jdecode(''),'/4613/4640/10159.html','false',[],'']
		],'']
	],''],
	['PAGE','4721',jdecode('Service+%26+Leistungen'),jdecode(''),'/4721/index.html','true',[ 
		['PAGE','10437',jdecode('Produkte%2C+Leistungen+%28Folgeseite%29'),jdecode(''),'/4721/10437.html','false',[],''],
		['PAGE','9639',jdecode('Finanzierungen'),jdecode(''),'/4721/9639/index.html','true',[ 
			['PAGE','9837',jdecode('Finanzierungen+%28Folgeseite%29'),jdecode(''),'/4721/9639/9837.html','false',[],'']
		],'']
	],''],
	['PAGE','32753',jdecode('Rendite+%26+Steuervorteile'),jdecode(''),'/32753.html','true',[],''],
	['PAGE','32996',jdecode('Tipps+%26+Hinweise'),jdecode(''),'/32996.html','true',[],''],
	['PAGE','33023',jdecode('Musteranlagen+'),jdecode(''),'/33023.html','true',[],''],
	['PAGE','47389',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/47389.html','true',[],''],
	['PAGE','47425',jdecode('Marktberichte'),jdecode(''),'/47425.html','true',[],''],
	['PAGE','47461',jdecode('Wirtschaft'),jdecode(''),'/47461.html','true',[],''],
	['PAGE','33050',jdecode('So+erreichen+Sie+uns++'),jdecode(''),'/33050.html','true',[],''],
	['PAGE','4964',jdecode('Kontakt'),jdecode(''),'/4964/index.html','true',[ 
		['PAGE','4991',jdecode('Adresse%2C+Telefon'),jdecode(''),'/4964/4991.html','true',[],'']
	],''],
	['PAGE','33763',jdecode('Impressum+'),jdecode(''),'/33763.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Proton';
					                                                                    
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 */					                                                            

