/* [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','4613',jdecode('Home'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','4955',jdecode('Anfahrt'),jdecode(''),'/4955.html','true',[],''],
	['PAGE','10402',jdecode('G%E4stebuch'),jdecode(''),'/10402/index.html','true',[ 
		['PAGE','10403',jdecode('Eintr%E4ge'),jdecode(''),'/10402/10403.html','true',[],''],
		['PAGE','24722',jdecode('Feedback+%28Folgeseite%29'),jdecode(''),'/10402/24722.html','false',[],'']
	],''],
	['PAGE','24685',jdecode('Ihre+Anfrage'),jdecode(''),'/24685/index.html','true',[ 
		['PAGE','45719',jdecode('Ihre+Anfrage+%28Folgeseite%29'),jdecode(''),'/24685/45719.html','false',[],''],
		['PAGE','45618',jdecode('Ihre+Anfrage+%28Folgeseite%29'),jdecode(''),'/24685/45618.html','false',[],''],
		['PAGE','44318',jdecode('Ihre+Anfrage+%28Folgeseite%29'),jdecode(''),'/24685/44318.html','false',[],''],
		['PAGE','44054',jdecode('Ihre+Anfrage+%28Folgeseite%29'),jdecode(''),'/24685/44054.html','false',[],'']
	],''],
	['PAGE','11002',jdecode('Impressum'),jdecode(''),'/11002/index.html','true',[ 
		['PAGE','26898',jdecode('Intern'),jdecode(''),'/11002/26898.html','true',[],''],
		['PAGE','43818',jdecode('.'),jdecode(''),'/11002/43818.html','true',[],''],
		['PAGE','43853',jdecode('..'),jdecode(''),'/11002/43853.html','true',[],''],
		['PAGE','43883',jdecode('...'),jdecode(''),'/11002/43883.html','true',[],''],
		['PAGE','43918',jdecode('....'),jdecode(''),'/11002/43918.html','true',[],''],
		['PAGE','44018',jdecode('.....'),jdecode(''),'/11002/44018.html','true',[],'']
	],''],
	['PAGE','14820',jdecode('Links'),jdecode(''),'/14820/index.html','true',[ 
		['PAGE','28397',jdecode('Weitere+Links'),jdecode(''),'/14820/28397.html','true',[],'']
	],''],
	['PAGE','44618',jdecode('News'),jdecode(''),'/44618/index.html','true',[ 
		['PAGE','45250',jdecode('Auto+%26+KFZ'),jdecode(''),'/44618/45250.html','true',[],''],
		['PAGE','44726',jdecode('Politik'),jdecode(''),'/44618/44726.html','true',[],''],
		['PAGE','45142',jdecode('Telekommunikation'),jdecode(''),'/44618/45142.html','true',[],''],
		['PAGE','45070',jdecode('Wissenschaft'),jdecode(''),'/44618/45070.html','true',[],''],
		['PAGE','44654',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/44618/44654.html','true',[],'']
	],''],
	['PAGE','45106',jdecode('Noch+mehr+News'),jdecode(''),'/45106/index.html','true',[ 
		['PAGE','45214',jdecode('Essen+und+Trinken'),jdecode(''),'/45106/45214.html','true',[],''],
		['PAGE','45286',jdecode('Gesundheit'),jdecode(''),'/45106/45286.html','true',[],''],
		['PAGE','45178',jdecode('Reise+%26+Urlaub'),jdecode(''),'/45106/45178.html','true',[],'']
	],''],
	['PAGE','43017',jdecode('S+T+E+U+E+R+-+I+N+F+O+S'),jdecode(''),'/43017.html','true',[],''],
	['PAGE','44690',jdecode('Wetter'),jdecode(''),'/44690.html','true',[],''],
	['PAGE','44818',jdecode('Wirtschaft'),jdecode(''),'/44818/index.html','true',[ 
		['PAGE','44998',jdecode('Aktienanalysen'),jdecode(''),'/44818/44998.html','true',[],''],
		['PAGE','44926',jdecode('B%F6rsen-Indizes'),jdecode(''),'/44818/44926.html','true',[],''],
		['PAGE','44854',jdecode('Kursdaten'),jdecode(''),'/44818/44854.html','true',[],''],
		['PAGE','44962',jdecode('Marktberichte'),jdecode(''),'/44818/44962.html','true',[],''],
		['PAGE','44890',jdecode('Top+%26+Flop'),jdecode(''),'/44818/44890.html','true',[],'']
	],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            

