/* [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','4466',jdecode('Homepage'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','67727',jdecode('Semi-Auto+Machinery+'),jdecode(''),'/67727/index.html','true',[ 
		['PAGE','67758',jdecode('Labellers'),jdecode(''),'/67727/67758.html','true',[],''],
		['PAGE','67789',jdecode('Cappers'),jdecode(''),'/67727/67789.html','true',[],''],
		['PAGE','67820',jdecode('Non+Carbonated+Fillers'),jdecode(''),'/67727/67820.html','true',[],''],
		['PAGE','67851',jdecode('Bottle+Rinsers'),jdecode(''),'/67727/67851.html','true',[],''],
		['PAGE','157327',jdecode('Carbonated+Fillers'),jdecode(''),'/67727/157327.html','true',[],'']
	],''],
	['PAGE','195949',jdecode('Beer+Bottling+Machinery'),jdecode(''),'/195949/index.html','true',[ 
		['PAGE','195985',jdecode('Manual'),jdecode(''),'/195949/195985.html','true',[],''],
		['PAGE','196016',jdecode('Semi+Auto'),jdecode(''),'/195949/196016.html','true',[],''],
		['PAGE','196047',jdecode('Automatic'),jdecode(''),'/195949/196047.html','true',[],'']
	],''],
	['PAGE','110927',jdecode('Wine+Bottling+Machinery'),jdecode(''),'/110927/index.html','true',[ 
		['PAGE','111427',jdecode('Semi+Auto'),jdecode(''),'/110927/111427.html','true',[],''],
		['PAGE','111458',jdecode('Automatic'),jdecode(''),'/110927/111458.html','true',[],''],
		['PAGE','111489',jdecode('Champagne'),jdecode(''),'/110927/111489.html','true',[],'']
	],''],
	['PAGE','67327',jdecode('Used+Micro+Brewery'),jdecode(''),'/67327.html','true',[],''],
	['PAGE','196827',jdecode('Stainless+Steel+Vessels'),jdecode(''),'/196827.html','true',[],''],
	['PAGE','190566',jdecode('Beer+Fermenters'),jdecode(''),'/190566.html','true',[],''],
	['PAGE','196627',jdecode('Fermenters+available+ex+stock'),jdecode(''),'/196627.html','true',[],''],
	['PAGE','196727',jdecode('Home+Brewing+Fermenters'),jdecode(''),'/196727.html','true',[],''],
	['PAGE','28901',jdecode('Rinsing+Machines'),jdecode(''),'/28901.html','true',[],''],
	['PAGE','28932',jdecode('Filling+Machines'),jdecode(''),'/28932.html','true',[],''],
	['PAGE','28963',jdecode('Capping+Machines'),jdecode(''),'/28963.html','true',[],''],
	['PAGE','28994',jdecode('Triblocks'),jdecode(''),'/28994.html','true',[],''],
	['PAGE','29025',jdecode('Labelling+Machines'),jdecode(''),'/29025/index.html','true',[ 
		['PAGE','60227',jdecode('Linear+Wet+Glue'),jdecode(''),'/29025/60227.html','true',[],''],
		['PAGE','60258',jdecode('Rotary+Wet+Glue'),jdecode(''),'/29025/60258.html','true',[],''],
		['PAGE','60289',jdecode('Hot+Melt'),jdecode(''),'/29025/60289.html','true',[],''],
		['PAGE','60320',jdecode('Self+Adhesive'),jdecode(''),'/29025/60320.html','true',[],'']
	],''],
	['PAGE','29056',jdecode('Carbonators'),jdecode(''),'/29056.html','true',[],''],
	['PAGE','29087',jdecode('Conveyors'),jdecode(''),'/29087.html','true',[],''],
	['PAGE','29118',jdecode('Palletizers'),jdecode(''),'/29118.html','true',[],''],
	['PAGE','29149',jdecode('Packaging'),jdecode(''),'/29149/index.html','true',[ 
		['PAGE','62391',jdecode('Semi+Automatic'),jdecode(''),'/29149/62391.html','true',[],''],
		['PAGE','62422',jdecode('Trayless+automatic'),jdecode(''),'/29149/62422.html','true',[],''],
		['PAGE','62453',jdecode('Wraparound'),jdecode(''),'/29149/62453.html','true',[],'']
	],''],
	['PAGE','190227',jdecode('Case+Tapers'),jdecode(''),'/190227.html','true',[],''],
	['PAGE','29180',jdecode('Blow+Moulders'),jdecode(''),'/29180.html','true',[],''],
	['PAGE','61927',jdecode('Vacuum+Packaging'),jdecode(''),'/61927/index.html','true',[ 
		['PAGE','61959',jdecode('Table+top+range'),jdecode(''),'/61927/61959.html','true',[],''],
		['PAGE','61990',jdecode('Freestanding+Range'),jdecode(''),'/61927/61990.html','true',[],''],
		['PAGE','109027',jdecode('Double+Chamber'),jdecode(''),'/61927/109027.html','true',[],''],
		['PAGE','65727',jdecode('Vac+Packer+Spares'),jdecode(''),'/61927/65727.html','true',[],'']
	],''],
	['PAGE','109379',jdecode('Tray+Sealers'),jdecode(''),'/109379.html','true',[],''],
	['PAGE','67027',jdecode('Strapping+Machines'),jdecode(''),'/67027.html','true',[],''],
	['PAGE','64527',jdecode('Chamber+Shrinkwrappers'),jdecode(''),'/64527.html','true',[],''],
	['PAGE','65027',jdecode('Impulse+Heat+Sealers'),jdecode(''),'/65027.html','true',[],''],
	['PAGE','66527',jdecode('Washdown+Guns'),jdecode(''),'/66527.html','true',[],''],
	['PAGE','29211',jdecode('Secondhand+Machinery'),jdecode(''),'/29211.html','true',[],''],
	['PAGE','65427',jdecode('Special+Offers'),jdecode(''),'/65427.html','true',[],''],
	['PAGE','29242',jdecode('Service'),jdecode(''),'/29242.html','true',[],''],
	['PAGE','110395',jdecode('Spareparts'),jdecode(''),'/110395.html','true',[],''],
	['PAGE','29273',jdecode('Contact+details'),jdecode(''),'/29273.html','true',[],''],
	['PAGE','29304',jdecode('Current+Projects+'),jdecode(''),'/29304.html','true',[],''],
	['PAGE','29701',jdecode('Enquiry+Form'),jdecode(''),'/29701/index.html','true',[ 
		['PAGE','29802',jdecode('Feedback+Form+%28follow+up+page%29'),jdecode(''),'/29701/29802.html','false',[],'']
	],''],
	['PAGE','59727',jdecode('Special+Offers'),jdecode(''),'/59727.html','true',[],''],
	['PAGE','61428',jdecode('How+to+find+us'),jdecode(''),'/61428.html','true',[],''],
	['PAGE','63727',jdecode('References'),jdecode(''),'/63727.html','true',[],''],
	['PAGE','63828',jdecode('Direction'),jdecode(''),'/63828.html','true',[],''],
	['PAGE','64429',jdecode('Weblog'),jdecode(''),'/64429.html','true',[],''],
	['PAGE','189927',jdecode('Privacy+Policy'),jdecode(''),'/189927.html','true',[],'']];
var siteelementCount=62;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            
