/* [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','4614',jdecode('XXPO+presents'),jdecode(''),'/4614.html','true',[],''],
	['PAGE','33959',jdecode('XX+Production+online+DE'),jdecode(''),'/33959/index.html','true',[ 
		['PAGE','31963',jdecode('Body+Scanning+CRM'),jdecode(''),'/33959/31963.html','true',[],''],
		['PAGE','34650',jdecode('Body+Scanning+CRM+Bikes'),jdecode(''),'/33959/34650.html','true',[],''],
		['PAGE','80801',jdecode('My+Coach+by+Body+Scanning+'),jdecode(''),'/33959/80801.html','true',[],''],
		['PAGE','70344',jdecode('Junior+Scanning'),jdecode(''),'/33959/70344.html','true',[],''],
		['PAGE','75500',jdecode('Oberrohr-Kalkulator'),jdecode(''),'/33959/75500.html','true',[],''],
		['PAGE','36428',jdecode('Body+Scanning+visualisiert'),jdecode(''),'/33959/36428.html','true',[],''],
		['PAGE','75531',jdecode('Popometer'),jdecode(''),'/33959/75531.html','true',[],''],
		['PAGE','34704',jdecode('BS+CRM+Zukunft'),jdecode(''),'/33959/34704.html','true',[],''],
		['PAGE','47154',jdecode('Presse'),jdecode(''),'/33959/47154.html','true',[],'']
	],''],
	['PAGE','48070',jdecode('XX+Production+online+EN'),jdecode(''),'/48070/index.html','true',[ 
		['PAGE','51468',jdecode('Body+Scanning+CRM'),jdecode(''),'/48070/51468.html','true',[],''],
		['PAGE','51495',jdecode('Body+Scanning+CRM+Bikes'),jdecode(''),'/48070/51495.html','true',[],''],
		['PAGE','75748',jdecode('Junior+Scanning'),jdecode(''),'/48070/75748.html','true',[],''],
		['PAGE','75717',jdecode('Top+tube+calculator'),jdecode(''),'/48070/75717.html','true',[],''],
		['PAGE','51522',jdecode('Body+Scanning+visual'),jdecode(''),'/48070/51522.html','true',[],''],
		['PAGE','75686',jdecode('Popo+Meter'),jdecode(''),'/48070/75686.html','true',[],''],
		['PAGE','51549',jdecode('BS+CRM+future'),jdecode(''),'/48070/51549.html','true',[],''],
		['PAGE','75655',jdecode('Press'),jdecode(''),'/48070/75655.html','true',[],'']
	],''],
	['PAGE','48097',jdecode('XX+Production+online+NL'),jdecode(''),'/48097/index.html','true',[ 
		['PAGE','51810',jdecode('Body+Scanning+CRM'),jdecode(''),'/48097/51810.html','true',[],''],
		['PAGE','46582',jdecode('Body+Scanning+CRM+Bikes'),jdecode(''),'/48097/46582.html','true',[],''],
		['PAGE','69844',jdecode('Junior+Scanning+'),jdecode(''),'/48097/69844.html','true',[],''],
		['PAGE','75593',jdecode('Bovenbuis+Calculator'),jdecode(''),'/48097/75593.html','true',[],''],
		['PAGE','51837',jdecode('Body+Scanning+visueel'),jdecode(''),'/48097/51837.html','true',[],''],
		['PAGE','75562',jdecode('Popo+Meter'),jdecode(''),'/48097/75562.html','true',[],''],
		['PAGE','51864',jdecode('BS+CRM+toekomst'),jdecode(''),'/48097/51864.html','true',[],''],
		['PAGE','75624',jdecode('Pers'),jdecode(''),'/48097/75624.html','true',[],'']
	],''],
	['PAGE','79401',jdecode('SQ-lab+Benelux'),jdecode(''),'/79401.html','true',[],''],
	['PAGE','47127',jdecode('International+Dealer+Network'),jdecode(''),'/47127.html','true',[],''],
	['PAGE','74900',jdecode('News+%26+events'),jdecode(''),'/74900.html','true',[],''],
	['PAGE','4671',jdecode('Contact'),jdecode(''),'/4671/index.html','true',[ 
		['PAGE','32698',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/4671/32698.html','false',[],'']
	],''],
	['PAGE','74800',jdecode('Legal+Information'),jdecode(''),'/74800.html','true',[],''],
	['PAGE','83007',jdecode('Remote+Support'),jdecode(''),'/83007.html','true',[],'']];
var siteelementCount=36;
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 */					                                                            
