/* [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('Die+Tierbestattung'),jdecode(''),'/4481/index.html','true',[ 
		['PAGE','36554',jdecode('Aktuelles'),jdecode(''),'/4481/36554.html','true',[],''],
		['PAGE','31942',jdecode('Sitemap'),jdecode(''),'/4481/31942.html','true',[],''],
		['PAGE','128351',jdecode('Ihr+Tierbestatter'),jdecode(''),'/4481/128351.html','true',[],'']
	],''],
	['PAGE','9254',jdecode('Kurz%FCberblick'),jdecode(''),'/9254/index.html','true',[ 
		['PAGE','30842',jdecode('Gesch%E4ftsr%E4ume'),jdecode(''),'/9254/30842.html','true',[],''],
		['PAGE','32246',jdecode('Links'),jdecode(''),'/9254/32246.html','true',[],''],
		['PAGE','32743',jdecode('Wettervorhersage'),jdecode(''),'/9254/32743.html','true',[],'']
	],''],
	['PAGE','21379',jdecode('Serviceleistungen'),jdecode(''),'/21379/index.html','true',[ 
		['PAGE','9227',jdecode('Wer+wir+sind'),jdecode(''),'/21379/9227.html','true',[],''],
		['PAGE','19361',jdecode('Wo+wir+f%FCr+Sie+da+sind'),jdecode(''),'/21379/19361/index.html','true',[ 
			['PAGE','45230',jdecode('Wo+wir+sind+%28Folgeseite%29'),jdecode(''),'/21379/19361/45230.html','false',[],'']
		],''],
		['PAGE','26305',jdecode('Was+wir+f%FCr+Sie+tun'),jdecode(''),'/21379/26305.html','true',[],''],
		['PAGE','32844',jdecode('Wie+Sie+uns+finden'),jdecode(''),'/21379/32844.html','true',[],''],
		['PAGE','34824',jdecode('Routenplaner'),jdecode(''),'/21379/34824.html','true',[],'']
	],''],
	['PAGE','30014',jdecode('Tierurnen+%2F+Tiers%E4rge'),jdecode(''),'/30014/index.html','true',[ 
		['PAGE','30435',jdecode('Accessoires'),jdecode(''),'/30014/30435.html','true',[],''],
		['PAGE','34963',jdecode('Individuelle+Tierurnen'),jdecode(''),'/30014/34963.html','true',[],'']
	],''],
	['PAGE','18286',jdecode('Regenbogenbr%FCcke'),jdecode(''),'/18286/index.html','true',[ 
		['PAGE','25779',jdecode('Trauerhilfe'),jdecode(''),'/18286/25779.html','true',[],''],
		['PAGE','25810',jdecode('Abschied'),jdecode(''),'/18286/25810.html','true',[],''],
		['PAGE','127601',jdecode('Virtueller+Tierfriedhof'),jdecode(''),'/18286/127601.html','true',[],''],
		['PAGE','26592',jdecode('Tierhalter+%2F+Tierurnen'),jdecode(''),'/18286/26592.html','true',[],'']
	],''],
	['PAGE','155051',jdecode('Tierfriedhof'),jdecode(''),'/155051.html','true',[],''],
	['PAGE','124189',jdecode('Ihr+Voting'),jdecode(''),'/124189.html','true',[],''],
	['PAGE','36523',jdecode('Ihr+Kontakt+zu+uns'),jdecode(''),'/36523/index.html','true',[ 
		['PAGE','45127',jdecode('Presse+%2F-Spiegel+%28Folgeseite%29'),jdecode(''),'/36523/45127.html','false',[],'']
	],''],
	['PAGE','14008',jdecode('Impressum'),jdecode(''),'/14008.html','true',[],''],
	['PAGE','131851',jdecode('Home'),jdecode(''),'/131851.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            

