/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','201431',jdecode('Aktuelles%21'),jdecode(''),'/201431.html','true',[],''],
	['PAGE','14401',jdecode('Das+sind+wir....'),jdecode(''),'/14401/index.html','true',[ 
		['PAGE','14428',jdecode('...+und+unsere+Pferde'),jdecode(''),'/14401/14428.html','true',[],''],
		['PAGE','79302',jdecode('Unser+Fotoalbum'),jdecode(''),'/14401/79302.html','true',[],'']
	],''],
	['PAGE','14617',jdecode('Marcha...+und+mehr%21'),jdecode(''),'/14617/index.html','true',[ 
		['PAGE','14644',jdecode('Allgemeines'),jdecode(''),'/14617/14644.html','true',[],''],
		['PAGE','14671',jdecode('Geschichte+der+MM'),jdecode(''),'/14617/14671.html','true',[],''],
		['PAGE','14698',jdecode('Die+Marcha+-+Der+Gang'),jdecode(''),'/14617/14698.html','true',[],''],
		['PAGE','28103',jdecode('Exterieur'),jdecode(''),'/14617/28103.html','true',[],''],
		['PAGE','26703',jdecode('Einsatzm%F6glichkeiten'),jdecode(''),'/14617/26703.html','true',[],'']
	],''],
	['PAGE','193231',jdecode('Filme'),jdecode(''),'/193231.html','true',[],''],
	['PAGE','14725',jdecode('Marchadores+in+Europa'),jdecode(''),'/14725.html','true',[],''],
	['PAGE','14536',jdecode('Haras+Cheyenne'),jdecode(''),'/14536/index.html','true',[ 
		['PAGE','14563',jdecode('Die+Pferde+von+Haras+Cheyenne'),jdecode(''),'/14536/14563.html','true',[],''],
		['PAGE','78502',jdecode('Album+Haras+Cheyenne'),jdecode(''),'/14536/78502.html','true',[],''],
		['PAGE','188832',jdecode('Brasilien+Fotoalbum'),jdecode(''),'/14536/188832.html','true',[],'']
	],''],
	['PAGE','14860',jdecode('Newsletter'),jdecode(''),'/14860.html','true',[],''],
	['PAGE','191331',jdecode('Marchador+Wochenende+in+Holland'),jdecode(''),'/191331.html','true',[],''],
	['PAGE','14779',jdecode('Kontakt'),jdecode(''),'/14779/index.html','true',[ 
		['PAGE','196054',jdecode('Banner'),jdecode(''),'/14779/196054.html','true',[],'']
	],''],
	['PAGE','21045',jdecode('G%E4stebuch'),jdecode(''),'/21045.html','true',[],''],
	['PAGE','21046',jdecode('Eintr%E4ge'),jdecode(''),'/21046/index.html','true',[ 
		['PAGE','50803',jdecode('FAQ%3A+Ihre+Fragen+-+unsere+Antworten'),jdecode(''),'/21046/50803.html','true',[],'']
	],''],
	['PAGE','102001',jdecode('Pferdequartett'),jdecode(''),'/102001.html','true',[],''],
	['PAGE','193131',jdecode('Forum+Marchador'),jdecode(''),'/193131/index.html','true',[ 
		['PAGE','194031',jdecode('Marchadores+im+TV'),jdecode(''),'/193131/194031.html','true',[],''],
		['PAGE','197031',jdecode('+Mangalarga+Marchador'),jdecode(''),'/193131/197031.html','true',[],''],
		['PAGE','201231',jdecode('Diagramm+Fu%DFfolge'),jdecode(''),'/193131/201231.html','true',[],'']
	],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            

