/* [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','1153',jdecode('Herzlich+Willkommen'),jdecode(''),'/1153.html','true',[],''],
	['PAGE','49397',jdecode('Svenja+Habiba'),jdecode(''),'/49397/index.html','true',[ 
		['PAGE','1641',jdecode('Referenzen+...'),jdecode(''),'/49397/1641.html','true',[],''],
		['PAGE','66537',jdecode('Jubil%E4um+1994+-+2004+...'),jdecode(''),'/49397/66537.html','true',[],'']
	],''],
	['PAGE','77937',jdecode('Galerie+Svenja+Habiba'),jdecode(''),'/77937.html','true',[],''],
	['PAGE','57154',jdecode('Auftritte'),jdecode(''),'/57154.html','true',[],''],
	['PAGE','83837',jdecode('MOSAIK+2010'),jdecode(''),'/83837.html','true',[],''],
	['PAGE','1229',jdecode('Unterricht+%2F+Workshops'),jdecode(''),'/1229/index.html','true',[ 
		['PAGE','5459',jdecode('Der+Orientalische+Tanz+...'),jdecode(''),'/1229/5459.html','true',[],''],
		['PAGE','1595',jdecode('laufender+Unterricht+...'),jdecode(''),'/1229/1595.html','true',[],''],
		['PAGE','48852',jdecode('neuer+Einsteigerkurs+...'),jdecode(''),'/1229/48852.html','true',[],''],
		['PAGE','51752',jdecode('Dozentinnen+...'),jdecode(''),'/1229/51752.html','true',[],''],
		['PAGE','1664',jdecode('Teilnahmbedingungen+...'),jdecode(''),'/1229/1664.html','true',[],''],
		['PAGE','40971',jdecode('Anmeldung+...'),jdecode(''),'/1229/40971/index.html','true',[ 
			['PAGE','41003',jdecode('Anmeldung+%2F+Anmeldeformular+%28Folgeseite%29'),jdecode(''),'/1229/40971/41003.html','false',[],'']
		],'']
	],''],
	['PAGE','1321',jdecode('Anfahrt'),jdecode(''),'/1321.html','true',[],''],
	['PAGE','50132',jdecode('Nariman+Tanz+Ensemble'),jdecode(''),'/50132/index.html','true',[ 
		['PAGE','1710',jdecode('Al-Ahram+und+Nariman+...'),jdecode(''),'/50132/1710.html','true',[],''],
		['PAGE','28652',jdecode('Vita+...'),jdecode(''),'/50132/28652.html','true',[],''],
		['PAGE','51779',jdecode('Nariman+au%DFerhalb+...'),jdecode(''),'/50132/51779.html','true',[],''],
		['PAGE','64352',jdecode('Aufnahmen+von+Auftritten+...'),jdecode(''),'/50132/64352.html','true',[],'']
	],''],
	['PAGE','76637',jdecode('Die+Welt+die+Monden+ist+'),jdecode(''),'/76637.html','true',[],''],
	['PAGE','6506',jdecode('Kontakt+'),jdecode(''),'/6506/index.html','true',[ 
		['PAGE','6593',jdecode('Kontakt+'),jdecode(''),'/6506/6593.html','false',[],'']
	],''],
	['PAGE','6529',jdecode('Impressum+%2F+HA'),jdecode(''),'/6529.html','true',[],''],
	['PAGE','33752',jdecode('Links'),jdecode(''),'/33752.html','true',[],''],
	['PAGE','51846',jdecode('G%E4stebuch'),jdecode(''),'/51846/index.html','true',[ 
		['PAGE','51847',jdecode('Eintr%E4ge+...'),jdecode(''),'/51846/51847.html','true',[],'']
	],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            
