/* [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','4481',jdecode('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','106477',jdecode('Aerospace+Spare+parts'),jdecode(''),'/106477.html','true',[],''],
	['PAGE','7114',jdecode('Gusseisen%2FCast+iron'),jdecode(''),'/7114/index.html','true',[ 
		['PAGE','12489',jdecode('VDP'),jdecode(''),'/7114/12489.html','true',[],''],
		['PAGE','12978',jdecode('Gallery+VDP'),jdecode(''),'/7114/12978.html','true',[],''],
		['PAGE','109388',jdecode('Fond-Stamp'),jdecode(''),'/7114/109388.html','true',[],'']
	],''],
	['PAGE','7145',jdecode('Feinguss%2FLost+Wax+'),jdecode(''),'/7145/index.html','true',[ 
		['PAGE','111191',jdecode('Beispiele+1'),jdecode(''),'/7145/111191.html','true',[],''],
		['PAGE','111433',jdecode('Beispiele+2'),jdecode(''),'/7145/111433.html','true',[],'']
	],''],
	['PAGE','121888',jdecode('Pulverspritzguss+%28MIM%29'),jdecode(''),'/121888/index.html','true',[ 
		['PAGE','122088',jdecode('M%F6gliches+Material'),jdecode(''),'/121888/122088.html','true',[],'']
	],''],
	['PAGE','6901',jdecode('Alu.Guss%2FAlu.Casting'),jdecode(''),'/6901.html','true',[],''],
	['PAGE','109988',jdecode('Bearbeitung%2FMachining'),jdecode(''),'/109988/index.html','true',[ 
		['PAGE','108877',jdecode('Zylinderk%F6pfe%2FPleuel'),jdecode(''),'/109988/108877.html','true',[],''],
		['PAGE','8401',jdecode('Drehen%2FFr%E4sen%2FSchleifen'),jdecode(''),'/109988/8401.html','true',[],'']
	],''],
	['PAGE','110188',jdecode('Kurbelwellen'),jdecode(''),'/110188.html','true',[],''],
	['PAGE','107477',jdecode('Spannwellen+u.+-k%F6pfe'),jdecode(''),'/107477.html','true',[],''],
	['PAGE','4930',jdecode('Zahnr%E4der%2FGears'),jdecode(''),'/4930.html','true',[],''],
	['PAGE','7176',jdecode('Schmiedeteile%2FForgings'),jdecode(''),'/7176.html','true',[],''],
	['PAGE','10377',jdecode('Getriebemotoren'),jdecode(''),'/10377/index.html','true',[ 
		['PAGE','11577',jdecode('Technische+Daten+SRM'),jdecode(''),'/10377/11577.html','true',[],''],
		['PAGE','11749',jdecode('Technische+Daten+HSV'),jdecode(''),'/10377/11749.html','true',[],''],
		['PAGE','11807',jdecode('Fertigung+der+Getriebe'),jdecode(''),'/10377/11807.html','true',[],'']
	],''],
	['PAGE','14252',jdecode('Partner'),jdecode(''),'/14252.html','true',[],''],
	['PAGE','120988',jdecode('Qualit%E4tssicherung'),jdecode(''),'/120988.html','true',[],''],
	['PAGE','5011',jdecode('Impressum%2FContact'),jdecode(''),'/5011.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            

