/* [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','4499',jdecode('HOME'),jdecode(''),'/4499.html','true',[],''],
	['PAGE','5103',jdecode('HISTORY'),jdecode(''),'/5103/index.html','true',[ 
		['PAGE','6636',jdecode('The+early+years+....'),jdecode(''),'/5103/6636.html','true',[],''],
		['PAGE','6663',jdecode('Later+Years+.......'),jdecode(''),'/5103/6663.html','true',[],''],
		['PAGE','6690',jdecode('Elizabeth++11+......'),jdecode(''),'/5103/6690.html','true',[],''],
		['PAGE','85476',jdecode('The+Monarchs'),jdecode(''),'/5103/85476.html','true',[],'']
	],''],
	['PAGE','54964',jdecode('PHOTOGRAPHS'),jdecode(''),'/54964.html','true',[],''],
	['PAGE','26064',jdecode('THE+COINS'),jdecode(''),'/26064/index.html','true',[ 
		['PAGE','5238',jdecode('Gradeing'),jdecode(''),'/26064/5238.html','true',[],''],
		['PAGE','13605',jdecode('Rarity+of+maundy+money'),jdecode(''),'/26064/13605.html','true',[],''],
		['PAGE','123974',jdecode('other+maundy+'),jdecode(''),'/26064/123974.html','true',[],'']
	],''],
	['PAGE','92776',jdecode('THE+CASES'),jdecode(''),'/92776.html','true',[],''],
	['PAGE','5184',jdecode('DESIGNERS'),jdecode(''),'/5184.html','true',[],''],
	['PAGE','5211',jdecode('PUBLICATIONS'),jdecode(''),'/5211.html','true',[],''],
	['PAGE','5157',jdecode('SERVICES'),jdecode(''),'/5157/index.html','true',[ 
		['PAGE','9345',jdecode('Maundy+Prayer'),jdecode(''),'/5157/9345.html','true',[],''],
		['PAGE','12164',jdecode('A+maundy+service'),jdecode(''),'/5157/12164.html','true',[],''],
		['PAGE','113274',jdecode('Entry+Tickets'),jdecode(''),'/5157/113274.html','true',[],''],
		['PAGE','102074',jdecode('Programmes'),jdecode(''),'/5157/102074.html','true',[],''],
		['PAGE','43864',jdecode('Yeomen+Of+The+Guard'),jdecode(''),'/5157/43864.html','true',[],'']
	],''],
	['PAGE','117474',jdecode('Maundy+Recipients'),jdecode(''),'/117474.html','true',[],''],
	['PAGE','64776',jdecode('Full+Distribution+Sets'),jdecode(''),'/64776.html','true',[],''],
	['PAGE','5130',jdecode('DID+YOU+KNOW+%3F'),jdecode(''),'/5130.html','true',[],''],
	['PAGE','14115',jdecode('MAUNDY+VALUES'),jdecode(''),'/14115.html','true',[],''],
	['PAGE','5265',jdecode('LINKS'),jdecode(''),'/5265.html','true',[],''],
	['PAGE','5292',jdecode('ACKNOWLEDGEMENTS'),jdecode(''),'/5292.html','true',[],''],
	['PAGE','5346',jdecode('Buying%2FSelling%3F'),jdecode(''),'/5346/index.html','true',[ 
		['PAGE','24364',jdecode('Dealers'),jdecode(''),'/5346/24364.html','true',[],'']
	],''],
	['PAGE','86576',jdecode('Discussion+Forum'),jdecode(''),'/86576.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='439';
theSitetree.graphicsetId='493';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='a1a1c6';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'439',
				graphicsetId: 	'493',
				contentColor: 	'FFFFFF',
				contentBGColor: 'a1a1c6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'a1a1c6',
				b_color: 		'666699',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4499',
internalId:  '',
customField: '20100815-192530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5346',
internalId:  '',
customField: '20090923-190649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5103',
internalId:  '',
customField: '20050402-115411'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4499',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4499',
internalId:  '1460592',
customField: '1501'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '86576',
internalId:  'aam010in2236111c3661a2a',
customField: 'en:US:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6636',
internalId:  '',
customField: '20070127-124350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6663',
internalId:  '',
customField: '20050502-113718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6690',
internalId:  '',
customField: '20090526-213706'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85476',
internalId:  '',
customField: '20070401-173020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26064',
internalId:  '',
customField: '20090726-153529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5238',
internalId:  '',
customField: '20080614-173324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13605',
internalId:  '',
customField: '20070622-212436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '92776',
internalId:  '',
customField: '20100220-172340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5184',
internalId:  '',
customField: '20060625-132627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5211',
internalId:  '',
customField: '20080409-203449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20100130-123132'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54964',
internalId:  '',
customField: '20100502-223004'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9345',
internalId:  '',
customField: '20050219-160154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12164',
internalId:  '',
customField: '20050219-160312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43864',
internalId:  '',
customField: '20050410-182438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5130',
internalId:  '',
customField: '20080927-183310'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14115',
internalId:  '',
customField: '20091226-131416'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5265',
internalId:  '',
customField: '20090726-153645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5292',
internalId:  '',
customField: '20080813-223038'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64776',
internalId:  '',
customField: '20100321-170104'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24364',
internalId:  '',
customField: '20090418-230849'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86576',
internalId:  '',
customField: '20080825-174445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '123974',
internalId:  '',
customField: '20100801-174417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102074',
internalId:  '',
customField: '20090509-091058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113274',
internalId:  '',
customField: '20090314-184401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '117474',
internalId:  '',
customField: '20100815-192624'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2236';
var companyName   = 'www.maundymoney.info';
var htmlTitle	  = 'www.maundymoney.info';
var metaKeywords  = 'Maundy%2Chistory%2Ccoins%2Cmaundy+money%2Cmaundy+thursday%2Cmaundy+story%2Ceaster+services%2Cservices%2Croyal+maundy%2Cmaundy+history%2Cmaundy+coins%2Cmaundy+coinage%2Cmaundy+values%2C';
var metaContents  = 'Maundy.+History+of+maundy+coinage.+Maundy+coin+values.+maundy+services.';
					                                                                    
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 */					                                                            
