/* [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','1002',jdecode('HOME'),jdecode(''),'/1002.html','true',[],''],
	['PAGE','3220',jdecode('Oberfl%E4chenvorbereitung'),jdecode(''),'/3220/index.html','true',[ 
		['PAGE','3994',jdecode('Vorbereitungsarten'),jdecode(''),'/3220/3994.html','true',[],'']
	],''],
	['PAGE','1055',jdecode('Bodenbeschichtung'),jdecode(''),'/1055/index.html','true',[ 
		['PAGE','3594',jdecode('WHG-Beschichtung'),jdecode(''),'/1055/3594.html','true',[],''],
		['PAGE','23435',jdecode('Ableitf%E4hige+Beschichtung'),jdecode(''),'/1055/23435.html','true',[],'']
	],''],
	['PAGE','13805',jdecode('Parkhausbeschichtung'),jdecode(''),'/13805/index.html','true',[ 
		['PAGE','14310',jdecode('Konstruktionsarten+'),jdecode(''),'/13805/14310.html','true',[],''],
		['PAGE','14636',jdecode('Bauwerkssch%E4den'),jdecode(''),'/13805/14636.html','true',[],''],
		['PAGE','15342',jdecode('Schadensursachen'),jdecode(''),'/13805/15342.html','true',[],''],
		['PAGE','16234',jdecode('Beschichtungssysteme+'),jdecode(''),'/13805/16234.html','true',[],''],
		['PAGE','16546',jdecode('Beschichtung+Freideck'),jdecode(''),'/13805/16546.html','true',[],''],
		['PAGE','22378',jdecode('Beschichtung+Zwischendeck'),jdecode(''),'/13805/22378.html','true',[],'']
	],''],
	['PAGE','1078',jdecode('Betoninstandsetzung'),jdecode(''),'/1078/index.html','true',[ 
		['PAGE','3090',jdecode('Betonsch%E4den'),jdecode(''),'/1078/3090.html','true',[],''],
		['PAGE','17515',jdecode('Beton+instandgesetzt'),jdecode(''),'/1078/17515.html','true',[],'']
	],''],
	['PAGE','22405',jdecode('Spritzbetonsanierung'),jdecode(''),'/22405.html','true',[],''],
	['PAGE','1124',jdecode('Korrosionsschutz'),jdecode(''),'/1124/index.html','true',[ 
		['PAGE','13505',jdecode('Korrosionssch%E4den'),jdecode(''),'/1124/13505.html','true',[],''],
		['PAGE','22028',jdecode('Korrosionsschutz+station%E4r'),jdecode(''),'/1124/22028.html','true',[],'']
	],''],
	['PAGE','1101',jdecode('Fugeninstandsetzung'),jdecode(''),'/1101.html','true',[],''],
	['PAGE','18308',jdecode('24+Stunden++HOTLINE'),jdecode(''),'/18308.html','true',[],''],
	['PAGE','18805',jdecode('Interessante+Links'),jdecode(''),'/18805.html','true',[],''],
	['PAGE','22805',jdecode('Kontakt'),jdecode(''),'/22805.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Activate';
					                                                                    
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 */					                                                            
