/* [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','4595',jdecode('HOME+A+Fairly+Story'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','42702',jdecode('SPIFFING+TIMES'),jdecode(''),'/42702.html','true',[],''],
	['PAGE','42459',jdecode('WARTIME+DAILY+LIFE'),jdecode(''),'/42459.html','true',[],''],
	['PAGE','42567',jdecode('THE+EXETER+BLITZ'),jdecode(''),'/42567.html','true',[],''],
	['PAGE','42486',jdecode('THE+YANKS'),jdecode(''),'/42486.html','true',[],''],
	['PAGE','42648',jdecode('GANGS'),jdecode(''),'/42648.html','true',[],''],
	['PAGE','42783',jdecode('TESSIE+AND+ME+1'),jdecode(''),'/42783.html','true',[],''],
	['PAGE','160407',jdecode('TESSIE+AND+ME+%26+IDE'),jdecode(''),'/160407.html','true',[],''],
	['PAGE','107633',jdecode('SCHOOLDAYS'),jdecode(''),'/107633.html','true',[],''],
	['PAGE','42432',jdecode('CATHOLICS'),jdecode(''),'/42432.html','true',[],''],
	['PAGE','177305',jdecode('AUNTY+MINA'),jdecode(''),'/177305.html','true',[],''],
	['PAGE','42513',jdecode('Altar+Boys+alter+egos'),jdecode(''),'/42513.html','true',[],''],
	['PAGE','173202',jdecode('WINSLADE+PARK'),jdecode(''),'/173202.html','true',[],''],
	['PAGE','42594',jdecode('SEX++and+Girl+Friends'),jdecode(''),'/42594.html','true',[],''],
	['PAGE','42810',jdecode('GRANDAD'),jdecode(''),'/42810.html','true',[],''],
	['PAGE','11802',jdecode('OLDER+GENERATION'),jdecode(''),'/11802.html','true',[],''],
	['PAGE','91760',jdecode('MERMAIDS+YARD'),jdecode(''),'/91760.html','true',[],''],
	['PAGE','42621',jdecode('DOMINIC'),jdecode(''),'/42621.html','true',[],''],
	['PAGE','109333',jdecode('TERESA'),jdecode(''),'/109333.html','true',[],''],
	['PAGE','91733',jdecode('Friends'),jdecode(''),'/91733.html','true',[],''],
	['PAGE','124433',jdecode('GENEALOGY'),jdecode(''),'/124433.html','true',[],''],
	['PAGE','141633',jdecode('HOKEY+POKEY'),jdecode(''),'/141633.html','true',[],''],
	['PAGE','42675',jdecode('ICE+CREAM+FACTORY'),jdecode(''),'/42675.html','true',[],''],
	['PAGE','131033',jdecode('ICE+CREAM+WARS'),jdecode(''),'/131033.html','true',[],''],
	['PAGE','159002',jdecode('BUNG%26%23x27%3BS+WAR'),jdecode(''),'/159002.html','true',[],''],
	['PAGE','14030',jdecode('MY+EXETER'),jdecode(''),'/14030.html','true',[],''],
	['PAGE','41724',jdecode('BUSINESS'),jdecode(''),'/41724.html','true',[],''],
	['PAGE','42756',jdecode('THE+EXETER+MINT'),jdecode(''),'/42756.html','true',[],''],
	['PAGE','10420',jdecode('CASALATTICO'),jdecode(''),'/10420.html','true',[],''],
	['PAGE','123033',jdecode('CIOCIARIA'),jdecode(''),'/123033.html','true',[],''],
	['PAGE','125733',jdecode('ANCIENT+TRIBES+%26+PLACES'),jdecode(''),'/125733.html','true',[],''],
	['PAGE','4652',jdecode('ARMY+DAYS-RASC'),jdecode(''),'/4652.html','true',[],''],
	['PAGE','178121',jdecode('BLANDFORD+ARMY+CAMP'),jdecode(''),'/178121.html','true',[],''],
	['PAGE','93879',jdecode('SUEZ+CRISIS'),jdecode(''),'/93879.html','true',[],''],
	['PAGE','179276',jdecode('CYPRUS+FOR++XMAS'),jdecode(''),'/179276.html','true',[],''],
	['PAGE','175599',jdecode('HOBBS+BARRACKS'),jdecode(''),'/175599.html','true',[],''],
	['PAGE','174548',jdecode('ARMY+PHOTOS'),jdecode(''),'/174548.html','true',[],''],
	['PAGE','105534',jdecode('Rousing+Times'),jdecode(''),'/105534.html','true',[],''],
	['PAGE','42540',jdecode('TORQUAY+COUSINS'),jdecode(''),'/42540.html','true',[],''],
	['PAGE','119833',jdecode('MARGATE+FORTE%26%23x27%3BS'),jdecode(''),'/119833.html','true',[],''],
	['PAGE','132333',jdecode('IL+DUCE'),jdecode(''),'/132333.html','true',[],''],
	['PAGE','110833',jdecode('CROYDON+%26+WILLIAMS'),jdecode(''),'/110833.html','true',[],''],
	['PAGE','160451',jdecode('TAILEND+CHARLIE'),jdecode(''),'/160451.html','true',[],''],
	['PAGE','11148',jdecode('MY+GUESTBOOK'),jdecode(''),'/11148/index.html','true',[ 
		['PAGE','11149',jdecode('Read+Guestbook'),jdecode(''),'/11148/11149.html','true',[],'']
	],''],
	['PAGE','35131',jdecode('COLLAGE'),jdecode(''),'/35131.html','true',[],''],
	['PAGE','106434',jdecode('LOVE+%26+MARRIAGE'),jdecode(''),'/106434.html','true',[],''],
	['PAGE','42837',jdecode('ANECDOTES'),jdecode(''),'/42837.html','true',[],''],
	['PAGE','10447',jdecode('SHORT+STORIES'),jdecode(''),'/10447.html','true',[],''],
	['PAGE','174102',jdecode('MORE+STORIES'),jdecode(''),'/174102.html','true',[],''],
	['PAGE','25131',jdecode('%22VILLE%22+A+Story'),jdecode(''),'/25131.html','true',[],''],
	['PAGE','181499',jdecode('CHRONICLES'),jdecode(''),'/181499.html','true',[],''],
	['PAGE','42864',jdecode('Mike+Nance+Artist'),jdecode(''),'/42864.html','true',[],''],
	['PAGE','89633',jdecode('John+Kingerlee+Artist'),jdecode(''),'/89633.html','true',[],''],
	['PAGE','150302',jdecode('GIGGLES'),jdecode(''),'/150302.html','true',[],''],
	['PAGE','4895',jdecode('CONTACTS%2BLINKS'),jdecode(''),'/4895.html','true',[],''],
	['PAGE','185899',jdecode('EDMUNDSPICTURES'),jdecode(''),'/185899.html','true',[],''],
	['PAGE','186099',jdecode('DOMENICO+FORTE+2010'),jdecode(''),'/186099.html','true',[],'']];
var siteelementCount=58;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            
