/* [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('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','32101',jdecode('RadioPressKits'),jdecode(''),'/32101.html','true',[],''],
	['PAGE','9301',jdecode('Audio'),jdecode(''),'/9301/index.html','true',[ 
		['PAGE','12101',jdecode('Audio-Projekte+'),jdecode(''),'/9301/12101.html','true',[],''],
		['PAGE','14701',jdecode('Audio+h%F6ren+Eins'),jdecode(''),'/9301/14701.html','true',[],''],
		['PAGE','17949',jdecode('Audio+h%F6ren+Zwei'),jdecode(''),'/9301/17949.html','true',[],'']
	],''],
	['PAGE','9332',jdecode('Radio'),jdecode(''),'/9332/index.html','true',[ 
		['PAGE','30680',jdecode('H%F6ren%3A+Buntes'),jdecode(''),'/9332/30680.html','true',[],''],
		['PAGE','30129',jdecode('H%F6ren%3A+Gamechecks'),jdecode(''),'/9332/30129.html','true',[],''],
		['PAGE','30544',jdecode('H%F6ren%3A+Technik'),jdecode(''),'/9332/30544.html','true',[],''],
		['PAGE','30927',jdecode('H%F6ren%3A+N%FCtzliche+Software'),jdecode(''),'/9332/30927.html','true',[],''],
		['PAGE','14801',jdecode('Radio+lesen'),jdecode(''),'/9332/14801.html','true',[],'']
	],''],
	['PAGE','9508',jdecode('Text'),jdecode(''),'/9508/index.html','true',[ 
		['PAGE','13901',jdecode('Texte+lesen'),jdecode(''),'/9508/13901.html','true',[],'']
	],''],
	['PAGE','21901',jdecode('Reviews+%2F+Games'),jdecode(''),'/21901/index.html','true',[ 
		['PAGE','31110',jdecode('Games+Reviews+2007'),jdecode(''),'/21901/31110.html','true',[],''],
		['PAGE','31178',jdecode('Games+Reviews+2006'),jdecode(''),'/21901/31178.html','true',[],''],
		['PAGE','31209',jdecode('Games+Reviews+2005'),jdecode(''),'/21901/31209.html','true',[],'']
	],''],
	['PAGE','22758',jdecode('Reviews+%2F+Studio+'),jdecode(''),'/22758/index.html','true',[ 
		['PAGE','21994',jdecode('Studio%3A+Motion+Dive+Tokyo'),jdecode(''),'/22758/21994.html','true',[],''],
		['PAGE','29584',jdecode('Studio%3A+ProKeys+88'),jdecode(''),'/22758/29584.html','true',[],''],
		['PAGE','29408',jdecode('Studio%3A+Noxon+2+Audio'),jdecode(''),'/22758/29408.html','true',[],''],
		['PAGE','21963',jdecode('Sampling+CDs'),jdecode(''),'/22758/21963.html','true',[],'']
	],''],
	['PAGE','23701',jdecode('Downloads'),jdecode(''),'/23701/index.html','true',[ 
		['PAGE','23301',jdecode('Downloads+Music+new'),jdecode(''),'/23701/23301.html','true',[],''],
		['PAGE','23795',jdecode('Downloads+Music+old'),jdecode(''),'/23701/23795.html','true',[],'']
	],''],
	['PAGE','32201',jdecode('Audiotexturat+Privat'),jdecode(''),'/32201/index.html','true',[ 
		['PAGE','32232',jdecode('Konzert+GC+2007'),jdecode(''),'/32201/32232.html','true',[],'']
	],''],
	['PAGE','25301',jdecode('Outtakes'),jdecode(''),'/25301.html','true',[],''],
	['PAGE','10201',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/10201/index.html','true',[ 
		['PAGE','10524',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/10201/10524.html','false',[],'']
	],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Inspiration';
					                                                                    
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 */					                                                            
