/* [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','1152',jdecode('Home'),jdecode(''),'/1152/index.html','true',[ 
		['PAGE','1609',jdecode('Home'),jdecode(''),'/1152/1609.html','false',[],'']
	],''],
	['PAGE','39809',jdecode('News'),jdecode(''),'/39809.html','true',[],''],
	['PAGE','1205',jdecode('Wir+%FCber+uns'),jdecode(''),'/1205.html','true',[],''],
	['PAGE','1251',jdecode('Produkte%2C+Leistungen'),jdecode(''),'/1251/index.html','true',[ 
		['PAGE','1274',jdecode('Busfahrten%2F+Flughafentransfer'),jdecode(''),'/1251/1274.html','true',[],''],
		['PAGE','1297',jdecode('Krankenfahrten'),jdecode(''),'/1251/1297.html','true',[],''],
		['PAGE','1320',jdecode('Kurierdienste'),jdecode(''),'/1251/1320.html','true',[],'']
	],''],
	['PAGE','1343',jdecode('Crew-+Shuttle'),jdecode(''),'/1343.html','true',[],''],
	['PAGE','2154',jdecode('Links'),jdecode(''),'/2154.html','true',[],''],
	['PAGE','1389',jdecode('Jobs'),jdecode(''),'/1389.html','true',[],''],
	['PAGE','2394',jdecode('G%E4stebuch'),jdecode(''),'/2394/index.html','true',[ 
		['PAGE','2395',jdecode('Eintr%E4ge'),jdecode(''),'/2394/2395.html','true',[],'']
	],''],
	['PAGE','40602',jdecode('Wetter'),jdecode(''),'/40602.html','true',[],''],
	['PAGE','40674',jdecode('Auto+%26+KFZ'),jdecode(''),'/40674.html','true',[],''],
	['PAGE','41104',jdecode('Reiseinformationen'),jdecode(''),'/41104.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            

