/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5303',jdecode('About+us'),jdecode(''),'/5303/index.html','true',[ 
		['PAGE','9825',jdecode('How+we+operate'),jdecode(''),'/5303/9825.html','true',[],''],
		['PAGE','9852',jdecode('A+little+future+history'),jdecode(''),'/5303/9852.html','true',[],''],
		['PAGE','5330',jdecode('The+core+team'),jdecode(''),'/5303/5330.html','true',[],''],
		['PAGE','7303',jdecode('The+extended+team'),jdecode(''),'/5303/7303.html','true',[],'']
	],''],
	['PAGE','5411',jdecode('Offerings'),jdecode(''),'/5411/index.html','true',[ 
		['PAGE','5438',jdecode('Business+Strategy'),jdecode(''),'/5411/5438.html','true',[],''],
		['PAGE','5465',jdecode('Business+Modelling'),jdecode(''),'/5411/5465.html','true',[],''],
		['PAGE','5492',jdecode('Enterprise+Bidding'),jdecode(''),'/5411/5492.html','true',[],''],
		['PAGE','14601',jdecode('Sales+and+Marketing+Audit'),jdecode(''),'/5411/14601.html','true',[],'']
	],''],
	['PAGE','6203',jdecode('Our+Clients'),jdecode(''),'/6203.html','true',[],''],
	['PAGE','6230',jdecode('Our+Partners'),jdecode(''),'/6230.html','true',[],''],
	['PAGE','5681',jdecode('Concepts%2FAnalysis'),jdecode(''),'/5681.html','true',[],''],
	['PAGE','6257',jdecode('Contact'),jdecode(''),'/6257/index.html','true',[ 
		['PAGE','6284',jdecode('Adresses'),jdecode(''),'/6257/6284.html','true',[],''],
		['PAGE','6311',jdecode('How+to+find+us'),jdecode(''),'/6257/6311.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Rectangle';
					                                                                    
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 */					                                                            
