/* [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','961',jdecode('Home'),jdecode(''),'/961.html','true',[],''],
	['PAGE','1106',jdecode('%DCber+uns'),jdecode(''),'/1106/index.html','true',[ 
		['PAGE','29344',jdecode('Presse'),jdecode(''),'/1106/29344.html','true',[],''],
		['PAGE','28844',jdecode('Planenstoff+mal+anders'),jdecode(''),'/1106/28844.html','true',[],''],
		['PAGE','27844',jdecode('Praktika+%26+Ausbildung'),jdecode(''),'/1106/27844.html','true',[],''],
		['PAGE','33444',jdecode('Stellenangebote'),jdecode(''),'/1106/33444.html','true',[],'']
	],''],
	['PAGE','1513',jdecode('Aktuelles'),jdecode(''),'/1513/index.html','true',[ 
		['PAGE','22520',jdecode('KFZ-News'),jdecode(''),'/1513/22520.html','true',[],'']
	],''],
	['PAGE','31914',jdecode('Sattlerei'),jdecode(''),'/31914/index.html','true',[ 
		['PAGE','21708',jdecode('Bootsplanen+%26+-sitze'),jdecode(''),'/31914/21708.html','true',[],''],
		['PAGE','30656',jdecode('PKW-Sitze+und+Verkleidungen'),jdecode(''),'/31914/30656.html','true',[],''],
		['PAGE','20921',jdecode('LKW-+und+Staplersitze'),jdecode(''),'/31914/20921.html','true',[],''],
		['PAGE','21076',jdecode('Motorrads%E4ttel'),jdecode(''),'/31914/21076.html','true',[],''],
		['PAGE','20797',jdecode('Verdecke'),jdecode(''),'/31914/20797.html','true',[],''],
		['PAGE','24815',jdecode('Oldtimer'),jdecode(''),'/31914/24815.html','true',[],''],
		['PAGE','23037',jdecode('Polster+%26+Co.'),jdecode(''),'/31914/23037.html','true',[],''],
		['PAGE','30544',jdecode('Leder-Pflege'),jdecode(''),'/31914/30544.html','true',[],''],
		['PAGE','24609',jdecode('Taschen+%26+Co.'),jdecode(''),'/31914/24609.html','true',[],''],
		['PAGE','27154',jdecode('ReHa'),jdecode(''),'/31914/27154.html','true',[],'']
	],''],
	['PAGE','31945',jdecode('Planen+%26+Netze'),jdecode(''),'/31945/index.html','true',[ 
		['PAGE','20859',jdecode('Abdeckplanen'),jdecode(''),'/31945/20859.html','true',[],''],
		['PAGE','21169',jdecode('Bauplanen+%26+-netze'),jdecode(''),'/31945/21169.html','true',[],''],
		['PAGE','27444',jdecode('Schwimmbadplanen'),jdecode(''),'/31945/27444.html','true',[],''],
		['PAGE','20890',jdecode('Containerabdeckungen'),jdecode(''),'/31945/20890.html','true',[],''],
		['PAGE','20983',jdecode('Werbeplanen'),jdecode(''),'/31945/20983.html','true',[],''],
		['PAGE','20828',jdecode('LKW-Planen'),jdecode(''),'/31945/20828.html','true',[],''],
		['PAGE','26644',jdecode('Zeltplanen+%26+Vorh%E4nge+'),jdecode(''),'/31945/26644.html','true',[],''],
		['PAGE','22184',jdecode('Sichtschutz'),jdecode(''),'/31945/22184.html','true',[],'']
	],''],
	['PAGE','20952',jdecode('Sonnenschutz'),jdecode(''),'/20952.html','true',[],''],
	['PAGE','31344',jdecode('Messe+%26+B%FChnenbau'),jdecode(''),'/31344.html','true',[],''],
	['PAGE','21138',jdecode('Technische+Konfektion'),jdecode(''),'/21138.html','true',[],''],
	['PAGE','21207',jdecode('Zubeh%F6r+%26+Reparaturen'),jdecode(''),'/21207.html','true',[],''],
	['PAGE','1014',jdecode('Kontakt'),jdecode(''),'/1014/index.html','true',[ 
		['PAGE','1815',jdecode('Kontakt'),jdecode(''),'/1014/1815.html','false',[],''],
		['PAGE','21014',jdecode('So+finden+Sie+uns'),jdecode(''),'/1014/21014.html','true',[],''],
		['PAGE','22626',jdecode('Lageplan'),jdecode(''),'/1014/22626.html','true',[],''],
		['PAGE','22596',jdecode('Routenplaner'),jdecode(''),'/1014/22596.html','true',[],'']
	],''],
	['PAGE','1083',jdecode('Service'),jdecode(''),'/1083.html','true',[],''],
	['PAGE','33144',jdecode('Newsletter'),jdecode(''),'/33144.html','true',[],''],
	['PAGE','2959',jdecode('Impressum'),jdecode(''),'/2959/index.html','true',[ 
		['PAGE','28775',jdecode('Datenschutz'),jdecode(''),'/2959/28775.html','true',[],'']
	],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
