/* [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','4481',jdecode('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','383873',jdecode('Unsere+Angebote'),jdecode(''),'/383873/index.html','true',[ 
		['PAGE','371528',jdecode('Moderation+und+Dj'),jdecode(''),'/383873/371528.html','true',[],''],
		['PAGE','379707',jdecode('Butler+James'),jdecode(''),'/383873/379707.html','true',[],''],
		['PAGE','383842',jdecode('Clown+Lorry'),jdecode(''),'/383873/383842.html','true',[],''],
		['PAGE','391057',jdecode('Breakdance'),jdecode(''),'/383873/391057.html','true',[],''],
		['PAGE','390407',jdecode('Kathlen%60s+Hundeshow'),jdecode(''),'/383873/390407.html','true',[],''],
		['PAGE','396487',jdecode('Rudolphines+Show'),jdecode(''),'/383873/396487.html','true',[],''],
		['PAGE','396518',jdecode('Bodybuildingshow'),jdecode(''),'/383873/396518.html','true',[],''],
		['PAGE','393514',jdecode('Resident+DJ%B4s'),jdecode(''),'/383873/393514.html','true',[],''],
		['PAGE','391156',jdecode('Dj%60s+xxx'),jdecode(''),'/383873/391156.html','true',[],''],
		['PAGE','393576',jdecode('ICESTORM+-+CREW'),jdecode(''),'/383873/393576.html','true',[],''],
		['PAGE','29834',jdecode('Models+und+mehr...'),jdecode(''),'/383873/29834.html','true',[],''],
		['PAGE','15701',jdecode('Bodypaintshow'),jdecode(''),'/383873/15701.html','true',[],''],
		['PAGE','29602',jdecode('stripper%2Fin'),jdecode(''),'/383873/29602.html','true',[],''],
		['PAGE','399787',jdecode('Party-Ausstattung'),jdecode(''),'/383873/399787.html','true',[],''],
		['PAGE','400021',jdecode('Videoleinwand'),jdecode(''),'/383873/400021.html','true',[],'']
	],''],
	['PAGE','16601',jdecode('VERANSTALTUNGEN'),jdecode(''),'/16601/index.html','true',[ 
		['PAGE','417049',jdecode('Frank+Sch%F6bel+Abend'),jdecode(''),'/16601/417049.html','true',[],''],
		['PAGE','402588',jdecode('Icestorm+Fotos'),jdecode(''),'/16601/402588.html','true',[],'']
	],''],
	['PAGE','383904',jdecode('Referenzen%2F+Fotos'),jdecode(''),'/383904/index.html','true',[ 
		['PAGE','382958',jdecode('V.+Fotos'),jdecode(''),'/383904/382958.html','true',[],'']
	],''],
	['PAGE','13901',jdecode('Stellenangebote'),jdecode(''),'/13901/index.html','true',[ 
		['PAGE','28408',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13901/28408.html','false',[],'']
	],''],
	['PAGE','9335',jdecode('Kontakt'),jdecode(''),'/9335/index.html','true',[ 
		['PAGE','19002',jdecode('Anfahrt'),jdecode(''),'/9335/19002.html','true',[],''],
		['PAGE','19108',jdecode('Routenplaner'),jdecode(''),'/9335/19108.html','true',[],'']
	],''],
	['PAGE','413223',jdecode('Vorverkaufsstellen'),jdecode(''),'/413223/index.html','true',[ 
		['PAGE','415376',jdecode('FREIKARTEN'),jdecode(''),'/413223/415376.html','true',[],'']
	],''],
	['PAGE','417162',jdecode('Shop'),jdecode(''),'/417162/index.html','true',[ 
		['PAGE','400196',jdecode('PREISE'),jdecode(''),'/417162/400196.html','true',[],''],
		['PAGE','400112',jdecode('Personal'),jdecode(''),'/417162/400112.html','true',[],''],
		['PAGE','400227',jdecode('Material%2FAusstattung'),jdecode(''),'/417162/400227.html','true',[],'']
	],''],
	['PAGE','385207',jdecode('Links%2FPartner'),jdecode(''),'/385207.html','true',[],''],
	['PAGE','379216',jdecode('Impressum'),jdecode(''),'/379216.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Sportive';
					                                                                    
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 */					                                                            

