/* [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','1115',jdecode('Home'),jdecode(''),'/1115/index.html','true',[ 
		['PAGE','61649',jdecode('English'),jdecode(''),'/1115/61649.html','true',[],''],
		['PAGE','59883',jdecode('Sonderseite+Edi+'),jdecode(''),'/1115/59883.html','true',[],''],
		['PAGE','77149',jdecode('Sonderseite+Bernd'),jdecode(''),'/1115/77149.html','true',[],'']
	],''],
	['PAGE','1214',jdecode('Wir+%FCber+uns'),jdecode(''),'/1214.html','true',[],''],
	['PAGE','1191',jdecode('News+und+Infos'),jdecode(''),'/1191/index.html','true',[ 
		['PAGE','59049',jdecode('Reiseinfo'),jdecode(''),'/1191/59049.html','true',[],''],
		['PAGE','68249',jdecode('Bridge+Days+5%21'),jdecode(''),'/1191/68249.html','true',[],''],
		['PAGE','68549',jdecode('Bilder+GBD+5'),jdecode(''),'/1191/68549.html','true',[],''],
		['PAGE','63349',jdecode('Bridge+Days+4'),jdecode(''),'/1191/63349.html','true',[],''],
		['PAGE','56151',jdecode('Bridge+Days+3'),jdecode(''),'/1191/56151.html','true',[],'']
	],''],
	['PAGE','73849',jdecode('Sonderseite+GBD+6+'),jdecode(''),'/73849/index.html','true',[ 
		['PAGE','75146',jdecode('Bilder+GBD+6'),jdecode(''),'/73849/75146.html','true',[],'']
	],''],
	['PAGE','64649',jdecode('Sonderseite+IBWC+'),jdecode(''),'/64649/index.html','true',[ 
		['PAGE','65421',jdecode('Bilder+IBWC'),jdecode(''),'/64649/65421.html','true',[],'']
	],''],
	['PAGE','62049',jdecode('Sonderseite+WKF+'),jdecode(''),'/62049.html','true',[],''],
	['PAGE','1415',jdecode('Bilder'),jdecode(''),'/1415/index.html','true',[ 
		['PAGE','1613',jdecode('Bilder+2'),jdecode(''),'/1415/1613.html','true',[],''],
		['PAGE','44749',jdecode('Bilder+3'),jdecode(''),'/1415/44749.html','true',[],''],
		['PAGE','50449',jdecode('Wilde+Gera+'),jdecode(''),'/1415/50449.html','true',[],''],
		['PAGE','50949',jdecode('Wilde+Gera+2'),jdecode(''),'/1415/50949.html','true',[],''],
		['PAGE','51401',jdecode('Rheinturm'),jdecode(''),'/1415/51401.html','true',[],'']
	],''],
	['PAGE','47617',jdecode('Media'),jdecode(''),'/47617.html','true',[],''],
	['PAGE','47782',jdecode('Technik+'),jdecode(''),'/47782.html','true',[],''],
	['PAGE','47249',jdecode('Gebrauchtmarkt'),jdecode(''),'/47249.html','true',[],''],
	['PAGE','5636',jdecode('Links'),jdecode(''),'/5636.html','true',[],''],
	['PAGE','1168',jdecode('Kontakt'),jdecode(''),'/1168/index.html','true',[ 
		['PAGE','44150',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/1168/44150.html','false',[],'']
	],''],
	['PAGE','2099',jdecode('G%E4stebuch'),jdecode(''),'/2099/index.html','true',[ 
		['PAGE','2100',jdecode('Eintr%E4ge'),jdecode(''),'/2099/2100.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Orbit';
					                                                                    
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 */					                                                            
