/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5087',jdecode('Wir+%FCber+uns'),jdecode(''),'/5087/index.html','true',[ 
		['PAGE','8023',jdecode('So+sieht+es+aus'),jdecode(''),'/5087/8023.html','true',[],''],
		['PAGE','7790',jdecode('%D6ffnungszeiten'),jdecode(''),'/5087/7790.html','true',[],''],
		['PAGE','8586',jdecode('So+finden+Sie+uns'),jdecode(''),'/5087/8586.html','true',[],'']
	],''],
	['PAGE','35533',jdecode('11+Jahre+BROTMAUS'),jdecode(''),'/35533.html','true',[],''],
	['PAGE','27563',jdecode('Routenberechnung'),jdecode(''),'/27563.html','true',[],''],
	['PAGE','5006',jdecode('Veranstaltungen'),jdecode(''),'/5006/index.html','true',[ 
		['PAGE','32533',jdecode('Bowling+2007'),jdecode(''),'/5006/32533.html','true',[],'']
	],''],
	['PAGE','7086',jdecode('***+Darter+gesucht+***'),jdecode(''),'/7086/index.html','true',[ 
		['PAGE','12308',jdecode('Termine%2C+Tabellen'),jdecode(''),'/7086/12308.html','true',[],'']
	],''],
	['PAGE','13903',jdecode('Sparverein'),jdecode(''),'/13903/index.html','true',[ 
		['PAGE','29898',jdecode('Aktivit%E4ten'),jdecode(''),'/13903/29898.html','true',[],''],
		['PAGE','13930',jdecode('Gr%FCndungsmitglieder'),jdecode(''),'/13903/13930.html','true',[],''],
		['PAGE','13957',jdecode('Satzung'),jdecode(''),'/13903/13957.html','true',[],'']
	],''],
	['PAGE','35833',jdecode('Hertha-Fantreff'),jdecode(''),'/35833.html','true',[],''],
	['PAGE','10257',jdecode('Hertha-Gewinnspiel+2012'),jdecode(''),'/10257/index.html','true',[ 
		['PAGE','35733',jdecode('Punktestand'),jdecode(''),'/10257/35733.html','true',[],'']
	],''],
	['PAGE','10284',jdecode('Chat'),jdecode(''),'/10284.html','true',[],''],
	['PAGE','35233',jdecode('Links+..'),jdecode(''),'/35233.html','true',[],''],
	['PAGE','5302',jdecode('G%E4stebuch'),jdecode(''),'/5302/index.html','true',[ 
		['PAGE','5303',jdecode('Eintr%E4ge'),jdecode(''),'/5302/5303.html','true',[],'']
	],''],
	['PAGE','16303',jdecode('Impressum'),jdecode(''),'/16303.html','true',[],''],
	['PAGE','27962',jdecode('Aktuelle+Info%26%23x27%3Bs+1'),jdecode(''),'/27962/index.html','true',[ 
		['PAGE','27994',jdecode('Politik'),jdecode(''),'/27962/27994.html','true',[],''],
		['PAGE','28030',jdecode('Wirtschaft'),jdecode(''),'/27962/28030.html','true',[],''],
		['PAGE','28091',jdecode('Sport'),jdecode(''),'/27962/28091.html','true',[],''],
		['PAGE','28127',jdecode('Kultur'),jdecode(''),'/27962/28127.html','true',[],'']
	],''],
	['PAGE','28277',jdecode('Aktuelle+Info%26%23x27%3Bs+2'),jdecode(''),'/28277/index.html','true',[ 
		['PAGE','28163',jdecode('Reise+%26+Urlaub'),jdecode(''),'/28277/28163.html','true',[],''],
		['PAGE','28235',jdecode('Wetter'),jdecode(''),'/28277/28235.html','true',[],''],
		['PAGE','28199',jdecode('Minidolmetscher'),jdecode(''),'/28277/28199.html','true',[],'']
	],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Pain';
					                                                                    
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 */					                                                            

