/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5974',jdecode('Meet+The+Team'),jdecode(''),'/5974.html','true',[],''],
	['PAGE','12301',jdecode('Training%2FRacing'),jdecode(''),'/12301.html','true',[],''],
	['PAGE','86701',jdecode('Events'),jdecode(''),'/86701/index.html','true',[ 
		['PAGE','87701',jdecode('Staveley+2009'),jdecode(''),'/86701/87701.html','true',[],''],
		['PAGE','64901',jdecode('Staveley+2008'),jdecode(''),'/86701/64901.html','true',[],''],
		['PAGE','87722',jdecode('Arkendale+2009'),jdecode(''),'/86701/87722.html','true',[],''],
		['PAGE','6001',jdecode('Arkendale+2008'),jdecode(''),'/86701/6001.html','true',[],''],
		['PAGE','35201',jdecode('Arkendale+2007'),jdecode(''),'/86701/35201.html','true',[],'']
	],''],
	['PAGE','9301',jdecode('Tips+for+Beginners'),jdecode(''),'/9301.html','true',[],''],
	['PAGE','12701',jdecode('Steve%26%23x27%3Bs+Ironman'),jdecode(''),'/12701.html','true',[],''],
	['PAGE','6109',jdecode('Contact+Us'),jdecode(''),'/6109.html','true',[],''],
	['PAGE','74006',jdecode('Guestbook'),jdecode(''),'/74006/index.html','true',[ 
		['PAGE','74001',jdecode('Read+Guestbook'),jdecode(''),'/74006/74001.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='441';
theSitetree.graphicsetId='493';
theSitetree.contentColor='4D4D4D';
theSitetree.contentBGColor='a1a1c6';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'441',
				graphicsetId: 	'493',
				contentColor: 	'4D4D4D',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100620-225851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87701',
internalId:  '',
customField: '20090614-151507'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5974',
internalId:  '',
customField: '20100619-130438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20100104-215528'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20061203-010713'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64901',
internalId:  '',
customField: '20081129-220309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20080521-214142'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '74006',
internalId:  '74006aam010invbeh',
customField: 'action=form&icq=false'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20071113-225832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74006',
internalId:  '',
customField: '20080521-215018'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74001',
internalId:  '',
customField: '20080521-215018'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '74001',
internalId:  '74006aam010invbeh',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87722',
internalId:  '',
customField: '20090329-222747'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20071110-181527'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6109',
internalId:  '',
customField: '20080521-212620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86701',
internalId:  '',
customField: '20100321-111729'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVBEH';
var companyName   = 'Must+Tri+Harder';
var htmlTitle	  = 'www.musttriharder.net';
var metaKeywords  = 'Triathlon%2CRunning%2CBeginners%2CSteve%2Cwaterfield%2CAlexia%2Crushton-earl%2CWendy%2CDawson%2CMust+Tri+Harder%2Cbeginner%2Carkendale%2C10k%2Crun%2Ctri%2Crace%2Cget+fit%2Csport%2Ccycle%2Ccycling%2Cswimming%2Cswim%2Cmust%2Ctry%2Charder%2Csporting+events%2Cevent+';
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 */					                                                            
