/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('Services'),jdecode(''),'/752.html','true',[],''],
	['PAGE','122701',jdecode('Noticesheets'),jdecode(''),'/122701/index.html','true',[ 
		['PAGE','133001',jdecode('Archive+2010'),jdecode(''),'/122701/133001.html','true',[],''],
		['PAGE','133022',jdecode('Archive+2009'),jdecode(''),'/122701/133022.html','true',[],'']
	],''],
	['PAGE','109001',jdecode('Interregnum'),jdecode(''),'/109001/index.html','true',[ 
		['PAGE','136001',jdecode('New+Vicar+2010'),jdecode(''),'/109001/136001.html','true',[],''],
		['PAGE','124801',jdecode('Parish+Profile'),jdecode(''),'/109001/124801.html','true',[],''],
		['PAGE','114401',jdecode('Farewell+Pictures'),jdecode(''),'/109001/114401.html','true',[],'']
	],''],
	['PAGE','1067',jdecode('Current+News'),jdecode(''),'/1067.html','true',[],''],
	['PAGE','99701',jdecode('Mission+Statement'),jdecode(''),'/99701.html','true',[],''],
	['PAGE','962',jdecode('Who%26%23x27%3Bs+Who'),jdecode(''),'/962/index.html','true',[ 
		['PAGE','7601',jdecode('Vicar'),jdecode(''),'/962/7601.html','true',[],''],
		['PAGE','7685',jdecode('Church+Wardens'),jdecode(''),'/962/7685.html','true',[],''],
		['PAGE','7748',jdecode('Parish+Secretary'),jdecode(''),'/962/7748.html','true',[],''],
		['PAGE','7643',jdecode('Reader'),jdecode(''),'/962/7643.html','true',[],''],
		['PAGE','7664',jdecode('Evangelist'),jdecode(''),'/962/7664.html','true',[],''],
		['PAGE','7706',jdecode('Child+Protection'),jdecode(''),'/962/7706.html','true',[],''],
		['PAGE','7727',jdecode('Treasurer'),jdecode(''),'/962/7727.html','true',[],''],
		['PAGE','7769',jdecode('Training+%26+Young+People'),jdecode(''),'/962/7769.html','true',[],''],
		['PAGE','7811',jdecode('Community+Project'),jdecode(''),'/962/7811.html','true',[],'']
	],''],
	['PAGE','941',jdecode('Where+To+Find+Us'),jdecode(''),'/941.html','true',[],''],
	['PAGE','794',jdecode('Baptisms'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','74201',jdecode('Thanksgiving'),jdecode(''),'/794/74201.html','true',[],''],
		['PAGE','74222',jdecode('Baptism+Service'),jdecode(''),'/794/74222.html','true',[],''],
		['PAGE','74243',jdecode('Parish+Policy'),jdecode(''),'/794/74243.html','true',[],'']
	],''],
	['PAGE','815',jdecode('Weddings'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','74601',jdecode('Getting+Married'),jdecode(''),'/815/74601.html','true',[],''],
		['PAGE','74622',jdecode('Service+of+Blessing'),jdecode(''),'/815/74622.html','true',[],'']
	],''],
	['PAGE','836',jdecode('Bereavement'),jdecode(''),'/836/index.html','true',[ 
		['PAGE','74643',jdecode('Help+With+Your+Loss'),jdecode(''),'/836/74643.html','true',[],''],
		['PAGE','74664',jdecode('Useful+Contacts'),jdecode(''),'/836/74664.html','true',[],'']
	],''],
	['PAGE','857',jdecode('Prayer+%26+Healing'),jdecode(''),'/857.html','true',[],''],
	['PAGE','983',jdecode('Life+In+our+Church'),jdecode(''),'/983/index.html','true',[ 
		['PAGE','88301',jdecode('Sams+Place+After+School'),jdecode(''),'/983/88301.html','true',[],''],
		['PAGE','97901',jdecode('Holiday+Playscheme'),jdecode(''),'/983/97901.html','true',[],''],
		['PAGE','88322',jdecode('Lunch+Club'),jdecode(''),'/983/88322.html','true',[],''],
		['PAGE','88343',jdecode('Pram+Club'),jdecode(''),'/983/88343.html','true',[],''],
		['PAGE','88406',jdecode('All+Saints+UK+OnLine'),jdecode(''),'/983/88406.html','true',[],''],
		['PAGE','90822',jdecode('Pathfinders'),jdecode(''),'/983/90822.html','true',[],''],
		['PAGE','90801',jdecode('TGF'),jdecode(''),'/983/90801.html','true',[],''],
		['PAGE','1025',jdecode('Alpha+Course'),jdecode(''),'/983/1025.html','true',[],'']
	],''],
	['PAGE','87522',jdecode('Sharing+God%26%23x27%3Bs+Gifts'),jdecode(''),'/87522.html','true',[],''],
	['PAGE','1130',jdecode('Supporting+Mission'),jdecode(''),'/1130/index.html','true',[ 
		['PAGE','1151',jdecode('Community+Project'),jdecode(''),'/1130/1151.html','true',[],''],
		['PAGE','1172',jdecode('Family+Trust'),jdecode(''),'/1130/1172.html','true',[],''],
		['PAGE','1193',jdecode('Toybox'),jdecode(''),'/1130/1193.html','true',[],''],
		['PAGE','1214',jdecode('Neelampoondi'),jdecode(''),'/1130/1214.html','true',[],''],
		['PAGE','109901',jdecode('Craig+and+Claudia+Smith'),jdecode(''),'/1130/109901.html','true',[],'']
	],''],
	['PAGE','1004',jdecode('A+Safe+Place'),jdecode(''),'/1004.html','true',[],''],
	['PAGE','920',jdecode('Resources'),jdecode(''),'/920/index.html','true',[ 
		['PAGE','878',jdecode('Parish+Diary'),jdecode(''),'/920/878.html','true',[],''],
		['PAGE','101001',jdecode('Rejusus'),jdecode(''),'/920/101001.html','true',[],''],
		['PAGE','899',jdecode('Daily+Resources'),jdecode(''),'/920/899.html','true',[],'']
	],''],
	['PAGE','1235',jdecode('Community+Project'),jdecode(''),'/1235.html','true',[],''],
	['PAGE','6901',jdecode('All+Saints+School'),jdecode(''),'/6901.html','true',[],''],
	['PAGE','128201',jdecode('Vacancies'),jdecode(''),'/128201.html','true',[],'']];
