/* [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('Home'),jdecode(''),'/1111.html','true',[],''],
	['PAGE','39701',jdecode('2005+UPDATE'),jdecode(''),'/39701.html','true',[],''],
	['PAGE','36964',jdecode('2004+Report'),jdecode(''),'/36964.html','true',[],''],
	['PAGE','23127',jdecode('2003+Report'),jdecode(''),'/23127.html','true',[],''],
	['PAGE','3836',jdecode('2002+Report'),jdecode(''),'/3836.html','true',[],''],
	['PAGE','23727',jdecode('+Port+Record'),jdecode(''),'/23727.html','true',[],''],
	['PAGE','2495',jdecode('Wrecking'),jdecode(''),'/2495.html','true',[],''],
	['PAGE','2518',jdecode('Inshore%2Freef'),jdecode(''),'/2518.html','true',[],''],
	['PAGE','2587',jdecode('Channel+Islands'),jdecode(''),'/2587/index.html','true',[ 
		['PAGE','39670',jdecode('Alderney+2005'),jdecode(''),'/2587/39670.html','true',[],''],
		['PAGE','37764',jdecode('Alderney+2004'),jdecode(''),'/2587/37764.html','true',[],'']
	],''],
	['PAGE','2541',jdecode('Competitions'),jdecode(''),'/2541.html','true',[],''],
	['PAGE','2564',jdecode('Individuals'),jdecode(''),'/2564.html','true',[],''],
	['PAGE','2610',jdecode('Bookings%2FLinks'),jdecode(''),'/2610/index.html','true',[ 
		['PAGE','2633',jdecode('Accommodation'),jdecode(''),'/2610/2633.html','true',[],'']
	],''],
	['PAGE','2656',jdecode('DIVING'),jdecode(''),'/2656/index.html','true',[ 
		['PAGE','2282',jdecode('Training'),jdecode(''),'/2656/2282.html','true',[],'']
	],''],
	['PAGE','15303',jdecode('BOAT+BUILD%2FDESIGN'),jdecode(''),'/15303/index.html','true',[ 
		['PAGE','15325',jdecode('Product+Range'),jdecode(''),'/15303/15325.html','true',[],'']
	],''],
	['PAGE','2305',jdecode('CONTACT'),jdecode(''),'/2305.html','true',[],''],
	['PAGE','5601',jdecode('Guestbook'),jdecode(''),'/5601/index.html','true',[ 
		['PAGE','5602',jdecode('Read+Guestbook'),jdecode(''),'/5601/5602.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Medium';
					                                                                    
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 */					                                                            

