/* [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','1152',jdecode('Home'),jdecode(''),'/1152.html','true',[],''],
	['PAGE','1205',jdecode('wir+suchen+ein+Zuhause'),jdecode(''),'/1205.html','true',[],''],
	['PAGE','1974',jdecode('Anzeigen'),jdecode(''),'/1974/index.html','true',[ 
		['PAGE','1975',jdecode('Eintr%E4ge'),jdecode(''),'/1974/1975.html','true',[],'']
	],''],
	['PAGE','10480',jdecode('Leipziger+Frettchen'),jdecode(''),'/10480/index.html','true',[ 
		['PAGE','11947',jdecode('Vermittelt%21'),jdecode(''),'/10480/11947.html','true',[],'']
	],''],
	['PAGE','7194',jdecode('Frettchentreff+Leipzig+e.+V'),jdecode(''),'/7194/index.html','true',[ 
		['PAGE','2594',jdecode('Vermittelt%21'),jdecode(''),'/7194/2594.html','true',[],'']
	],''],
	['PAGE','4294',jdecode('hier+k%F6nnte+Ihre+Seite+sein'),jdecode(''),'/4294.html','true',[],''],
	['PAGE','1251',jdecode('Das+neue+Frettchen'),jdecode(''),'/1251.html','true',[],''],
	['PAGE','40506',jdecode('Welpen'),jdecode(''),'/40506.html','true',[],''],
	['PAGE','5094',jdecode('Vereine+und+Hilfen'),jdecode(''),'/5094.html','true',[],''],
	['PAGE','1343',jdecode('Tierheimliste'),jdecode(''),'/1343.html','true',[],''],
	['PAGE','1366',jdecode('Tierarztliste'),jdecode(''),'/1366.html','true',[],''],
	['PAGE','2832',jdecode('Urlaubspl%E4tze'),jdecode(''),'/2832.html','true',[],''],
	['PAGE','1274',jdecode('Infos'),jdecode(''),'/1274.html','true',[],''],
	['PAGE','1297',jdecode('Artikel'),jdecode(''),'/1297.html','true',[],''],
	['PAGE','7594',jdecode('Registrieren+und+chipen'),jdecode(''),'/7594.html','true',[],''],
	['PAGE','1908',jdecode('So+erreicht+man+uns'),jdecode(''),'/1908.html','true',[],''],
	['PAGE','13098',jdecode('Galerie'),jdecode(''),'/13098/index.html','true',[ 
		['PAGE','19180',jdecode('Urlaub+2000'),jdecode(''),'/13098/19180.html','true',[],''],
		['PAGE','36971',jdecode('Urlaub+1999'),jdecode(''),'/13098/36971.html','true',[],''],
		['PAGE','2958',jdecode('Tagebuch'),jdecode(''),'/13098/2958.html','true',[],'']
	],''],
	['PAGE','19207',jdecode('Andere+Marderartige'),jdecode(''),'/19207/index.html','true',[ 
		['PAGE','26188',jdecode('Mauswiesel'),jdecode(''),'/19207/26188.html','true',[],''],
		['PAGE','19234',jdecode('Steinmarder'),jdecode(''),'/19207/19234.html','true',[],''],
		['PAGE','25480',jdecode('Steinmarder+2003'),jdecode(''),'/19207/25480.html','true',[],''],
		['PAGE','35580',jdecode('Steinmarder+2006'),jdecode(''),'/19207/35580.html','true',[],''],
		['PAGE','19261',jdecode('Nerz%2FMink'),jdecode(''),'/19207/19261.html','true',[],'']
	],''],
	['PAGE','38179',jdecode('Links'),jdecode(''),'/38179.html','true',[],''],
	['PAGE','1228',jdecode('wir+haben+ein+neues+Heim'),jdecode(''),'/1228.html','true',[],''],
	['PAGE','42479',jdecode('Romeo+%26+Julia'),jdecode(''),'/42479.html','true',[],''],
	['PAGE','40979',jdecode('Jeany+Pius+Luna+Giacomo'),jdecode(''),'/40979.html','true',[],''],
	['PAGE','41341',jdecode('Vicky+%26+Sam'),jdecode(''),'/41341.html','true',[],''],
	['PAGE','41279',jdecode('Grimma+%26+Rembrandt'),jdecode(''),'/41279.html','true',[],''],
	['PAGE','42114',jdecode('Diabolo+%26+Jasper'),jdecode(''),'/42114.html','true',[],''],
	['PAGE','41310',jdecode('Chester+%26+Murphy'),jdecode(''),'/41310.html','true',[],''],
	['PAGE','39832',jdecode('Fam.L.Ingolstadt'),jdecode(''),'/39832.html','true',[],''],
	['PAGE','39479',jdecode('Freddy+2007'),jdecode(''),'/39479.html','true',[],''],
	['PAGE','39128',jdecode('Gandalf+%26+Hexe'),jdecode(''),'/39128.html','true',[],''],
	['PAGE','38969',jdecode('Jacky+F.'),jdecode(''),'/38969.html','true',[],''],
	['PAGE','26840',jdecode('Pu+und+Blondy'),jdecode(''),'/26840.html','true',[],''],
	['PAGE','26608',jdecode('B%E4rchen+und+Tiny'),jdecode(''),'/26608.html','true',[],''],
	['PAGE','24780',jdecode('Buddy%2BSpike%2BRoxy'),jdecode(''),'/24780.html','true',[],''],
	['PAGE','23914',jdecode('Lea+und+Paula'),jdecode(''),'/23914.html','true',[],'']];
var siteelementCount=45;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
