/* [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.html','true',[],''],
	['PAGE','488377',jdecode('Termine+2010'),jdecode(''),'/488377/index.html','true',[ 
		['PAGE','1274',jdecode('Nov.+2008+-+Dez.+2009'),jdecode(''),'/488377/1274.html','true',[],'']
	],''],
	['PAGE','17100',jdecode('A+K+T+U+E+L+L+++%2F+++News'),jdecode(''),'/17100.html','true',[],''],
	['PAGE','1205',jdecode('Biografie'),jdecode(''),'/1205/index.html','true',[ 
		['PAGE','16968',jdecode('Steckbrief'),jdecode(''),'/1205/16968.html','true',[],'']
	],''],
	['PAGE','1228',jdecode('Discografie'),jdecode(''),'/1228/index.html','true',[ 
		['PAGE','16990',jdecode('Alben'),jdecode(''),'/1228/16990.html','true',[],''],
		['PAGE','17012',jdecode('Singles'),jdecode(''),'/1228/17012.html','true',[],''],
		['PAGE','21569',jdecode('Sampler'),jdecode(''),'/1228/21569.html','true',[],'']
	],''],
	['PAGE','490063',jdecode('DAXHILL-Label+%2F+Team'),jdecode(''),'/490063/index.html','true',[ 
		['PAGE','17034',jdecode('POSITON-Label+%28bis+2009%29+'),jdecode(''),'/490063/17034.html','true',[],'']
	],''],
	['PAGE','17188',jdecode('CD-Bestellshop'),jdecode(''),'/17188/index.html','true',[ 
		['PAGE','495583',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495583.html','false',[],''],
		['PAGE','495301',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495301.html','false',[],''],
		['PAGE','495396',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495396.html','false',[],''],
		['PAGE','495377',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495377.html','false',[],''],
		['PAGE','495255',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495255.html','false',[],''],
		['PAGE','495279',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495279.html','false',[],''],
		['PAGE','495157',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495157.html','false',[],''],
		['PAGE','495131',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495131.html','false',[],''],
		['PAGE','495112',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495112.html','false',[],''],
		['PAGE','495093',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495093.html','false',[],''],
		['PAGE','495236',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495236.html','false',[],''],
		['PAGE','495214',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495214.html','false',[],''],
		['PAGE','495195',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495195.html','false',[],''],
		['PAGE','495173',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495173.html','false',[],''],
		['PAGE','494930',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/494930.html','false',[],''],
		['PAGE','495071',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495071.html','false',[],''],
		['PAGE','495049',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495049.html','false',[],''],
		['PAGE','495030',jdecode('CD-Bestellshop+%28Folgeseite%29'),jdecode(''),'/17188/495030.html','false',[],''],
		['PAGE','17950',jdecode('Bestellung+%28Folgeseite%29'),jdecode(''),'/17188/17950.html','false',[],'']
	],''],
	['PAGE','494569',jdecode('MP3+-+Download'),jdecode(''),'/494569.html','true',[],''],
	['PAGE','8167',jdecode('Autogramme'),jdecode(''),'/8167.html','true',[],''],
	['PAGE','29775',jdecode('Pressefotos'),jdecode(''),'/29775.html','true',[],''],
	['PAGE','481889',jdecode('Fotogalerien'),jdecode(''),'/481889/index.html','true',[ 
		['PAGE','17166',jdecode('Live+Events'),jdecode(''),'/481889/17166.html','true',[],''],
		['PAGE','1297',jdecode('Shooting'),jdecode(''),'/481889/1297.html','true',[],''],
		['PAGE','22385',jdecode('Privat'),jdecode(''),'/481889/22385.html','true',[],''],
		['PAGE','345671',jdecode('Fans+%26+Friends'),jdecode(''),'/481889/345671.html','true',[],'']
	],''],
	['PAGE','24776',jdecode('Fanclub'),jdecode(''),'/24776/index.html','true',[ 
		['PAGE','25603',jdecode('Anmeldung'),jdecode(''),'/24776/25603.html','true',[],''],
		['PAGE','31775',jdecode('Termine'),jdecode(''),'/24776/31775.html','true',[],''],
		['PAGE','222369',jdecode('Schnappsch%FCsse'),jdecode(''),'/24776/222369.html','true',[],''],
		['PAGE','24830',jdecode('Kontakt'),jdecode(''),'/24776/24830.html','true',[],'']
	],''],
	['PAGE','495799',jdecode('Newsletter-Abo'),jdecode(''),'/495799/index.html','true',[ 
		['PAGE','495864',jdecode('Newsletter-Abo+%28Folgeseite%29'),jdecode(''),'/495799/495864.html','false',[],'']
	],''],
	['PAGE','1343',jdecode('Links'),jdecode(''),'/1343.html','true',[],''],
	['PAGE','1320',jdecode('Impressum+%2F+Kontakt'),jdecode(''),'/1320.html','true',[],''],
	['PAGE','381669',jdecode('AGB'),jdecode(''),'/381669.html','true',[],'']];
var siteelementCount=50;
theSitetree.topTemplateName='Art';
					                                                                    
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 */					                                                            
