/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','601',jdecode('Home'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','652',jdecode('About+us'),jdecode(''), jdecode('%2F652%2Findex.html'), 'true',[ 
		['PAGE','673',jdecode('History'),jdecode(''), jdecode('%2F652%2F673.html'), 'true',[],'',''],
		['PAGE','694',jdecode('Board+of+Directors'),jdecode(''), jdecode('%2F652%2F694.html'), 'true',[],'',''],
		['PAGE','715',jdecode('Key+Club+Contacts'),jdecode(''), jdecode('%2F652%2F715.html'), 'true',[],'',''],
		['PAGE','736',jdecode('Club+Founders'),jdecode(''), jdecode('%2F652%2F736.html'), 'true',[],'',''],
		['PAGE','757',jdecode('Our+By-Laws'),jdecode(''), jdecode('%2F652%2F757.html'), 'true',[],'',''],
		['PAGE','1135',jdecode('Contact+Directory'),jdecode(''), jdecode('%2F652%2F1135.html'), 'true',[],'','']
	],'',''],
	['PAGE','799',jdecode('Membership'),jdecode(''), jdecode('%2F799%2Findex.html'), 'true',[ 
		['PAGE','862',jdecode('Join+now%21'),jdecode(''), jdecode('%2F799%2F862.html'), 'true',[],'',''],
		['PAGE','16901',jdecode('Member+Meetings'),jdecode(''), jdecode('%2F799%2F16901.html'), 'true',[],'',''],
		['PAGE','820',jdecode('Benefits'),jdecode(''), jdecode('%2F799%2F820.html'), 'true',[],'','']
	],'',''],
	['PAGE','54001',jdecode('Training'),jdecode(''), jdecode('%2F54001.html'), 'true',[],'',''],
	['PAGE','43201',jdecode('Race'),jdecode(''), jdecode('%2F43201.html'), 'true',[],'',''],
	['PAGE','967',jdecode('Club+News+%26+Events'),jdecode(''), jdecode('%2F967%2Findex.html'), 'true',[ 
		['PAGE','988',jdecode('Hair+of+the+Dog'),jdecode(''), jdecode('%2F967%2F988.html'), 'true',[],'',''],
		['PAGE','1009',jdecode('St.+Anthony%26%23x27%3Bs+Triathlon'),jdecode(''), jdecode('%2F967%2F1009.html'), 'true',[],'',''],
		['PAGE','1093',jdecode('Mad+Beach+Triathlon'),jdecode(''), jdecode('%2F967%2F1093.html'), 'true',[],'',''],
		['PAGE','1030',jdecode('Luau'),jdecode(''), jdecode('%2F967%2F1030.html'), 'true',[],'',''],
		['PAGE','50101',jdecode('GFT+Waterstop'),jdecode(''), jdecode('%2F967%2F50101.html'), 'true',[],'',''],
		['PAGE','1051',jdecode('Anniversary+Party'),jdecode(''), jdecode('%2F967%2F1051.html'), 'true',[],'',''],
		['PAGE','1072',jdecode('Christmas+Party'),jdecode(''), jdecode('%2F967%2F1072.html'), 'true',[],'',''],
		['PAGE','53701',jdecode('Ironman+70.3+Lottery%2F+Party+'),jdecode(''), jdecode('%2F967%2F53701.html'), 'true',[],'',''],
		['PAGE','1114',jdecode('Sponsor+Packet'),jdecode(''), jdecode('%2F967%2F1114.html'), 'true',[],'','']
	],'',''],
	['PAGE','21501',jdecode('Wed+Night+Swim%2FRun%2FSocial'),jdecode(''), jdecode('%2F21501.html'), 'true',[],'',''],
	['PAGE','39801',jdecode('Photographs'),jdecode(''), jdecode('%2F39801%2Findex.html'), 'true',[ 
		['PAGE','61601',jdecode('2008+Mad+Beach+Triathlon'),jdecode(''), jdecode('%2F39801%2F61601.html'), 'true',[],'',''],
		['PAGE','39701',jdecode('2008+Luau'),jdecode(''), jdecode('%2F39801%2F39701.html'), 'true',[],'',''],
		['PAGE','75301',jdecode('Hair+of+the+Dog+2009'),jdecode(''), jdecode('%2F39801%2F75301.html'), 'true',[],'','']
	],'',''],
	['PAGE','1156',jdecode('Newsletter'),jdecode(''), jdecode('%2F1156%2Findex.html'), 'true',[ 
		['PAGE','1177',jdecode('Current+Edition'),jdecode(''), jdecode('%2F1156%2F1177.html'), 'true',[],'',''],
		['PAGE','1198',jdecode('Past+Newsletter+Editions'),jdecode(''), jdecode('%2F1156%2F1198.html'), 'true',[],'',''],
		['PAGE','1219',jdecode('Submission+Guidelines'),jdecode(''), jdecode('%2F1156%2F1219.html'), 'true',[],'',''],
		['PAGE','1240',jdecode('Advertising'),jdecode(''), jdecode('%2F1156%2F1240.html'), 'true',[],'','']
	],'',''],
	['PAGE','904',jdecode('Pro+Mad+Dog+Links'),jdecode(''), jdecode('%2F904.html'), 'true',[],'',''],
	['PAGE','12522',jdecode('Merchandise'),jdecode(''), jdecode('%2F12522%2Findex.html'), 'true',[ 
		['PAGE','12585',jdecode('Suggest+a+New+Item'),jdecode(''), jdecode('%2F12522%2F12585.html'), 'true',[],'','']
	],'',''],
	['PAGE','1261',jdecode('Volunteer+Opportunities'),jdecode(''), jdecode('%2F1261.html'), 'true',[],'',''],
	['PAGE','1345',jdecode('Links+%2F+Partners'),jdecode(''), jdecode('%2F1345.html'), 'true',[],'',''],
	['PAGE','64301',jdecode('Social+Networking+Sites'),jdecode(''), jdecode('%2F64301.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='A43F21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='182';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'aplus',
  product: 'WSCSYSSSSLYTCPLI'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'A43F21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'182',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'A43F21',
				b_color: 		'E76E3E',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-8bd3d9d866da8792113fab18e75af9d7']={
webappId:    '7060',
documentId:  '39701',
internalId:  '8bd3d9d866da8792113fab18e75af9d7',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-cf42f183fa8489b90220cc636f99025c']={
webappId:    '7060',
documentId:  '75301',
internalId:  'cf42f183fa8489b90220cc636f99025c',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0bf6c147f0bf61cedef90021a8ac5968']={
webappId:    '7060',
documentId:  '61601',
internalId:  '0bf6c147f0bf61cedef90021a8ac5968',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20120129-133004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20100911-184533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20081201-154943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20111211-230316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20091105-045400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20081018-090441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20081019-111809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1135',
internalId:  '',
customField: '20080925-080218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20081018-075201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20100121-145439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20090109-111455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20080924-200013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20101031-083245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20101031-083851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '967',
internalId:  '',
customField: '20101205-044006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '988',
internalId:  '',
customField: '20111226-120108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1009',
internalId:  '',
customField: '20100911-185255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1093',
internalId:  '',
customField: '20111226-120157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1030',
internalId:  '',
customField: '20110801-211918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20101031-084307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1051',
internalId:  '',
customField: '20101031-084434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1072',
internalId:  '',
customField: '20111124-173823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20100109-054524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1114',
internalId:  '',
customField: '20090601-184703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20110309-075413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39801',
internalId:  '',
customField: '20111227-174508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61601',
internalId:  '',
customField: '20081105-135714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20080925-120221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75301',
internalId:  '',
customField: '20090102-125802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1156',
internalId:  '',
customField: '20111027-085044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1177',
internalId:  '',
customField: '20120129-133155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1198',
internalId:  '',
customField: '20120129-133303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1219',
internalId:  '',
customField: '20080924-200441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1240',
internalId:  '',
customField: '20081007-164635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '904',
internalId:  '',
customField: '20101031-085559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12522',
internalId:  '',
customField: '20100110-111944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12585',
internalId:  '',
customField: '20080911-182310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1261',
internalId:  '',
customField: '20090601-190013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1345',
internalId:  '',
customField: '20110802-072631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20100923-165540'
};
var webAppHostname = 'cm4all.aplus.net:80';
var canonHostname = 'cm4all01.carrierzone.com';
var accountId     = 'AAPLU0INZ9VD';
var companyName   = 'St.+Pete+MAD+DOGS+Triathlon+Club';
var htmlTitle	  = 'St.+Pete+MAD+DOGS';
var metaKeywords  = 'Triathlon%2C+running%2C+biking%2C+swimming%2C+tri%2C+tri+club%2C+triathlete%2C+Triathlon+Club%2C+cycling%2C+training';
var metaContents  = 'The+St.+Pete+MAD+DOGS+are+one+of+the+largest+pure+triathlon+clubs+in+the+United+States+of+America.+Located+in+beautiful+Tampa+Bay%2C+Florida%2C+our+club+is+comprised+of+fun-loving+triathletes+who+train%2C+race+and+howl+together%21';
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;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

