/* [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','1312',jdecode('Home'),jdecode(''),'/1312.html','true',[],''],
	['PAGE','49066',jdecode('News'),jdecode(''),'/49066.html','true',[],''],
	['PAGE','12266',jdecode('Unsere+Hunde'),jdecode(''),'/12266/index.html','true',[ 
		['PAGE','12902',jdecode('Belaja'),jdecode(''),'/12266/12902.html','true',[],''],
		['PAGE','66000',jdecode('Balou+B%E4r'),jdecode(''),'/12266/66000.html','true',[],''],
		['PAGE','10396',jdecode('Chern%60ka'),jdecode(''),'/12266/10396.html','true',[],''],
		['PAGE','10531',jdecode('Dshatak++'),jdecode(''),'/12266/10531.html','true',[],''],
		['PAGE','66462',jdecode('Dimona'),jdecode(''),'/12266/66462.html','true',[],''],
		['PAGE','72666',jdecode('Dayna'),jdecode(''),'/12266/72666.html','true',[],'']
	],''],
	['PAGE','69050',jdecode('Unvergessen'),jdecode(''),'/69050.html','true',[],''],
	['PAGE','12929',jdecode('Welpen'),jdecode(''),'/12929.html','true',[],''],
	['PAGE','13866',jdecode('Ausstellungen'),jdecode(''),'/13866/index.html','true',[ 
		['PAGE','29666',jdecode('Erfolge'),jdecode(''),'/13866/29666.html','true',[],'']
	],''],
	['PAGE','10477',jdecode('Kontakt'),jdecode(''),'/10477.html','true',[],''],
	['PAGE','64767',jdecode('+Ahnen+der+Dorfsch%FCler'),jdecode(''),'/64767.html','true',[],''],
	['PAGE','15667',jdecode('G%E4stebuch'),jdecode(''),'/15667/index.html','true',[ 
		['PAGE','15668',jdecode('Eintr%E4ge'),jdecode(''),'/15667/15668.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Fotoalbum';
					                                                                    
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 */					                                                            