var siteelementCount=57;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='C12C21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10514';
theSitetree.graphicsetId='11132';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='C12C21';
var theTemplate={
				name: 			'Surround',
				paletteFamily: 	'C12C21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10514',
				graphicsetId: 	'11132',
				contentColor: 	'FFFFFF',
				contentBGColor: 'C12C21',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FEA7A1',
				e_color: 		'FEA7A1',
				f_color: 		'FEA7A1',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100623-123249'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090607-181932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20090607-185843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20080204-195329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20090607-191112'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20090607-191545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20090430-122456'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20071212-215728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74201',
internalId:  '',
customField: '20090607-190107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20090430-125009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20090430-154753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20071123-171830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20080204-203141'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20071219-225844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1004',
internalId:  '',
customField: '20090302-155933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1025',
internalId:  '',
customField: '20090607-193110'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '122701',
internalId:  '',
customField: '20100623-122823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1067',
internalId:  '',
customField: '20090316-151108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20090607-191805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '124801',
internalId:  '',
customField: '20090701-103444'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1130',
internalId:  '',
customField: '20090302-170524'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1151',
internalId:  '',
customField: '20071206-214644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1172',
internalId:  '',
customField: '20071206-220309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1193',
internalId:  '',
customField: '20071212-204144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1214',
internalId:  '',
customField: '20090302-172530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1235',
internalId:  '',
customField: '20090430-144301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '136001',
internalId:  '',
customField: '20100522-184032'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20090316-151804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '114401',
internalId:  '',
customField: '20090607-182640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7643',
internalId:  '',
customField: '20090607-184904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7664',
internalId:  '',
customField: '20090408-163427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7685',
internalId:  '',
customField: '20100509-135848'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7706',
internalId:  '',
customField: '20090607-185111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7727',
internalId:  '',
customField: '20090607-185401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7748',
internalId:  '',
customField: '20090607-184730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7769',
internalId:  '',
customField: '20100509-132815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20090302-171008'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7811',
internalId:  '',
customField: '20090607-185747'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74222',
internalId:  '',
customField: '20090607-190515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74243',
internalId:  '',
customField: '20080204-201346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74601',
internalId:  '',
customField: '20090607-190846'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74622',
internalId:  '',
customField: '20090607-191013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74643',
internalId:  '',
customField: '20090607-191329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74664',
internalId:  '',
customField: '20090607-191402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87522',
internalId:  '',
customField: '20090607-193536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '101001',
internalId:  '',
customField: '20090430-124624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88322',
internalId:  '',
customField: '20090607-191945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '133001',
internalId:  '',
customField: '20100609-173320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88343',
internalId:  '',
customField: '20090607-194140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '133022',
internalId:  '',
customField: '20100323-220303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88406',
internalId:  '',
customField: '20090607-192239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90801',
internalId:  '',
customField: '20090430-131149'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90822',
internalId:  '',
customField: '20090607-192546'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '109001',
internalId:  '',
customField: '20100522-181947'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97901',
internalId:  '',
customField: '20090430-153920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '99701',
internalId:  '',
customField: '20090607-183046'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '128201',
internalId:  '',
customField: '20090905-094114'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLREK';
var companyName   = 'St+Paul+with+All+Saints+Church';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
