/* [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','10801',jdecode('Home'),jdecode(''),'/10801.html','true',[],'',''],
	['PAGE','21101',jdecode('What+perople+are+saying'),jdecode(''),'/21101.html','true',[],'',''],
	['PAGE','20301',jdecode('Programs'),jdecode(''),'/20301.html','true',[],'',''],
	['PAGE','26412',jdecode('Acton+%26+Boylston+members'),jdecode(''),'/26412.html','true',[],'',''],
	['PAGE','20601',jdecode('Personal+Training'),jdecode(''),'/20601.html','true',[],'',''],
	['PAGE','21185',jdecode('Group+Personal+Training'),jdecode(''),'/21185.html','true',[],'',''],
	['PAGE','21164',jdecode('Wellness+Coaching'),jdecode(''),'/21164.html','true',[],'',''],
	['PAGE','21122',jdecode('Corporate+Wellness+'),jdecode(''),'/21122.html','true',[],'',''],
	['PAGE','21143',jdecode('Mixed+Martial+Arts+Conditioning'),jdecode(''),'/21143.html','true',[],'',''],
	['PAGE','32112',jdecode('Practical+Fitness+Blog'),jdecode(''),'/32112.html','true',[],'',''],
	['PAGE','11101',jdecode('About+us'),jdecode(''),'/11101/index.html','true',[ 
		['PAGE','11122',jdecode('The+studio'),jdecode(''),'/11101/11122.html','true',[],'',''],
		['PAGE','11143',jdecode('Our+team'),jdecode(''),'/11101/11143.html','true',[],'','']
	],'',''],
	['PAGE','11164',jdecode('Contact'),jdecode(''),'/11164.html','true',[],'',''],
	['PAGE','32212',jdecode('What+class+will+you+join%3F'),jdecode(''),'/32212.html','true',[],'',''],
	['PAGE','32312',jdecode('Location'),jdecode(''),'/32312.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20100625-120955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20100630-203928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11143',
internalId:  '',
customField: '20100427-214339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11122',
internalId:  '',
customField: '20100630-184317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11164',
internalId:  '',
customField: '20100630-204018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20100511-175755'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100625-225050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20100617-200034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21185',
internalId:  '',
customField: '20100428-103756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21143',
internalId:  '',
customField: '20100504-175911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21164',
internalId:  '',
customField: '20100511-172825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21122',
internalId:  '',
customField: '20100428-100035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26412',
internalId:  '',
customField: '20100505-131641'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '10801',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-7714395']={
webappId:    '1501',
documentId:  '10801',
internalId:  '7714395',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-2866']={
webappId:    '7050',
documentId:  '32112',
internalId:  '2866',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32112',
internalId:  '',
customField: '20100717-084051'
};
webappMappings['7008']=webappMappings['7008-8796']={
webappId:    '7008',
documentId:  '32212',
internalId:  '8796',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32212',
internalId:  '',
customField: '20100717-083654'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '32312',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32312',
internalId:  '',
customField: '20100706-223014'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZG27';
var companyName   = 'Personal+Triumph+Fitness+%26+Wellness+';
var htmlTitle	  = 'Personal+Training+Acton';
var metaKeywords  = 'personal+training+Acton%2C+Nagog++Personal+Triumph+Littleton%2C+MA++personal+trainer+wellness+coach++weight+loss';
var metaContents  = 'personal+training+Nagog+Acton+-+Personal+Triumph+personal+trainer+-+Personal+Triumph++weight+loss';
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();
};
