/* [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','4790',jdecode('HOW+TO+CONTACT+US'),jdecode(''),'/4790.html','true',[],''],
	['PAGE','152112',jdecode('WESSEX+VEHICLE+FLEET+'),jdecode(''),'/152112.html','true',[],''],
	['PAGE','130836',jdecode('+THE+LATEST+NEWS+'),jdecode(''),'/130836.html','true',[],''],
	['PAGE','4655',jdecode('ABOUT+US'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','75986',jdecode('SOPLEY++FIRE+STATION'),jdecode(''),'/75986/index.html','true',[ 
		['PAGE','34305',jdecode('DIRECTIONS+'),jdecode(''),'/75986/34305.html','true',[],''],
		['PAGE','34325',jdecode('HOW+TO+FIND+US'),jdecode(''),'/75986/34325.html','true',[],'']
	],''],
	['PAGE','48668',jdecode('EVENTS+PAGE++2010'),jdecode(''),'/48668.html','true',[],''],
	['PAGE','177117',jdecode('TV+AND+FILM+'),jdecode(''),'/177117/index.html','true',[ 
		['PAGE','177179',jdecode('PREVIOUS+CREDITS'),jdecode(''),'/177117/177179.html','true',[],'']
	],''],
	['PAGE','178917',jdecode('DRY+RISER+TESTING+'),jdecode(''),'/178917.html','true',[],''],
	['PAGE','178948',jdecode('FIRE+EXTINGUISHERS'),jdecode(''),'/178948.html','true',[],''],
	['PAGE','131567',jdecode('EVENT+FIRE+COVER'),jdecode(''),'/131567/index.html','true',[ 
		['PAGE','143421',jdecode('TAPLOW+FIRE+2008'),jdecode(''),'/131567/143421.html','true',[],''],
		['PAGE','148277',jdecode('STEAM+CAR+CHALLANGE'),jdecode(''),'/131567/148277.html','true',[],'']
	],''],
	['PAGE','75955',jdecode('FIRE+RISK+ASSESSMENT%2CS'),jdecode(''),'/75955.html','true',[],''],
	['PAGE','120555',jdecode('FIRE+WARDEN+COURSE'),jdecode(''),'/120555.html','true',[],''],
	['PAGE','123736',jdecode('FLOOD+PUMPING+'),jdecode(''),'/123736/index.html','true',[ 
		['PAGE','124036',jdecode('FLOODS+IN+C+%26G+2007'),jdecode(''),'/123736/124036.html','true',[],'']
	],''],
	['PAGE','131536',jdecode('AVIATION+FIRE+COVER'),jdecode(''),'/131536.html','true',[],''],
	['PAGE','52558',jdecode('COMMERCIAL+TRAINING+'),jdecode(''),'/52558/index.html','true',[ 
		['PAGE','52589',jdecode('BE+A+FIREMAN+FOR+A+DAY'),jdecode(''),'/52558/52589.html','true',[],''],
		['PAGE','53394',jdecode('SOPLEY+TRAINING+DAYS'),jdecode(''),'/52558/53394.html','true',[],'']
	],''],
	['PAGE','4736',jdecode('KIDS+PARTIES+%26+PRICES'),jdecode(''),'/4736/index.html','true',[ 
		['PAGE','102955',jdecode('PARTY+PRICES++'),jdecode(''),'/4736/102955.html','true',[],''],
		['PAGE','142617',jdecode('PREVIOUS+PARTY+PICS'),jdecode(''),'/4736/142617.html','true',[],''],
		['PAGE','21533',jdecode('PARTYWARE+++ITEMS+'),jdecode(''),'/4736/21533.html','true',[],'']
	],''],
	['PAGE','41448',jdecode('+GIFT+SHOP'),jdecode(''),'/41448/index.html','true',[ 
		['PAGE','99491',jdecode('HOW+TO+ORDER+%2F+PAY'),jdecode(''),'/41448/99491.html','true',[],''],
		['PAGE','55496',jdecode('BOOKS+%26+PICS+'),jdecode(''),'/41448/55496.html','true',[],''],
		['PAGE','102755',jdecode('PERSONEL+STICKERS'),jdecode(''),'/41448/102755.html','true',[],''],
		['PAGE','41355',jdecode('CAP+BADGES+'),jdecode(''),'/41448/41355.html','true',[],''],
		['PAGE','50155',jdecode('GOMM++PIN+BADGES+'),jdecode(''),'/41448/50155.html','true',[],''],
		['PAGE','41386',jdecode('MODELS+'),jdecode(''),'/41448/41386.html','true',[],''],
		['PAGE','41515',jdecode('CHINA+'),jdecode(''),'/41448/41515.html','true',[],''],
		['PAGE','54560',jdecode('DEFENCE+GIFTS'),jdecode(''),'/41448/54560.html','true',[],''],
		['PAGE','41479',jdecode('TOYS+%26+THINGS'),jdecode(''),'/41448/41479.html','true',[],''],
		['PAGE','41417',jdecode('FIREMAN+SAM+'),jdecode(''),'/41448/41417.html','true',[],'']
	],''],
	['PAGE','25901',jdecode('NEW++EQUIPMENT+SHOP'),jdecode(''),'/25901/index.html','true',[ 
		['PAGE','74455',jdecode('++ACCOUTREMENTS+'),jdecode(''),'/25901/74455.html','true',[],''],
		['PAGE','55786',jdecode('+TORCHES+'),jdecode(''),'/25901/55786.html','true',[],''],
		['PAGE','25932',jdecode('+CLOTHING+'),jdecode(''),'/25901/25932.html','true',[],'']
	],''],
	['PAGE','17003',jdecode('++USED++EQUIPMENT+SHOP'),jdecode(''),'/17003/index.html','true',[ 
		['PAGE','20728',jdecode('++EQUIPMENT+2'),jdecode(''),'/17003/20728.html','true',[],''],
		['PAGE','22501',jdecode('+EQUIPMENT+3'),jdecode(''),'/17003/22501.html','true',[],'']
	],''],
	['PAGE','101655',jdecode('OUR+OPEN+DAYS'),jdecode(''),'/101655/index.html','true',[ 
		['PAGE','124836',jdecode('2007'),jdecode(''),'/101655/124836.html','true',[],''],
		['PAGE','151217',jdecode('2008'),jdecode(''),'/101655/151217.html','true',[],''],
		['PAGE','177148',jdecode('2009'),jdecode(''),'/101655/177148.html','true',[],'']
	],''],
	['PAGE','24219',jdecode('+SHOW+DETAILS+%26+PICS'),jdecode(''),'/24219/index.html','true',[ 
		['PAGE','40304',jdecode('ODIHAM++2005'),jdecode(''),'/24219/40304.html','true',[],''],
		['PAGE','42586',jdecode('ODIHAM++2006'),jdecode(''),'/24219/42586.html','true',[],''],
		['PAGE','156320',jdecode('odiham+2008'),jdecode(''),'/24219/156320.html','true',[],''],
		['PAGE','137381',jdecode('ODIHAM++2009+'),jdecode(''),'/24219/137381.html','true',[],''],
		['PAGE','119623',jdecode('BILL+TARGET+2007'),jdecode(''),'/24219/119623.html','true',[],''],
		['PAGE','129136',jdecode('AMBERLEY++SHOW'),jdecode(''),'/24219/129136.html','true',[],''],
		['PAGE','129167',jdecode('ANDOVER++SHOW'),jdecode(''),'/24219/129167.html','true',[],''],
		['PAGE','121436',jdecode('DERBY+FIRE+SHOW'),jdecode(''),'/24219/121436.html','true',[],''],
		['PAGE','141700',jdecode('CLEETHORPES+SHOW'),jdecode(''),'/24219/141700.html','true',[],''],
		['PAGE','117233',jdecode('+THE+F+S+P+G+'),jdecode(''),'/24219/117233.html','true',[],'']
	],''],
	['PAGE','35237',jdecode('FIRE++APPLIANCE+PICS'),jdecode(''),'/35237/index.html','true',[ 
		['PAGE','138700',jdecode('+UK'),jdecode(''),'/35237/138700.html','true',[],''],
		['PAGE','138731',jdecode('+NON+UK+'),jdecode(''),'/35237/138731.html','true',[],''],
		['PAGE','138762',jdecode('+PRIVATE+BRIGADES'),jdecode(''),'/35237/138762.html','true',[],''],
		['PAGE','21501',jdecode('archive+event+pics'),jdecode(''),'/35237/21501.html','true',[],''],
		['PAGE','25101',jdecode('page++2'),jdecode(''),'/35237/25101.html','true',[],''],
		['PAGE','141731',jdecode('USAF++LAKENHEATH++F%2FD'),jdecode(''),'/35237/141731.html','true',[],'']
	],''],
	['PAGE','104955',jdecode('THE+FUN+PAGE+'),jdecode(''),'/104955/index.html','true',[ 
		['PAGE','128614',jdecode('+WEDDING+2007'),jdecode(''),'/104955/128614.html','true',[],''],
		['PAGE','150517',jdecode('social+event+pics+'),jdecode(''),'/104955/150517.html','true',[],''],
		['PAGE','118286',jdecode('WESSEX+CANCER+TRUST'),jdecode(''),'/104955/118286.html','true',[],'']
	],''],
	['PAGE','144417',jdecode('VIDEO+%26+PRESS+PAGE'),jdecode(''),'/144417.html','true',[],''],
	['PAGE','45280',jdecode('FIRE-AID+MARINE+DIVISION.'),jdecode(''),'/45280.html','true',[],''],
	['PAGE','77655',jdecode('OUR+CUSTOMERS++'),jdecode(''),'/77655/index.html','true',[ 
		['PAGE','134436',jdecode('THANKYOUS+RECEIVED'),jdecode(''),'/77655/134436.html','true',[],'']
	],''],
	['PAGE','20702',jdecode('WEBLINKS'),jdecode(''),'/20702.html','true',[],''],
	['PAGE','20045',jdecode('PLEASE+SIGN+GUESTBOOK'),jdecode(''),'/20045.html','true',[],''],
	['PAGE','20046',jdecode('READ+THE+GUEST+BOOK'),jdecode(''),'/20046.html','true',[],'']];
var siteelementCount=79;
theSitetree.topTemplateName='Speed';
					                                                                    
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 */					                                                            
