/* [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('Das+Ausbildungszentrum'),jdecode(''),'/4481/index.html','true',[ 
		['PAGE','13753',jdecode('Centered+Riding'),jdecode(''),'/4481/13753.html','true',[],''],
		['PAGE','13807',jdecode('TTEAM'),jdecode(''),'/4481/13807.html','true',[],''],
		['PAGE','13780',jdecode('Feldenkrais'),jdecode(''),'/4481/13780.html','true',[],'']
	],''],
	['PAGE','19269',jdecode('Ausbildung+und+Korrektur'),jdecode(''),'/19269/index.html','true',[ 
		['PAGE','13918',jdecode('Die+Reitanlage'),jdecode(''),'/19269/13918.html','true',[],''],
		['PAGE','13949',jdecode('Ausbildung'),jdecode(''),'/19269/13949.html','true',[],''],
		['PAGE','13980',jdecode('Korrektur'),jdecode(''),'/19269/13980.html','true',[],''],
		['PAGE','14011',jdecode('Rehabilitation'),jdecode(''),'/19269/14011.html','true',[],'']
	],''],
	['PAGE','4655',jdecode('Das+Vollblutarabergest%FCt'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','14135',jdecode('Die+Zuchtstuten'),jdecode(''),'/4655/14135.html','true',[],''],
		['PAGE','14166',jdecode('Die+Zuchthengste'),jdecode(''),'/4655/14166.html','true',[],''],
		['PAGE','14197',jdecode('Die+Sportpferde'),jdecode(''),'/4655/14197.html','true',[],''],
		['PAGE','14104',jdecode('Verkaufspferde'),jdecode(''),'/4655/14104.html','true',[],''],
		['PAGE','24901',jdecode('In+Memorian'),jdecode(''),'/4655/24901.html','true',[],'']
	],''],
	['PAGE','22802',jdecode('Fotoalbum'),jdecode(''),'/22802.html','true',[],''],
	['PAGE','19801',jdecode('Pensionpferdehaltung'),jdecode(''),'/19801.html','true',[],''],
	['PAGE','22101',jdecode('Zahnbehandlung'),jdecode(''),'/22101/index.html','true',[ 
		['PAGE','22152',jdecode('Das+Pferdegebiss'),jdecode(''),'/22101/22152.html','true',[],''],
		['PAGE','22214',jdecode('Zahnprobleme'),jdecode(''),'/22101/22214.html','true',[],''],
		['PAGE','22183',jdecode('Funktionsverbesserung'),jdecode(''),'/22101/22183.html','true',[],''],
		['PAGE','22245',jdecode('Behandlung+ihres+Pferdes'),jdecode(''),'/22101/22245.html','true',[],'']
	],''],
	['PAGE','9187',jdecode('Huforthop%E4die'),jdecode(''),'/9187.html','true',[],''],
	['PAGE','9125',jdecode('Wir+%FCber+uns'),jdecode(''),'/9125/index.html','true',[ 
		['PAGE','13726',jdecode('Das+Team'),jdecode(''),'/9125/13726.html','true',[],''],
		['PAGE','9156',jdecode('Unsere+Philosophie'),jdecode(''),'/9125/9156.html','true',[],'']
	],''],
	['PAGE','14042',jdecode('Aktuelles'),jdecode(''),'/14042/index.html','true',[ 
		['PAGE','14073',jdecode('Termine'),jdecode(''),'/14042/14073.html','true',[],''],
		['PAGE','18776',jdecode('Verkaufspferde'),jdecode(''),'/14042/18776.html','true',[],'']
	],''],
	['PAGE','13834',jdecode('Kontakt'),jdecode(''),'/13834/index.html','true',[ 
		['PAGE','19242',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13834/19242.html','false',[],'']
	],''],
	['PAGE','19711',jdecode('So+finden+sie+uns'),jdecode(''),'/19711.html','true',[],''],
	['PAGE','21902',jdecode('G%E4stebuch'),jdecode(''),'/21902/index.html','true',[ 
		['PAGE','21903',jdecode('Eintr%E4ge'),jdecode(''),'/21902/21903.html','true',[],'']
	],'']];
var siteelementCount=34;
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 */					                                                            

