/* [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','1111',jdecode('Broxbourne+Solutions'),jdecode(''),'/1111.html','true',[],''],
	['PAGE','1187',jdecode('Services+and+Products+'),jdecode(''),'/1187/index.html','true',[ 
		['PAGE','1233',jdecode('Project+Management+Services'),jdecode(''),'/1187/1233.html','true',[],''],
		['PAGE','9928',jdecode('Process+reengineering+%26+change+'),jdecode(''),'/1187/9928.html','true',[],''],
		['PAGE','10818',jdecode('Interim+Management'),jdecode(''),'/1187/10818.html','true',[],''],
		['PAGE','10864',jdecode('Managing+Contractors%2FSuppliers+'),jdecode(''),'/1187/10864.html','true',[],''],
		['PAGE','12695',jdecode('EDI+-+explanation+and+support'),jdecode(''),'/1187/12695.html','true',[],''],
		['PAGE','12718',jdecode('EDI+-+in+UK+qualifications'),jdecode(''),'/1187/12718.html','true',[],''],
		['PAGE','15718',jdecode('Conferences+and+Exhibitions'),jdecode(''),'/1187/15718.html','true',[],''],
		['PAGE','10887',jdecode('Business+Continuity+Planning'),jdecode(''),'/1187/10887.html','true',[],''],
		['PAGE','11561',jdecode('Training+courses'),jdecode(''),'/1187/11561.html','true',[],''],
		['PAGE','56503',jdecode('Logistics+Consultancy+Services'),jdecode(''),'/1187/56503.html','true',[],'']
	],''],
	['PAGE','63301',jdecode('ArtVantage'),jdecode(''),'/63301.html','true',[],''],
	['PAGE','61601',jdecode('CONFERENCES'),jdecode(''),'/61601.html','true',[],''],
	['PAGE','10841',jdecode('The+e-assessment-question'),jdecode(''),'/10841.html','true',[],''],
	['PAGE','60661',jdecode('Assessment+Tomorrow+'),jdecode(''),'/60661.html','true',[],''],
	['PAGE','57803',jdecode('News'),jdecode(''),'/57803.html','true',[],''],
	['PAGE','1302',jdecode('About+Us'),jdecode(''),'/1302.html','true',[],''],
	['PAGE','1279',jdecode('Contact+Broxbourne+Solutions'),jdecode(''),'/1279/index.html','true',[ 
		['PAGE','10305',jdecode('Contact+Broxbourne+Solutions'),jdecode(''),'/1279/10305.html','false',[],'']
	],'']];
var siteelementCount=20;
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 */					                                                            
