/* [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+PAGE'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','491581',jdecode('RNSESA+Affiliation'),jdecode(''),'/4598/491581.html','true',[],'']
	],''],
	['PAGE','195588',jdecode('FOREWORD'),jdecode(''),'/195588.html','true',[],''],
	['PAGE','5930',jdecode('COMMITTEE'),jdecode(''),'/5930.html','true',[],''],
	['PAGE','420351',jdecode('ABOUT+US'),jdecode(''),'/420351.html','true',[],''],
	['PAGE','181862',jdecode('JOIN+US'),jdecode(''),'/181862/index.html','true',[ 
		['PAGE','511212',jdecode('Membership+Form'),jdecode(''),'/181862/511212.html','true',[],'']
	],''],
	['PAGE','5207',jdecode('VISITORS+BOOK'),jdecode(''),'/5207/index.html','true',[ 
		['PAGE','5206',jdecode('Sign+Visitors+Book'),jdecode(''),'/5207/5206.html','true',[],'']
	],''],
	['PAGE','174941',jdecode('LINKS'),jdecode(''),'/174941.html','true',[],''],
	['PAGE','469709',jdecode('SPLICE+T%26%23x27%3B+MAINBRACE'),jdecode(''),'/469709.html','true',[],''],
	['PAGE','174139',jdecode('ASSOCIATION+NEWS'),jdecode(''),'/174139/index.html','true',[ 
		['PAGE','174372',jdecode('List+of+Members'),jdecode(''),'/174139/174372.html','true',[],''],
		['PAGE','174995',jdecode('Where+are+they+now%3F'),jdecode(''),'/174139/174995.html','true',[],''],
		['PAGE','263907',jdecode('In+Memory+Of'),jdecode(''),'/174139/263907.html','true',[],''],
		['PAGE','699570',jdecode('REUNION+NEWS'),jdecode(''),'/174139/699570.html','true',[],''],
		['PAGE','296978',jdecode('Reunion+Pictures.+2009'),jdecode(''),'/174139/296978.html','true',[],''],
		['PAGE','512217',jdecode('Reunion+Pictures++2009'),jdecode(''),'/174139/512217.html','true',[],''],
		['PAGE','548512',jdecode('Mini+Reunions+'),jdecode(''),'/174139/548512.html','true',[],''],
		['PAGE','315876',jdecode('Your+Photo%26%23x27%3Bs'),jdecode(''),'/174139/315876.html','true',[],''],
		['PAGE','305878',jdecode('Your+Letters'),jdecode(''),'/174139/305878.html','true',[],''],
		['PAGE','174641',jdecode('Raise+A+Smile'),jdecode(''),'/174139/174641.html','true',[],''],
		['PAGE','309578',jdecode('Tot+Time+Talk'),jdecode(''),'/174139/309578.html','true',[],''],
		['PAGE','292101',jdecode('Poets+Corner'),jdecode(''),'/174139/292101.html','true',[],''],
		['PAGE','400994',jdecode('Slop+Room'),jdecode(''),'/174139/400994.html','true',[],''],
		['PAGE','457837',jdecode('Advertise+%26+Exchange'),jdecode(''),'/174139/457837.html','true',[],''],
		['PAGE','175049',jdecode('Seafield+Course+Photos+'),jdecode(''),'/174139/175049.html','true',[],''],
		['PAGE','179562',jdecode('Sultan+Course+Photos'),jdecode(''),'/174139/179562.html','true',[],''],
		['PAGE','176262',jdecode('Air+Stations'),jdecode(''),'/174139/176262.html','true',[],''],
		['PAGE','194863',jdecode('Ships+%26+Carriers'),jdecode(''),'/174139/194863.html','true',[],''],
		['PAGE','190905',jdecode('SQUADRON+HISTORY'),jdecode(''),'/174139/190905.html','true',[],''],
		['PAGE','270904',jdecode('800+Squadron'),jdecode(''),'/174139/270904.html','true',[],''],
		['PAGE','274904',jdecode('801+Squadron'),jdecode(''),'/174139/274904.html','true',[],''],
		['PAGE','732053',jdecode('802+Squadron'),jdecode(''),'/174139/732053.html','true',[],''],
		['PAGE','277701',jdecode('814+Squadron'),jdecode(''),'/174139/277701.html','true',[],''],
		['PAGE','280601',jdecode('815+Squadron'),jdecode(''),'/174139/280601.html','true',[],''],
		['PAGE','287101',jdecode('820+Squadron'),jdecode(''),'/174139/287101.html','true',[],''],
		['PAGE','552412',jdecode('824+Squadron'),jdecode(''),'/174139/552412.html','true',[],''],
		['PAGE','194890',jdecode('Aircraft'),jdecode(''),'/174139/194890.html','true',[],'']
	],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Profile';
					                                                                    
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 */					                                                            
