/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','10203',jdecode('%DCber+den+H%F6hlerhof'),jdecode(''),'/10203.html','true',[],''],
	['PAGE','10230',jdecode('Die+Ferienwohnungen'),jdecode(''),'/10230/index.html','true',[ 
		['PAGE','10257',jdecode('Heustockwohnung'),jdecode(''),'/10230/10257.html','true',[],''],
		['PAGE','35908',jdecode('Tennewohnung'),jdecode(''),'/10230/35908.html','true',[],''],
		['PAGE','65570',jdecode('Nussbaumwohnung'),jdecode(''),'/10230/65570.html','true',[],''],
		['PAGE','10284',jdecode('Der+Garten'),jdecode(''),'/10230/10284.html','true',[],''],
		['PAGE','34869',jdecode('Alles+f%FCr+die+Kinder'),jdecode(''),'/10230/34869.html','true',[],'']
	],''],
	['PAGE','10311',jdecode('Preis+%26+Leistung'),jdecode(''),'/10311.html','true',[],''],
	['PAGE','10338',jdecode('Online-Anfragen'),jdecode(''),'/10338/index.html','true',[ 
		['PAGE','10907',jdecode('Online-Anfragen+%28Folgeseite%29'),jdecode(''),'/10338/10907.html','false',[],'']
	],''],
	['PAGE','33945',jdecode('Die+Haldenberg+Kapelle'),jdecode(''),'/33945.html','true',[],''],
	['PAGE','34433',jdecode('Der+Zeppelin+NT'),jdecode(''),'/34433.html','true',[],''],
	['PAGE','48784',jdecode('Anfahrt'),jdecode(''),'/48784.html','true',[],''],
	['PAGE','48884',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/48884.html','true',[],''],
	['PAGE','37683',jdecode('Impressum%2FKontakt'),jdecode(''),'/37683.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Shadows';
					                                                                    
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 */					                                                            
