/* [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','44301',jdecode('WC+Trennwand+A30'),jdecode(''),'/44301/index.html','true',[ 
		['PAGE','71360',jdecode('Beschreibung'),jdecode(''),'/44301/71360.html','true',[],''],
		['PAGE','71422',jdecode('Beispiele'),jdecode(''),'/44301/71422.html','true',[],'']
	],''],
	['PAGE','44332',jdecode('WC+Trennwand+G13+%28Nass%29'),jdecode(''),'/44332/index.html','true',[ 
		['PAGE','71453',jdecode('Beschreibung'),jdecode(''),'/44332/71453.html','true',[],''],
		['PAGE','72228',jdecode('Beispiele'),jdecode(''),'/44332/72228.html','true',[],''],
		['PAGE','71715',jdecode('Detail-Vergr%F6%DFerung'),jdecode(''),'/44332/71715.html','true',[],''],
		['PAGE','44425',jdecode('Urinalabtrennung'),jdecode(''),'/44332/44425.html','true',[],'']
	],''],
	['PAGE','44363',jdecode('WC+Trennwand+HS+5'),jdecode(''),'/44363/index.html','true',[ 
		['PAGE','71777',jdecode('Beschreibung'),jdecode(''),'/44363/71777.html','true',[],''],
		['PAGE','71746',jdecode('Detail-Vergr%F6%DFerung'),jdecode(''),'/44363/71746.html','true',[],'']
	],''],
	['PAGE','45164',jdecode('WC+Trennwand+Kinder'),jdecode(''),'/45164/index.html','true',[ 
		['PAGE','72754',jdecode('Beschreibung'),jdecode(''),'/45164/72754.html','true',[],'']
	],''],
	['PAGE','44394',jdecode('Raumteiler+-+Umkleiden'),jdecode(''),'/44394.html','true',[],''],
	['PAGE','71391',jdecode('Spinde+%22Holz+bzw.+HPL%22'),jdecode(''),'/71391/index.html','true',[ 
		['PAGE','116305',jdecode('Spinde+G1'),jdecode(''),'/71391/116305.html','true',[],''],
		['PAGE','116336',jdecode('Spinde+G2'),jdecode(''),'/71391/116336.html','true',[],''],
		['PAGE','116460',jdecode('F%E4cherschrank'),jdecode(''),'/71391/116460.html','true',[],''],
		['PAGE','116367',jdecode('Z-Spinde'),jdecode(''),'/71391/116367.html','true',[],'']
	],''],
	['PAGE','115786',jdecode('Spinde+%22Metall%22'),jdecode(''),'/115786.html','true',[],''],
	['PAGE','120886',jdecode('Spinde+%3E+sofort+lieferbar'),jdecode(''),'/120886.html','true',[],''],
	['PAGE','118686',jdecode('Feuerwehrspinde'),jdecode(''),'/118686.html','true',[],''],
	['PAGE','124986',jdecode('Wertfachschrank'),jdecode(''),'/124986.html','true',[],''],
	['PAGE','126786',jdecode('F%E4cher+mit+Acrylglast%FCren'),jdecode(''),'/126786.html','true',[],''],
	['PAGE','122586',jdecode('Material-%2C+Archivschrank'),jdecode(''),'/122586.html','true',[],''],
	['PAGE','126817',jdecode('Ball-+u.+Sportschrank'),jdecode(''),'/126817.html','true',[],''],
	['PAGE','121286',jdecode('Feuerschutzschrank'),jdecode(''),'/121286.html','true',[],''],
	['PAGE','71684',jdecode('Garderobenbank'),jdecode(''),'/71684.html','true',[],''],
	['PAGE','127886',jdecode('Schl%FCsselarmband'),jdecode(''),'/127886.html','true',[],''],
	['PAGE','45133',jdecode('Zubeh%F6r%2C+Pfandschl%F6sser'),jdecode(''),'/45133.html','true',[],''],
	['PAGE','126848',jdecode('B%FCro%2C+Tische%2C+St%FChle'),jdecode(''),'/126848.html','true',[],''],
	['PAGE','132086',jdecode('2.+Wahl%2C+Sonderposten'),jdecode(''),'/132086.html','true',[],''],
	['PAGE','132486',jdecode('%DCber+uns'),jdecode(''),'/132486.html','true',[],''],
	['PAGE','130488',jdecode('Kontakt'),jdecode(''),'/130488/index.html','true',[ 
		['PAGE','131287',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/130488/131287.html','false',[],'']
	],''],
	['PAGE','44532',jdecode('Impressum'),jdecode(''),'/44532.html','true',[],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            

