/* [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','2409',jdecode('Zuchtanlage'),jdecode(''),'/2409.html','true',[],''],
	['PAGE','2294',jdecode('Betta-Wildformen'),jdecode(''),'/2294.html','true',[],''],
	['PAGE','2317',jdecode('Betta-Zuchtformen'),jdecode(''),'/2317/index.html','true',[ 
		['PAGE','2340',jdecode('Zuchtbuch'),jdecode(''),'/2317/2340.html','true',[],''],
		['PAGE','2363',jdecode('Selektion'),jdecode(''),'/2317/2363.html','true',[],''],
		['PAGE','2386',jdecode('Zuchttips+%28Ph%E4notyp%29'),jdecode(''),'/2317/2386.html','true',[],''],
		['PAGE','20711',jdecode('Zuchttips+%28Genotyp%29'),jdecode(''),'/2317/20711.html','true',[],''],
		['PAGE','29094',jdecode('Galerie'),jdecode(''),'/2317/29094.html','true',[],'']
	],''],
	['PAGE','54702',jdecode('Standards'),jdecode(''),'/54702/index.html','true',[ 
		['PAGE','20734',jdecode('+IBC+Standard'),jdecode(''),'/54702/20734.html','true',[],''],
		['PAGE','20757',jdecode('+%3E+IBC+Klassen'),jdecode(''),'/54702/20757.html','true',[],''],
		['PAGE','54097',jdecode('EHBBC+Standard'),jdecode(''),'/54702/54097.html','true',[],''],
		['PAGE','31594',jdecode('RGC+Standard'),jdecode(''),'/54702/31594.html','true',[],''],
		['PAGE','31617',jdecode('%3E+Kategorie+Formen'),jdecode(''),'/54702/31617.html','true',[],''],
		['PAGE','34894',jdecode('%3E+Kategorie+Farben'),jdecode(''),'/54702/34894.html','true',[],'']
	],''],
	['PAGE','13058',jdecode('Termine++'),jdecode(''),'/13058/index.html','true',[ 
		['PAGE','2455',jdecode('IGL'),jdecode(''),'/13058/2455.html','true',[],''],
		['PAGE','12623',jdecode('EHBBC'),jdecode(''),'/13058/12623.html','true',[],''],
		['PAGE','12796',jdecode('AQV+Bamberg'),jdecode(''),'/13058/12796.html','true',[],''],
		['PAGE','53702',jdecode('Swiss+Betta+Club'),jdecode(''),'/13058/53702.html','true',[],''],
		['PAGE','12749',jdecode('IBSC'),jdecode(''),'/13058/12749.html','true',[],''],
		['PAGE','56159',jdecode('Sonstiges'),jdecode(''),'/13058/56159.html','true',[],'']
	],''],
	['PAGE','16394',jdecode('Events'),jdecode(''),'/16394/index.html','true',[ 
		['PAGE','15917',jdecode('SBC+2002+CH-Moudou'),jdecode(''),'/16394/15917.html','true',[],''],
		['PAGE','71602',jdecode('SBC+2004+CH-Moudou'),jdecode(''),'/16394/71602.html','true',[],''],
		['PAGE','39594',jdecode('IBSC+2002+F-Dijon'),jdecode(''),'/16394/39594.html','true',[],''],
		['PAGE','75502',jdecode('IBSC+2004+F-Dijon'),jdecode(''),'/16394/75502.html','true',[],''],
		['PAGE','61302',jdecode('EHBBC+2004+Kreuztal'),jdecode(''),'/16394/61302.html','true',[],''],
		['PAGE','61329',jdecode('RGC+2004+D-Riesa'),jdecode(''),'/16394/61329.html','true',[],'']
	],''],
	['PAGE','81802',jdecode('Nachzuchten'),jdecode(''),'/81802.html','true',[],''],
	['PAGE','2432',jdecode('News'),jdecode(''),'/2432.html','true',[],''],
	['PAGE','57402',jdecode('Reiseberichte'),jdecode(''),'/57402/index.html','true',[ 
		['PAGE','57429',jdecode('Indonesien+1994'),jdecode(''),'/57402/57429.html','true',[],''],
		['PAGE','58911',jdecode('%3E+Fundorte'),jdecode(''),'/57402/58911.html','true',[],'']
	],''],
	['PAGE','71102',jdecode('Tips+%26+Tricks'),jdecode(''),'/71102.html','true',[],''],
	['PAGE','2478',jdecode('Links'),jdecode(''),'/2478.html','true',[],''],
	['PAGE','2658',jdecode('G%E4stebuch'),jdecode(''),'/2658/index.html','true',[ 
		['PAGE','2659',jdecode('Eintr%E4ge+'),jdecode(''),'/2658/2659.html','true',[],'']
	],''],
	['PAGE','31640',jdecode('Impressum'),jdecode(''),'/31640.html','true',[],'']];
var siteelementCount=40;
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 */					                                                            

