/* [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','111',jdecode('Home'),jdecode(''),'/111.html','true',[],''],
	['PAGE','240796',jdecode('Unsere+DJ%B4s'),jdecode(''),'/240796.html','true',[],''],
	['PAGE','3730',jdecode('Hochzeits-Special'),jdecode(''),'/3730.html','true',[],''],
	['PAGE','28176',jdecode('Musikstile'),jdecode(''),'/28176.html','true',[],''],
	['PAGE','5093',jdecode('Referenzen'),jdecode(''),'/5093/index.html','true',[ 
		['PAGE','2493',jdecode('Partybilder'),jdecode(''),'/5093/2493.html','true',[],'']
	],''],
	['PAGE','69988',jdecode('Faire+Preise'),jdecode(''),'/69988.html','true',[],''],
	['PAGE','1907',jdecode('Kontakt+%26+Anfrage'),jdecode(''),'/1907/index.html','true',[ 
		['PAGE','260959',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/260959.html','false',[],''],
		['PAGE','259621',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259621.html','false',[],''],
		['PAGE','259601',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259601.html','false',[],''],
		['PAGE','260282',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/260282.html','false',[],''],
		['PAGE','259843',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259843.html','false',[],''],
		['PAGE','259821',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259821.html','false',[],''],
		['PAGE','259802',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259802.html','false',[],''],
		['PAGE','259724',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259724.html','false',[],''],
		['PAGE','259704',jdecode('Kontakt+%26+Anfrage+%28Folgeseite%29'),jdecode(''),'/1907/259704.html','false',[],''],
		['PAGE','246207',jdecode('Kontakt+%2F+Booking+%28Folgeseite%29'),jdecode(''),'/1907/246207.html','false',[],'']
	],''],
	['PAGE','28199',jdecode('Sound+%26+Light'),jdecode(''),'/28199.html','true',[],''],
	['PAGE','205796',jdecode('Location-Scouting+'),jdecode(''),'/205796/index.html','true',[ 
		['PAGE','20332',jdecode('DJ+Steff+privat'),jdecode(''),'/205796/20332.html','false',[],'']
	],''],
	['PAGE','257897',jdecode('Partner'),jdecode(''),'/257897.html','true',[],''],
	['PAGE','26776',jdecode('Aktuelle+Charts'),jdecode(''),'/26776.html','true',[],''],
	['PAGE','61484',jdecode('AGB%B4s'),jdecode(''),'/61484.html','true',[],''],
	['PAGE','1665',jdecode('Impressum'),jdecode(''),'/1665/index.html','true',[ 
		['PAGE','82774',jdecode('Das+Team'),jdecode(''),'/1665/82774.html','true',[],'']
	],''],
	['PAGE','260898',jdecode('G%E4stebuch'),jdecode(''),'/260898/index.html','true',[ 
		['PAGE','260899',jdecode('Eintr%E4ge'),jdecode(''),'/260898/260899.html','true',[],'']
	],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Neon';
					                                                                    
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 */					                                                            
