/* [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','4466',jdecode('Veranstalter'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','83108',jdecode('Programm+2010'),jdecode(''),'/83108/index.html','true',[ 
		['PAGE','74859',jdecode('Schw%E4bische+Alb'),jdecode(''),'/83108/74859.html','true',[],''],
		['PAGE','50368',jdecode('Haute+Provence'),jdecode(''),'/83108/50368.html','true',[],''],
		['PAGE','50302',jdecode('Gardasee+'),jdecode(''),'/83108/50302.html','true',[],''],
		['PAGE','53668',jdecode('Barcelona+'),jdecode(''),'/83108/53668.html','true',[],''],
		['PAGE','74890',jdecode('Wunschreise'),jdecode(''),'/83108/74890.html','true',[],'']
	],''],
	['PAGE','10301',jdecode('Vulkane+im+Hegau'),jdecode(''),'/10301.html','true',[],''],
	['PAGE','4530',jdecode('Shop'),jdecode(''),'/4530.html','true',[],''],
	['PAGE','18836',jdecode('Newsletter'),jdecode(''),'/18836.html','true',[],''],
	['PAGE','40871',jdecode('Goethe+und+die+Geologie'),jdecode(''),'/40871.html','true',[],''],
	['PAGE','29968',jdecode('Goethe+and+Geology'),jdecode(''),'/29968.html','true',[],''],
	['PAGE','4623',jdecode('Schulen'),jdecode(''),'/4623/index.html','true',[ 
		['PAGE','31268',jdecode('Kreuzlingen+'),jdecode(''),'/4623/31268.html','true',[],''],
		['PAGE','92600',jdecode('Weinheim'),jdecode(''),'/4623/92600.html','true',[],''],
		['PAGE','56830',jdecode('R%FCsselsheim'),jdecode(''),'/4623/56830.html','true',[],''],
		['PAGE','34768',jdecode('Hegau+%2F+Bodensee'),jdecode(''),'/4623/34768.html','true',[],''],
		['PAGE','24636',jdecode('Ulm'),jdecode(''),'/4623/24636.html','true',[],''],
		['PAGE','31668',jdecode('JH+Singen'),jdecode(''),'/4623/31668.html','true',[],''],
		['PAGE','37168',jdecode('JH+Stein+am+Rhein'),jdecode(''),'/4623/37168.html','true',[],'']
	],''],
	['PAGE','21936',jdecode('Termine+f%FCr+Gruppen'),jdecode(''),'/21936/index.html','true',[ 
		['PAGE','33177',jdecode('JUKS+Schramberg'),jdecode(''),'/21936/33177.html','true',[],''],
		['PAGE','41904',jdecode('Stadt+Engen'),jdecode(''),'/21936/41904.html','true',[],''],
		['PAGE','78762',jdecode('Kindergeburtstage'),jdecode(''),'/21936/78762.html','true',[],'']
	],''],
	['PAGE','11001',jdecode('Partner'),jdecode(''),'/11001.html','true',[],''],
	['PAGE','4592',jdecode('Excursions+francophones'),jdecode(''),'/4592/index.html','true',[ 
		['PAGE','79124',jdecode('Haute+Provence'),jdecode(''),'/4592/79124.html','true',[],''],
		['PAGE','79155',jdecode('Lac+de+Garde'),jdecode(''),'/4592/79155.html','true',[],''],
		['PAGE','79217',jdecode('Barcelone'),jdecode(''),'/4592/79217.html','true',[],''],
		['PAGE','75691',jdecode('Voyage+%E0+la+carte'),jdecode(''),'/4592/75691.html','true',[],'']
	],''],
	['PAGE','15350',jdecode('Sorties+scolaires'),jdecode(''),'/15350/index.html','true',[ 
		['PAGE','57868',jdecode('Bassecourt'),jdecode(''),'/15350/57868.html','true',[],''],
		['PAGE','32968',jdecode('Chevigny'),jdecode(''),'/15350/32968.html','true',[],''],
		['PAGE','57899',jdecode('Rixheim'),jdecode(''),'/15350/57899.html','true',[],''],
		['PAGE','92000',jdecode('Ferney-Voltaire'),jdecode(''),'/15350/92000.html','true',[],'']
	],''],
	['PAGE','15319',jdecode('Partenaires'),jdecode(''),'/15319.html','true',[],''],
	['PAGE','32999',jdecode('Uni+Freiburg'),jdecode(''),'/32999.html','true',[],''],
	['PAGE','56068',jdecode('PH+Freiburg'),jdecode(''),'/56068.html','true',[],''],
	['PAGE','93100',jdecode('Archiv+2010'),jdecode(''),'/93100.html','true',[],''],
	['PAGE','79408',jdecode('Archiv+2009'),jdecode(''),'/79408.html','true',[],''],
	['PAGE','58868',jdecode('Archiv+2008'),jdecode(''),'/58868.html','true',[],''],
	['PAGE','43668',jdecode('Archiv+2007'),jdecode(''),'/43668.html','true',[],'']];
var siteelementCount=42;
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 */					                                                            
