/* [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','773',jdecode('ORDERING+HOSTS'),jdecode(''),'/773.html','true',[],''],
	['PAGE','752',jdecode('ABOUT+US'),jdecode(''),'/752.html','true',[],''],
	['PAGE','16401',jdecode('WHY+POST+HOSTS'),jdecode(''),'/16401.html','true',[],''],
	['PAGE','17401',jdecode('WHY+RECEIVE'),jdecode(''),'/17401.html','true',[],''],
	['PAGE','5064',jdecode('FAQ'),jdecode(''),'/5064.html','true',[],''],
	['PAGE','5043',jdecode('PRESS+RELEASES'),jdecode(''),'/5043.html','true',[],''],
	['PAGE','5106',jdecode('CONTACT'),jdecode(''),'/5106.html','true',[],''],
	['PAGE','5148',jdecode('LONG+MASS'),jdecode(''),'/5148.html','true',[],''],
	['PAGE','9701',jdecode('SHORT+MASS'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','9722',jdecode('INCLUSIVE+MASS'),jdecode(''),'/9722.html','true',[],''],
	['PAGE','9743',jdecode('+STREET+MASS'),jdecode(''),'/9743.html','true',[],''],
	['PAGE','26601',jdecode('LATEST+VIDEOS'),jdecode(''),'/26601.html','true',[],''],
	['PAGE','16422',jdecode('VIDEO+RESOURCES'),jdecode(''),'/16422.html','true',[],''],
	['PAGE','23301',jdecode('QUOTES+RE+HOSTS'),jdecode(''),'/23301.html','true',[],''],
	['PAGE','24001',jdecode('BELONGING'),jdecode(''),'/24001.html','true',[],''],
	['PAGE','21101',jdecode('PRAYER+REQUESTS'),jdecode(''),'/21101.html','true',[],''],
	['PAGE','21122',jdecode('COMMENT+FORUM'),jdecode(''),'/21122.html','true',[],''],
	['PAGE','5001',jdecode('POSTERS'),jdecode(''),'/5001.html','true',[],''],
	['PAGE','5127',jdecode('NEWS'),jdecode(''),'/5127.html','true',[],''],
	['PAGE','5022',jdecode('EVENTS'),jdecode(''),'/5022.html','true',[],''],
	['PAGE','28501',jdecode('PRESS+STORIES'),jdecode(''),'/28501.html','true',[],''],
	['PAGE','5085',jdecode('TERMS%2BCONDITIONS'),jdecode(''),'/5085.html','true',[],''],
	['PAGE','16443',jdecode('GLOSSARY'),jdecode(''),'/16443.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Madison';
theSitetree.paletteFamily='CD95C1';
theSitetree.keyvisualId='3459';
theSitetree.keyvisualName='kv_3459.jpg';
theSitetree.fontsetId='10699';
theSitetree.graphicsetId='10784';
theSitetree.contentColor='FF0000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Madison',
				paletteFamily: 	'CD95C1',
				keyvisualId: 	'3459',
				keyvisualName: 	'kv_3459.jpg',
				fontsetId: 		'10699',
				graphicsetId: 	'10784',
				contentColor: 	'FF0000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CD95C1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'CD95C1',
				e_color: 		'ACABAB',
				f_color: 		'626161',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20090702-181209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090428-102234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20100104-150814'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20090505-004609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20090425-022329'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20090701-093719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20090630-201413'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20090425-022428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5085',
internalId:  '',
customField: '20090505-004654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20100302-012841'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20090425-022503'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20090425-022517'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9722',
internalId:  '',
customField: '20090425-022530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9743',
internalId:  '',
customField: '20090430-132558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16422',
internalId:  '',
customField: '20090725-233312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16443',
internalId:  '',
customField: '20090429-124447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20090429-155847'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20090504-012248'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20090502-234222'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '21101',
internalId:  'aam010inz5rj120fc66f126',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21122',
internalId:  '',
customField: '20090502-234316'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '21122',
internalId:  'aam010inz5rj120fc677766',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20090506-142308'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20090506-144621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20090725-233342'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20090609-115153'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ5RJ';
var companyName   = 'FIND+LIFE+-+LIVE+LIFE+-+GIVE+LIFE';
var htmlTitle	  = 'www.postthehost.net';
var metaKeywords  = 'Host++Sacrament++Mass++Holy+Communion++Lords+Supper++agape++Body+of+Jesus++Jesus++Life';
var metaContents  = 'Host++Sacrament++Mass++Holy+Communion++Lords+Supper++agape++Body+of+Jesus++Jesus++Life';
					                                                                    
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 */					                                                            
