/* [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','301',jdecode('HOME'),jdecode(''),'/301/index.html','true',[ 
		['PAGE','394',jdecode('STAFF'),jdecode(''),'/301/394.html','true',[],'',''],
		['PAGE','15001',jdecode('EDGE+FORUM'),jdecode(''),'/301/15001.html','false',[],'',''],
		['PAGE','10706',jdecode('GUESTBOOK'),jdecode(''),'/301/10706.html','true',[],'',''],
		['PAGE','86501',jdecode('EDGE+PICS'),jdecode(''),'/301/86501.html','true',[],'',''],
		['PAGE','415',jdecode('CONTACT+US'),jdecode(''),'/301/415.html','true',[],'',''],
		['PAGE','89501',jdecode('LOCATION'),jdecode(''),'/301/89501.html','false',[],'','']
	],'',''],
	['PAGE','5001',jdecode('SERVICES'),jdecode(''),'/5001/index.html','true',[ 
		['PAGE','5022',jdecode('ATHLETE+'),jdecode(''),'/5001/5022.html','true',[],'',''],
		['PAGE','5043',jdecode('1+on+1%2FGROUP'),jdecode(''),'/5001/5043.html','true',[],'',''],
		['PAGE','5064',jdecode('MEMBERSHIP'),jdecode(''),'/5001/5064.html','true',[],'',''],
		['PAGE','80701',jdecode('DIET+DOC'),jdecode(''),'/5001/80701.html','true',[],'','']
	],'',''],
	['PAGE','7601',jdecode('THE+FACILITY'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','92701',jdecode('TUMBLIN+4+KIDS'),jdecode(''),'/92701.html','false',[],'',''],
	['PAGE','16401',jdecode('TESTIMONIALS'),jdecode(''),'/16401.html','true',[],'',''],
	['PAGE','90201',jdecode('HALL+OF+FAME'),jdecode(''),'/90201/index.html','true',[ 
		['PAGE','87301',jdecode('RECORDS'),jdecode(''),'/90201/87301.html','true',[],'','']
	],'',''],
	['PAGE','13401',jdecode('LINKS'),jdecode(''),'/13401.html','true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Explore';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10431';
theSitetree.graphicsetId='10770';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Explore',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10431',
				graphicsetId: 	'10770',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-8']={
webappId:    '7008',
documentId:  '415',
internalId:  '8',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-10706aendu0inxprb']={
webappId:    '1002',
documentId:  '10706',
internalId:  '10706aendu0inxprb',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20110218-145648'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '89501',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7060']=webappMappings['7060-e12a22eb883906338e8a480b9935b195']={
webappId:    '7060',
documentId:  '86501',
internalId:  'e12a22eb883906338e8a480b9935b195',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-aendu0inxprb1178825a1d3']={
webappId:    '1003',
documentId:  '15001',
internalId:  'aendu0inxprb1178825a1d3',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20100504-090657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100517-111815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20100504-092506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20100504-092525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20100504-092543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20100504-134611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100504-090542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87301',
internalId:  '',
customField: '20100517-110537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20100506-140832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80701',
internalId:  '',
customField: '20100504-092627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100427-094550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100427-124154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10706',
internalId:  '',
customField: '20100427-131427'
};
webappMappings['7060']=webappMappings['7060-f00c06bd55231590dce1887b22deb65f']={
webappId:    '7060',
documentId:  '7601',
internalId:  'f00c06bd55231590dce1887b22deb65f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86501',
internalId:  '',
customField: '20100505-183328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89501',
internalId:  '',
customField: '20100506-141504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90201',
internalId:  '',
customField: '20100518-081925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92701',
internalId:  '',
customField: '20110218-151510'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INXPRB';
var companyName   = 'TEAM+EDGE';
var htmlTitle	  = 'Team+Edge+Performance+and+Fitness';
var metaKeywords  = 'Team+Edge%2C+The+Edge+atheltic+and+Fitness%2C+Teamedge%2C+Edge%2C+The+Edge%2C+New+Albany+Gym%2C+Edge%2C+Athlete+Training';
var metaContents  = 'Team+Edge+is+now+setup+for+every+need+in+the+world+of+training.+Including+Athlete+training%2C+Personal+one+on+one+or+group+training+and+gym+memberships+are+now+available.';
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();
};

