/* [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','4477',jdecode('DUK+-+North+Staffs'),jdecode(''),'/4477/index.html','true',[ 
		['PAGE','45870',jdecode('Who+are+we%3F%3F%3F'),jdecode(''),'/4477/45870.html','true',[],''],
		['PAGE','57638',jdecode('Information+Centre'),jdecode(''),'/4477/57638.html','true',[],''],
		['PAGE','68839',jdecode('Direction'),jdecode(''),'/4477/68839.html','true',[],''],
		['PAGE','30623',jdecode('Vacancies'),jdecode(''),'/4477/30623.html','true',[],''],
		['PAGE','7098',jdecode('Donations'),jdecode(''),'/4477/7098.html','true',[],'']
	],''],
	['PAGE','23603',jdecode('Information+%26+News.'),jdecode(''),'/23603.html','true',[],''],
	['PAGE','71943',jdecode('Newsletter+Issue+68'),jdecode(''),'/71943/index.html','true',[ 
		['PAGE','71974',jdecode('Page+1'),jdecode(''),'/71943/71974.html','true',[],''],
		['PAGE','72005',jdecode('Page+2'),jdecode(''),'/71943/72005.html','true',[],''],
		['PAGE','72036',jdecode('Page+3'),jdecode(''),'/71943/72036.html','true',[],''],
		['PAGE','72067',jdecode('Page+4'),jdecode(''),'/71943/72067.html','true',[],''],
		['PAGE','72098',jdecode('Page+5'),jdecode(''),'/71943/72098.html','true',[],''],
		['PAGE','72129',jdecode('Page+6'),jdecode(''),'/71943/72129.html','true',[],''],
		['PAGE','72160',jdecode('Page+7'),jdecode(''),'/71943/72160.html','true',[],''],
		['PAGE','72191',jdecode('Page+8'),jdecode(''),'/71943/72191.html','true',[],'']
	],''],
	['PAGE','70269',jdecode('Newsletter+Issue+67'),jdecode(''),'/70269/index.html','true',[ 
		['PAGE','70323',jdecode('Page+1'),jdecode(''),'/70269/70323.html','true',[],''],
		['PAGE','70354',jdecode('Page+2'),jdecode(''),'/70269/70354.html','true',[],''],
		['PAGE','70385',jdecode('Page+3'),jdecode(''),'/70269/70385.html','true',[],''],
		['PAGE','70416',jdecode('Page+4'),jdecode(''),'/70269/70416.html','true',[],''],
		['PAGE','70447',jdecode('Page+5'),jdecode(''),'/70269/70447.html','true',[],''],
		['PAGE','70478',jdecode('Page+6'),jdecode(''),'/70269/70478.html','true',[],''],
		['PAGE','70714',jdecode('Page+7'),jdecode(''),'/70269/70714.html','true',[],''],
		['PAGE','70745',jdecode('Page+8'),jdecode(''),'/70269/70745.html','true',[],'']
	],''],
	['PAGE','71338',jdecode('Newsletter+Issue+66+'),jdecode(''),'/71338/index.html','true',[ 
		['PAGE','71369',jdecode('Page+1'),jdecode(''),'/71338/71369.html','true',[],''],
		['PAGE','71400',jdecode('Page+2'),jdecode(''),'/71338/71400.html','true',[],''],
		['PAGE','71431',jdecode('Page+3'),jdecode(''),'/71338/71431.html','true',[],''],
		['PAGE','71462',jdecode('Page+4'),jdecode(''),'/71338/71462.html','true',[],''],
		['PAGE','71493',jdecode('Page+5'),jdecode(''),'/71338/71493.html','true',[],''],
		['PAGE','71524',jdecode('Page+6'),jdecode(''),'/71338/71524.html','true',[],''],
		['PAGE','71555',jdecode('Page+7'),jdecode(''),'/71338/71555.html','true',[],''],
		['PAGE','71586',jdecode('Page+8'),jdecode(''),'/71338/71586.html','true',[],'']
	],''],
	['PAGE','4642',jdecode('Aknowledgements.'),jdecode(''),'/4642.html','true',[],''],
	['PAGE','28679',jdecode('Update+your+details'),jdecode(''),'/28679.html','true',[],''],
	['PAGE','70162',jdecode('Forthcoming+Events'),jdecode(''),'/70162/index.html','true',[ 
		['PAGE','15063',jdecode('Future+Events+2011'),jdecode(''),'/70162/15063.html','true',[],''],
		['PAGE','23429',jdecode('Monthly+Meets+2011'),jdecode(''),'/70162/23429.html','true',[],'']
	],''],
	['PAGE','70131',jdecode('Events'),jdecode(''),'/70131/index.html','true',[ 
		['PAGE','61938',jdecode('AGM+2011'),jdecode(''),'/70131/61938.html','true',[],''],
		['PAGE','64038',jdecode('Sponsored+Walk+'),jdecode(''),'/70131/64038.html','true',[],''],
		['PAGE','65838',jdecode('Charity+Market+Day'),jdecode(''),'/70131/65838.html','true',[],''],
		['PAGE','65869',jdecode('Garden+Party+2010'),jdecode(''),'/70131/65869.html','true',[],''],
		['PAGE','59877',jdecode('Presentations'),jdecode(''),'/70131/59877.html','true',[],''],
		['PAGE','61969',jdecode('Jumble+Sales'),jdecode(''),'/70131/61969.html','true',[],''],
		['PAGE','70100',jdecode('Adsa+Tunstall'),jdecode(''),'/70131/70100.html','true',[],''],
		['PAGE','70069',jdecode('Grand+Draw+'),jdecode(''),'/70131/70069.html','true',[],''],
		['PAGE','70038',jdecode('Awareness+Day+2010'),jdecode(''),'/70131/70038.html','true',[],'']
	],''],
	['PAGE','25428',jdecode('Guest+Book+Entries'),jdecode(''),'/25428/index.html','true',[ 
		['PAGE','25427',jdecode('Leave+you+messages'),jdecode(''),'/25428/25427.html','true',[],'']
	],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Neon';
					                                                                    
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 */					                                                            

