/* [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','4559',jdecode('Home'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','4616',jdecode('About+us'),jdecode(''),'/4616.html','true',[],''],
	['PAGE','27503',jdecode('Accreditation'),jdecode(''),'/27503.html','true',[],''],
	['PAGE','276562',jdecode('Services'),jdecode(''),'/276562/index.html','true',[ 
		['PAGE','287733',jdecode('Crime+Scene+%26+Biohazard'),jdecode(''),'/276562/287733.html','true',[],''],
		['PAGE','287806',jdecode('Chemicals+%26+Machinery'),jdecode(''),'/276562/287806.html','true',[],''],
		['PAGE','45861',jdecode('Builders+%26+Sparkle+Cleans'),jdecode(''),'/276562/45861.html','true',[],''],
		['PAGE','25387',jdecode('Brick+%26+Stone+Cleaning'),jdecode(''),'/276562/25387.html','true',[],''],
		['PAGE','23203',jdecode('Carpet+Cleaning'),jdecode(''),'/276562/23203.html','true',[],''],
		['PAGE','45686',jdecode('Floor+Cleaning%2FMaintenance'),jdecode(''),'/276562/45686.html','true',[],''],
		['PAGE','45830',jdecode('Building+Restoration'),jdecode(''),'/276562/45830.html','true',[],''],
		['PAGE','45655',jdecode('Steam+%26+Pressure+Cleaning'),jdecode(''),'/276562/45655.html','true',[],''],
		['PAGE','26582',jdecode('Contract+Cleaning'),jdecode(''),'/276562/26582.html','true',[],''],
		['PAGE','45799',jdecode('Warehouse+%26+Industrial'),jdecode(''),'/276562/45799.html','true',[],''],
		['PAGE','24890',jdecode('Graffiti+Removal'),jdecode(''),'/276562/24890.html','true',[],''],
		['PAGE','280062',jdecode('Anti+Graffiti'),jdecode(''),'/276562/280062.html','true',[],''],
		['PAGE','280862',jdecode('Windows+%26+Cladding'),jdecode(''),'/276562/280862.html','true',[],''],
		['PAGE','277499',jdecode('Sandblasting'),jdecode(''),'/276562/277499.html','true',[],''],
		['PAGE','281208',jdecode('Abseiling'),jdecode(''),'/276562/281208.html','true',[],''],
		['PAGE','277462',jdecode('Floor+Painting'),jdecode(''),'/276562/277462.html','true',[],''],
		['PAGE','286477',jdecode('Waste+Management'),jdecode(''),'/276562/286477.html','true',[],'']
	],''],
	['PAGE','288122',jdecode('SHOP'),jdecode(''),'/288122.html','true',[],''],
	['PAGE','277530',jdecode('Client+Portfolio'),jdecode(''),'/277530.html','true',[],''],
	['PAGE','235414',jdecode('Guestbook'),jdecode(''),'/235414/index.html','true',[ 
		['PAGE','235415',jdecode('Read+Guestbook'),jdecode(''),'/235414/235415.html','true',[],'']
	],''],
	['PAGE','9260',jdecode('Contact'),jdecode(''),'/9260/index.html','true',[ 
		['PAGE','278203',jdecode('Useful+Links'),jdecode(''),'/9260/278203.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
