/* [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','4554',jdecode('Wir+%FCber+uns'),jdecode(''),'/4554.html','true',[],''],
	['PAGE','4497',jdecode('%DCbersicht'),jdecode(''),'/4497.html','true',[],''],
	['PAGE','36903',jdecode('PROFI-SOLARIEN'),jdecode(''),'/36903/index.html','true',[ 
		['PAGE','38304',jdecode('Ergoline+Profi-Br%E4uner'),jdecode(''),'/36903/38304.html','true',[],''],
		['PAGE','87892',jdecode('Ergoline+Beauty-Angel'),jdecode(''),'/36903/87892.html','true',[],''],
		['PAGE','61273',jdecode('Ergoline+Vitamin+D3+Solarium'),jdecode(''),'/36903/61273.html','true',[],''],
		['PAGE','38358',jdecode('SOLTRON+Profi-Br%E4uner'),jdecode(''),'/36903/38358.html','true',[],''],
		['PAGE','79686',jdecode('Steuerungen'),jdecode(''),'/36903/79686.html','true',[],''],
		['PAGE','39030',jdecode('Studio-Ausstattung'),jdecode(''),'/36903/39030.html','true',[],''],
		['PAGE','86381',jdecode('Niederdrucklampen'),jdecode(''),'/36903/86381.html','true',[],''],
		['PAGE','86412',jdecode('Hochdruckstrahler'),jdecode(''),'/36903/86412.html','true',[],''],
		['PAGE','86443',jdecode('Starter%2C+Filter+%2B+Zubeh%F6r'),jdecode(''),'/36903/86443.html','true',[],''],
		['PAGE','38003',jdecode('BERATUNG%2FSERVICE'),jdecode(''),'/36903/38003.html','true',[],'']
	],''],
	['PAGE','86299',jdecode('HEIM-SOLARIEN'),jdecode(''),'/86299/index.html','true',[ 
		['PAGE','38385',jdecode('Ergoline+Heim-Br%E4uner'),jdecode(''),'/86299/38385.html','true',[],'']
	],''],
	['PAGE','34530',jdecode('Termine'),jdecode(''),'/34530.html','true',[],''],
	['PAGE','34503',jdecode('Branchen-NEWS'),jdecode(''),'/34503.html','true',[],''],
	['PAGE','4716',jdecode('Kontakt'),jdecode(''),'/4716/index.html','true',[ 
		['PAGE','6243',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4716/6243.html','false',[],'']
	],''],
	['PAGE','57174',jdecode('So+finden+Sie+uns'),jdecode(''),'/57174/index.html','true',[ 
		['PAGE','60574',jdecode('Routenplaner'),jdecode(''),'/57174/60574.html','true',[],'']
	],''],
	['PAGE','57473',jdecode('Impressum'),jdecode(''),'/57473.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            
