/* [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','4596',jdecode('Home'),jdecode(''),'/4596.html','true',[],''],
	['PAGE','4653',jdecode('About+us'),jdecode(''),'/4653/index.html','true',[ 
		['PAGE','22801',jdecode('Simon+Maycock'),jdecode(''),'/4653/22801.html','true',[],'']
	],''],
	['PAGE','49912',jdecode('Antartica-South+Pole'),jdecode(''),'/49912/index.html','true',[ 
		['PAGE','49974',jdecode('Simon%26%23x27%3Bs+Antartic+Diary'),jdecode(''),'/49912/49974.html','true',[],'']
	],''],
	['PAGE','99412',jdecode('Rebreather+Training'),jdecode(''),'/99412/index.html','true',[ 
		['PAGE','99443',jdecode('RBT'),jdecode(''),'/99412/99443.html','true',[],''],
		['PAGE','99474',jdecode('rbt1'),jdecode(''),'/99412/99474.html','true',[],''],
		['PAGE','99505',jdecode('rbt2'),jdecode(''),'/99412/99505.html','true',[],''],
		['PAGE','99536',jdecode('rbt3'),jdecode(''),'/99412/99536.html','true',[],''],
		['PAGE','99567',jdecode('rbt4'),jdecode(''),'/99412/99567.html','true',[],''],
		['PAGE','99598',jdecode('rby5'),jdecode(''),'/99412/99598.html','true',[],''],
		['PAGE','99629',jdecode('rby6'),jdecode(''),'/99412/99629.html','true',[],''],
		['PAGE','99660',jdecode('rbt7'),jdecode(''),'/99412/99660.html','true',[],'']
	],''],
	['PAGE','53212',jdecode('PSAI+Training'),jdecode(''),'/53212/index.html','true',[ 
		['PAGE','99138',jdecode('Technical+Training+Centre'),jdecode(''),'/53212/99138.html','true',[],''],
		['PAGE','53291',jdecode('Nitrox+Courses'),jdecode(''),'/53212/53291.html','true',[],''],
		['PAGE','53243',jdecode('Advanced+Nitrox'),jdecode(''),'/53212/53243.html','true',[],''],
		['PAGE','53439',jdecode('Deco+procedures'),jdecode(''),'/53212/53439.html','true',[],''],
		['PAGE','53322',jdecode('Extended+Range'),jdecode(''),'/53212/53322.html','true',[],''],
		['PAGE','53353',jdecode('Trimix+Courses'),jdecode(''),'/53212/53353.html','true',[],''],
		['PAGE','53384',jdecode('Gas+Blender+Courses'),jdecode(''),'/53212/53384.html','true',[],'']
	],''],
	['PAGE','52143',jdecode('ITDA+Diver+Training'),jdecode(''),'/52143/index.html','true',[ 
		['PAGE','52340',jdecode('Technical+Courses'),jdecode(''),'/52143/52340.html','true',[],''],
		['PAGE','52371',jdecode('Recreational+Courses'),jdecode(''),'/52143/52371.html','true',[],''],
		['PAGE','52402',jdecode('Instructor+Courses'),jdecode(''),'/52143/52402.html','true',[],''],
		['PAGE','52433',jdecode('Philosophy'),jdecode(''),'/52143/52433.html','true',[],''],
		['PAGE','4707',jdecode('Our+Own+Courses'),jdecode(''),'/52143/4707.html','true',[],'']
	],''],
	['PAGE','97508',jdecode('TDI+Training'),jdecode(''),'/97508/index.html','true',[ 
		['PAGE','97539',jdecode('tdi'),jdecode(''),'/97508/97539.html','true',[],''],
		['PAGE','97570',jdecode('tdi'),jdecode(''),'/97508/97570.html','true',[],''],
		['PAGE','97601',jdecode('tdi'),jdecode(''),'/97508/97601.html','true',[],''],
		['PAGE','97632',jdecode('tdi'),jdecode(''),'/97508/97632.html','true',[],''],
		['PAGE','97663',jdecode('tdi'),jdecode(''),'/97508/97663.html','true',[],''],
		['PAGE','97694',jdecode('tdi'),jdecode(''),'/97508/97694.html','true',[],''],
		['PAGE','97725',jdecode('tdi'),jdecode(''),'/97508/97725.html','true',[],''],
		['PAGE','97756',jdecode('tdi'),jdecode(''),'/97508/97756.html','true',[],'']
	],''],
	['PAGE','97787',jdecode('BSAC+Training'),jdecode(''),'/97787/index.html','true',[ 
		['PAGE','97818',jdecode('Ocean+Diver+Course'),jdecode(''),'/97787/97818.html','true',[],''],
		['PAGE','97849',jdecode('Sports+Diver+Course'),jdecode(''),'/97787/97849.html','true',[],''],
		['PAGE','97880',jdecode('Dive+Leader+Course'),jdecode(''),'/97787/97880.html','true',[],''],
		['PAGE','97911',jdecode('Speciality+Courses'),jdecode(''),'/97787/97911.html','true',[],'']
	],''],
	['PAGE','97942',jdecode('PADI+Training'),jdecode(''),'/97942/index.html','true',[ 
		['PAGE','97973',jdecode('padi'),jdecode(''),'/97942/97973.html','true',[],''],
		['PAGE','98004',jdecode('padi'),jdecode(''),'/97942/98004.html','true',[],''],
		['PAGE','98035',jdecode('padi'),jdecode(''),'/97942/98035.html','true',[],''],
		['PAGE','98066',jdecode('padi'),jdecode(''),'/97942/98066.html','true',[],''],
		['PAGE','98097',jdecode('padi'),jdecode(''),'/97942/98097.html','true',[],'']
	],''],
	['PAGE','52495',jdecode('IHMP+Medical+Training'),jdecode(''),'/52495/index.html','true',[ 
		['PAGE','49730',jdecode('First+Aid+Courses'),jdecode(''),'/52495/49730.html','true',[],''],
		['PAGE','44117',jdecode('Medical+Courses'),jdecode(''),'/52495/44117.html','true',[],''],
		['PAGE','52464',jdecode('Hyperbaric+Courses'),jdecode(''),'/52495/52464.html','true',[],''],
		['PAGE','52174',jdecode('Hse+First+Aid+Courses'),jdecode(''),'/52495/52174.html','true',[],'']
	],''],
	['PAGE','97012',jdecode('EFR+First+Aid+Training'),jdecode(''),'/97012/index.html','true',[ 
		['PAGE','97043',jdecode('Primary+care+'),jdecode(''),'/97012/97043.html','true',[],''],
		['PAGE','97074',jdecode('Secondary+Care'),jdecode(''),'/97012/97074.html','true',[],''],
		['PAGE','97105',jdecode('Care+for+Children'),jdecode(''),'/97012/97105.html','true',[],''],
		['PAGE','97136',jdecode('Appointed+person+%28hse%29'),jdecode(''),'/97012/97136.html','true',[],''],
		['PAGE','97167',jdecode('First+Aid+At+Work+%28hse%29'),jdecode(''),'/97012/97167.html','true',[],''],
		['PAGE','97198',jdecode('F.A.W.++Refresher+%28hse%29'),jdecode(''),'/97012/97198.html','true',[],''],
		['PAGE','97229',jdecode('efr'),jdecode(''),'/97012/97229.html','true',[],''],
		['PAGE','97260',jdecode('efr'),jdecode(''),'/97012/97260.html','true',[],''],
		['PAGE','97291',jdecode('efr'),jdecode(''),'/97012/97291.html','true',[],'']
	],''],
	['PAGE','97322',jdecode('HSE+Training'),jdecode(''),'/97322/index.html','true',[ 
		['PAGE','97353',jdecode('Appointed+Person'),jdecode(''),'/97322/97353.html','true',[],''],
		['PAGE','97384',jdecode('First+Ait+At+Work'),jdecode(''),'/97322/97384.html','true',[],''],
		['PAGE','97415',jdecode('Refresher'),jdecode(''),'/97322/97415.html','true',[],''],
		['PAGE','97446',jdecode('hse'),jdecode(''),'/97322/97446.html','true',[],''],
		['PAGE','97477',jdecode('hse'),jdecode(''),'/97322/97477.html','true',[],'']
	],''],
	['PAGE','98128',jdecode('Meet+The+Team'),jdecode(''),'/98128/index.html','true',[ 
		['PAGE','98159',jdecode('Simon+Maycock'),jdecode(''),'/98128/98159.html','true',[],''],
		['PAGE','98190',jdecode('Martin+Satherley'),jdecode(''),'/98128/98190.html','true',[],''],
		['PAGE','98221',jdecode('Lee+Hooper'),jdecode(''),'/98128/98221.html','true',[],''],
		['PAGE','98252',jdecode('mtt'),jdecode(''),'/98128/98252.html','true',[],''],
		['PAGE','98283',jdecode('mtt'),jdecode(''),'/98128/98283.html','true',[],''],
		['PAGE','98314',jdecode('mtt'),jdecode(''),'/98128/98314.html','true',[],'']
	],''],
	['PAGE','4815',jdecode('Trip+List'),jdecode(''),'/4815/index.html','true',[ 
		['PAGE','37601',jdecode('West+Coast+Scotland'),jdecode(''),'/4815/37601.html','true',[],''],
		['PAGE','33801',jdecode('South+East'),jdecode(''),'/4815/33801.html','true',[],''],
		['PAGE','33301',jdecode('Red+Sea'),jdecode(''),'/4815/33301.html','true',[],''],
		['PAGE','40112',jdecode('Expedition+Vessels'),jdecode(''),'/4815/40112.html','true',[],'']
	],''],
	['PAGE','45412',jdecode('Commercial+Diving'),jdecode(''),'/45412.html','true',[],''],
	['PAGE','13401',jdecode('Links'),jdecode(''),'/13401/index.html','true',[ 
		['PAGE','17001',jdecode('Dive+sites'),jdecode(''),'/13401/17001.html','true',[],''],
		['PAGE','17028',jdecode('Stoney+Cove'),jdecode(''),'/13401/17028.html','true',[],''],
		['PAGE','17055',jdecode('National+Dive+Centre'),jdecode(''),'/13401/17055.html','true',[],''],
		['PAGE','17082',jdecode('Guildenburgh'),jdecode(''),'/13401/17082.html','true',[],''],
		['PAGE','17109',jdecode('Capenrary'),jdecode(''),'/13401/17109.html','true',[],''],
		['PAGE','17136',jdecode('Wraysbury'),jdecode(''),'/13401/17136.html','true',[],''],
		['PAGE','17163',jdecode('Dorothea'),jdecode(''),'/13401/17163.html','true',[],'']
	],''],
	['PAGE','47912',jdecode('Articles'),jdecode(''),'/47912/index.html','true',[ 
		['PAGE','48015',jdecode('1'),jdecode(''),'/47912/48015.html','true',[],''],
		['PAGE','48046',jdecode('2'),jdecode(''),'/47912/48046.html','true',[],''],
		['PAGE','48077',jdecode('3'),jdecode(''),'/47912/48077.html','true',[],''],
		['PAGE','48108',jdecode('4'),jdecode(''),'/47912/48108.html','true',[],''],
		['PAGE','48139',jdecode('5'),jdecode(''),'/47912/48139.html','true',[],''],
		['PAGE','48170',jdecode('6'),jdecode(''),'/47912/48170.html','true',[],''],
		['PAGE','48201',jdecode('7'),jdecode(''),'/47912/48201.html','true',[],'']
	],''],
	['PAGE','4896',jdecode('Picture+Gallery'),jdecode(''),'/4896/index.html','true',[ 
		['PAGE','41933',jdecode('Simon'),jdecode(''),'/4896/41933.html','true',[],''],
		['PAGE','41747',jdecode('Tobermory'),jdecode(''),'/4896/41747.html','true',[],''],
		['PAGE','41778',jdecode('St+Kilda'),jdecode(''),'/4896/41778.html','true',[],''],
		['PAGE','41809',jdecode('Sound+Of+Mull'),jdecode(''),'/4896/41809.html','true',[],''],
		['PAGE','41840',jdecode('Stoney+Cove'),jdecode(''),'/4896/41840.html','true',[],''],
		['PAGE','41871',jdecode('South+Coast'),jdecode(''),'/4896/41871.html','true',[],''],
		['PAGE','42285',jdecode('Poplar+Diver'),jdecode(''),'/4896/42285.html','true',[],''],
		['PAGE','41902',jdecode('Elizabeth+G'),jdecode(''),'/4896/41902.html','true',[],''],
		['PAGE','42012',jdecode('Red+Sea'),jdecode(''),'/4896/42012.html','true',[],''],
		['PAGE','20501',jdecode('Rogues+Gallery'),jdecode(''),'/4896/20501.html','true',[],''],
		['PAGE','42612',jdecode('Gallery+2'),jdecode(''),'/4896/42612.html','true',[],''],
		['PAGE','49324',jdecode('Commercial'),jdecode(''),'/4896/49324.html','true',[],'']
	],''],
	['PAGE','52112',jdecode('Vandagraph+Analyzers'),jdecode(''),'/52112.html','true',[],''],
	['PAGE','50914',jdecode('Contact+Us'),jdecode(''),'/50914.html','true',[],'']];
var siteelementCount=113;
theSitetree.topTemplateName='Natural';
					                                                                    
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 */					                                                            
