/* [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','1148',jdecode('Home+'),jdecode(''),'/1148.html','true',[],''],
	['PAGE','376000',jdecode('News+09.03.10'),jdecode(''),'/376000.html','true',[],''],
	['PAGE','1339',jdecode('Anorak+News+09.03.10'),jdecode(''),'/1339.html','true',[],''],
	['PAGE','430014',jdecode('Get+help+here%21'),jdecode(''),'/430014/index.html','true',[ 
		['PAGE','430064',jdecode('Get+help+here%21+%28follow+up+page%29'),jdecode(''),'/430014/430064.html','false',[],''],
		['PAGE','429418',jdecode('Ask+a+Question+%28follow+up+page%29'),jdecode(''),'/430014/429418.html','false',[],''],
		['PAGE','57097',jdecode('Upgrade+Guide+14.09.04'),jdecode(''),'/430014/57097.html','true',[],''],
		['PAGE','57675',jdecode('Protect+your+kids+online+'),jdecode(''),'/430014/57675.html','true',[],''],
		['PAGE','174698',jdecode('Renewing+subscriptions+etc'),jdecode(''),'/430014/174698.html','true',[],''],
		['PAGE','9095',jdecode('Computer+Tips'),jdecode(''),'/430014/9095.html','true',[],''],
		['PAGE','71015',jdecode('Computer+Tips+29.10.02+%28follow+up+page%29'),jdecode(''),'/430014/71015.html','false',[],''],
		['PAGE','166013',jdecode('Missing+Discs'),jdecode(''),'/430014/166013.html','true',[],'']
	],''],
	['PAGE','349401',jdecode('Science+News+04.02.10'),jdecode(''),'/349401.html','true',[],''],
	['PAGE','529214',jdecode('Fun'),jdecode(''),'/529214.html','true',[],''],
	['PAGE','3287',jdecode('Broadband+News+02.02.10'),jdecode(''),'/3287/index.html','true',[ 
		['PAGE','174834',jdecode('Noticeboard+%28follow+up+page%29'),jdecode(''),'/3287/174834.html','false',[],'']
	],''],
	['PAGE','432214',jdecode('Broadband+information'),jdecode(''),'/432214.html','true',[],''],
	['PAGE','3018',jdecode('Connections++Campaign'),jdecode(''),'/3018/index.html','true',[ 
		['PAGE','78518',jdecode('Help+the+DC%21+%28follow+up+page%29'),jdecode(''),'/3018/78518.html','false',[],''],
		['PAGE','89798',jdecode('Connections+Map+'),jdecode(''),'/3018/89798.html','true',[],'']
	],''],
	['PAGE','71233',jdecode('REGISTER+HERE'),jdecode(''),'/71233/index.html','true',[ 
		['PAGE','3195',jdecode('Forum+Guide+'),jdecode(''),'/71233/3195.html','true',[],''],
		['PAGE','3241',jdecode('Posting+Guide+'),jdecode(''),'/71233/3241.html','true',[],'']
	],''],
	['PAGE','2995',jdecode('About+this+site+'),jdecode(''),'/2995/index.html','true',[ 
		['PAGE','70613',jdecode('About+this+site+15.09.02+%28follow+up+page%29'),jdecode(''),'/2995/70613.html','false',[],'']
	],''],
	['PAGE','506414',jdecode('News+Archive+2008'),jdecode(''),'/506414.html','true',[],''],
	['PAGE','459020',jdecode('News+Archive+2007'),jdecode(''),'/459020.html','true',[],''],
	['PAGE','425314',jdecode('News+Archive+2006'),jdecode(''),'/425314.html','true',[],''],
	['PAGE','389814',jdecode('News+Archive+2005'),jdecode(''),'/389814.html','true',[],''],
	['PAGE','375607',jdecode('News+Archive+2004'),jdecode(''),'/375607.html','true',[],''],
	['PAGE','59597',jdecode('News+Archive+2003'),jdecode(''),'/59597.html','true',[],''],
	['PAGE','382800',jdecode('News+Archive+2002'),jdecode(''),'/382800.html','true',[],''],
	['PAGE','59624',jdecode('Cartoon+Archive+'),jdecode(''),'/59624/index.html','true',[ 
		['PAGE','60497',jdecode('Signatures'),jdecode(''),'/59624/60497.html','true',[],''],
		['PAGE','363401',jdecode('****'),jdecode(''),'/59624/363401.html','true',[],''],
		['PAGE','55097',jdecode('Forum+user+icons'),jdecode(''),'/59624/55097.html','true',[],''],
		['PAGE','83897',jdecode('******'),jdecode(''),'/59624/83897.html','true',[],'']
	],''],
	['PAGE','1201',jdecode('Useful+links+%26+numbers'),jdecode(''),'/1201.html','true',[],''],
	['PAGE','172298',jdecode('Anorak+Archive'),jdecode(''),'/172298/index.html','true',[ 
		['PAGE','378548',jdecode('Anorak+News+2003'),jdecode(''),'/172298/378548.html','true',[],''],
		['PAGE','377800',jdecode('Anorak+News+2002'),jdecode(''),'/172298/377800.html','true',[],'']
	],''],
	['PAGE','508862',jdecode('Anorak+-cloakroom+2'),jdecode(''),'/508862.html','true',[],''],
	['PAGE','525914',jdecode('Science+Archive'),jdecode(''),'/525914.html','true',[],'']];
var siteelementCount=43;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
