/* [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','110887',jdecode('Welpen+G-+Wurf+++'),jdecode(''),'/110887.html','true',[],''],
	['PAGE','2864',jdecode('Unsere+Hunde++'),jdecode(''),'/2864.html','true',[],''],
	['PAGE','11236',jdecode('Der+Wei%DFe+Sch%E4ferhund'),jdecode(''),'/11236.html','true',[],''],
	['PAGE','71799',jdecode('W%FCrfe+vor+dem+VDH'),jdecode(''),'/71799/index.html','true',[ 
		['PAGE','25140',jdecode('Welpen+D+-+Wurf++2002'),jdecode(''),'/71799/25140.html','true',[],''],
		['PAGE','2918',jdecode('Welpen+E+-+Wurf++2003'),jdecode(''),'/71799/2918.html','true',[],''],
		['PAGE','26648',jdecode('Welpen+F+-+Wurf+2004'),jdecode(''),'/71799/26648.html','true',[],'']
	],''],
	['PAGE','2837',jdecode('VDH+-+W%FCrfe++'),jdecode(''),'/2837/index.html','true',[ 
		['PAGE','75763',jdecode('B+-+Wurf+++C+-+Wurf'),jdecode(''),'/2837/75763.html','true',[],''],
		['PAGE','83600',jdecode('D-Wurf+++E+-+Wurf'),jdecode(''),'/2837/83600.html','true',[],'']
	],''],
	['PAGE','8023',jdecode('Welpen+2008'),jdecode(''),'/8023/index.html','true',[ 
		['PAGE','27705',jdecode('REGENBOGENBR%DCCKE++'),jdecode(''),'/8023/27705.html','true',[],''],
		['PAGE','108087',jdecode('Abschied+von+Fillepien'),jdecode(''),'/8023/108087.html','true',[],'']
	],''],
	['PAGE','16129',jdecode('Welpenkauf'),jdecode(''),'/16129.html','true',[],''],
	['PAGE','3053',jdecode('Kontakt'),jdecode(''),'/3053.html','true',[],''],
	['PAGE','7636',jdecode('Links'),jdecode(''),'/7636.html','true',[],''],
	['PAGE','6054',jdecode('Fotos'),jdecode(''),'/6054.html','true',[],''],
	['PAGE','118066',jdecode('G%E4stebuch'),jdecode(''),'/118066/index.html','true',[ 
		['PAGE','118067',jdecode('Eintr%E4ge'),jdecode(''),'/118066/118067.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            

