/* [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','1154',jdecode('Home'),jdecode(''),'/1154.html','true',[],''],
	['PAGE','1207',jdecode('So+finden+Sie+uns'),jdecode(''),'/1207.html','true',[],''],
	['PAGE','15031',jdecode('Gesch%E4ftsbedingungen'),jdecode(''),'/15031.html','true',[],''],
	['PAGE','13726',jdecode('+Neuger%E4te'),jdecode(''),'/13726.html','true',[],''],
	['PAGE','8595',jdecode('Aktenvernichter'),jdecode(''),'/8595.html','true',[],''],
	['PAGE','1253',jdecode('Zusammentragesysteme'),jdecode(''),'/1253.html','true',[],''],
	['PAGE','4995',jdecode('Brosch%FCrenfertigung'),jdecode(''),'/4995.html','true',[],''],
	['PAGE','89482',jdecode('Brosch%FCrenformer'),jdecode(''),'/89482.html','true',[],''],
	['PAGE','8167',jdecode('Perforieren+%26+Rillen'),jdecode(''),'/8167.html','true',[],''],
	['PAGE','1276',jdecode('Schneidemaschinen'),jdecode(''),'/1276/index.html','true',[ 
		['PAGE','12026',jdecode('Hebelschneider'),jdecode(''),'/1276/12026.html','true',[],'']
	],''],
	['PAGE','147371',jdecode('Visitenkartenschneider'),jdecode(''),'/147371.html','true',[],''],
	['PAGE','1299',jdecode('Bohr+%26+Heftmaschinen'),jdecode(''),'/1299.html','true',[],''],
	['PAGE','36535',jdecode('Laminieren+%2F+Kaschieren'),jdecode(''),'/36535.html','true',[],''],
	['PAGE','1322',jdecode('Falzmaschinen'),jdecode(''),'/1322.html','true',[],''],
	['PAGE','167486',jdecode('Drahtbindung+Wire+-+O'),jdecode(''),'/167486.html','true',[],''],
	['PAGE','169743',jdecode('Bindemaschinen+Wire+-+O+'),jdecode(''),'/169743.html','true',[],''],
	['PAGE','1345',jdecode('Bindesysteme+%26+R%FCttler'),jdecode(''),'/1345.html','true',[],''],
	['PAGE','12049',jdecode('Nummerieren'),jdecode(''),'/12049.html','true',[],''],
	['PAGE','16826',jdecode('%D6smaschinen'),jdecode(''),'/16826.html','true',[],''],
	['PAGE','1414',jdecode('Klebebinder'),jdecode(''),'/1414.html','true',[],''],
	['PAGE','96494',jdecode('PUR+-+Klebebinder'),jdecode(''),'/96494.html','true',[],''],
	['PAGE','1437',jdecode('Verpackungsmaschinen'),jdecode(''),'/1437.html','true',[],''],
	['PAGE','166971',jdecode('Banderoliermaschine'),jdecode(''),'/166971.html','true',[],''],
	['PAGE','1460',jdecode('Registerschneidemaschinen'),jdecode(''),'/1460.html','true',[],''],
	['PAGE','148271',jdecode('Stanze+%2F+Eckenrunder'),jdecode(''),'/148271.html','true',[],''],
	['PAGE','7295',jdecode('Verbrauchsmaterial'),jdecode(''),'/7295.html','true',[],''],
	['PAGE','10126',jdecode('Probleml%F6sung+%2F+Digitaldruck'),jdecode(''),'/10126.html','true',[],''],
	['PAGE','166671',jdecode('Pflegematerial'),jdecode(''),'/166671.html','true',[],''],
	['PAGE','91912',jdecode('Gebrauchtmaschinen'),jdecode(''),'/91912.html','true',[],''],
	['PAGE','171671',jdecode('.'),jdecode(''),'/171671.html','true',[],'']];
var siteelementCount=31;
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 */					                                                            

