/* [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('Startseite'),jdecode(''),'/4466/index.html','true',[ 
		['PAGE','32702',jdecode('Home+%28Folgeseite%29'),jdecode(''),'/4466/32702.html','false',[],'']
	],''],
	['PAGE','30901',jdecode('Messen'),jdecode(''),'/30901.html','true',[],''],
	['PAGE','27601',jdecode('Service'),jdecode(''),'/27601/index.html','true',[ 
		['PAGE','66633',jdecode('Gasanlagen'),jdecode(''),'/27601/66633.html','true',[],''],
		['PAGE','66733',jdecode('Elektrik+%2F+Zubeh%F6r'),jdecode(''),'/27601/66733.html','true',[],''],
		['PAGE','66433',jdecode('Unfallsch%E4den'),jdecode(''),'/27601/66433.html','true',[],''],
		['PAGE','66533',jdecode('Feuchtigkeitssch%E4den'),jdecode(''),'/27601/66533.html','true',[],'']
	],''],
	['PAGE','29501',jdecode('Vermietung+%2F+Verkauf'),jdecode(''),'/29501.html','true',[],''],
	['PAGE','31001',jdecode('Zubeh%F6r'),jdecode(''),'/31001.html','true',[],''],
	['PAGE','142797',jdecode('Neu+%2F+Gebrauchte+Teile'),jdecode(''),'/142797/index.html','true',[ 
		['PAGE','149921',jdecode('Rapido+Au%DFenteile'),jdecode(''),'/142797/149921.html','true',[],''],
		['PAGE','149952',jdecode('Challenger+Au%DFenteile'),jdecode(''),'/142797/149952.html','true',[],''],
		['PAGE','149983',jdecode('Sonstige+Au%DFenteile'),jdecode(''),'/142797/149983.html','true',[],''],
		['PAGE','150014',jdecode('Rapido+Innenteile'),jdecode(''),'/142797/150014.html','true',[],''],
		['PAGE','150045',jdecode('Challenger+Innenteile'),jdecode(''),'/142797/150045.html','true',[],''],
		['PAGE','150076',jdecode('Sonstige+Innenteile'),jdecode(''),'/142797/150076.html','true',[],'']
	],''],
	['PAGE','29694',jdecode('Einzelhandel'),jdecode(''),'/29694.html','true',[],''],
	['PAGE','137833',jdecode('Impressum'),jdecode(''),'/137833.html','true',[],''],
	['PAGE','30602',jdecode('Anfahrt'),jdecode(''),'/30602.html','true',[],''],
	['PAGE','30702',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/30702.html','true',[],''],
	['PAGE','63433',jdecode('Partner'),jdecode(''),'/63433.html','true',[],''],
	['PAGE','98363',jdecode('Reiseberichte'),jdecode(''),'/98363/index.html','true',[ 
		['PAGE','152970',jdecode('Frankreich+2011'),jdecode(''),'/98363/152970.html','true',[],''],
		['PAGE','143173',jdecode('Frankreich+2009'),jdecode(''),'/98363/143173.html','true',[],''],
		['PAGE','138133',jdecode('Frankreich+2008'),jdecode(''),'/98363/138133.html','true',[],''],
		['PAGE','134233',jdecode('Frankreich+2007'),jdecode(''),'/98363/134233.html','true',[],''],
		['PAGE','109264',jdecode('Frankreich+2006'),jdecode(''),'/98363/109264.html','true',[],''],
		['PAGE','101833',jdecode('Italien+2000'),jdecode(''),'/98363/101833.html','true',[],''],
		['PAGE','101864',jdecode('S%FCdfrankreich+1999'),jdecode(''),'/98363/101864.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Architekt';
					                                                                    
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 */					                                                            

