/* [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','552',jdecode('Home'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','573',jdecode('Pilates'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','13501',jdecode('Pilates+Matwork'),jdecode(''),'/573/13501.html','true',[],'',''],
		['PAGE','13522',jdecode('Pilates+with+Refromer'),jdecode(''),'/573/13522.html','true',[],'',''],
		['PAGE','13543',jdecode('Pilates+with+Stability+Chair'),jdecode(''),'/573/13543.html','true',[],'',''],
		['PAGE','13564',jdecode('Pilates+on+the+Cadillac'),jdecode(''),'/573/13564.html','true',[],'','']
	],'',''],
	['PAGE','594',jdecode('Yoga'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','13585',jdecode('Hatha+Yoga'),jdecode(''),'/594/13585.html','true',[],'',''],
		['PAGE','13606',jdecode('Ashtanga+Yoga'),jdecode(''),'/594/13606.html','true',[],'','']
	],'',''],
	['PAGE','64201',jdecode('Kundalini+Yoga'),jdecode(''),'/64201.html','true',[],'',''],
	['PAGE','92685',jdecode('Laughter+Yoga'),jdecode(''),'/92685.html','true',[],'',''],
	['PAGE','60601',jdecode('Moon+Days'),jdecode(''),'/60601.html','true',[],'',''],
	['PAGE','87785',jdecode('The+FA+Project'),jdecode(''),'/87785.html','true',[],'',''],
	['PAGE','66801',jdecode('Instructors'),jdecode(''),'/66801/index.html','true',[ 
		['PAGE','80885',jdecode('Rob'),jdecode(''),'/66801/80885.html','true',[],'',''],
		['PAGE','81185',jdecode('Paula'),jdecode(''),'/66801/81185.html','true',[],'',''],
		['PAGE','80927',jdecode('Christine'),jdecode(''),'/66801/80927.html','true',[],'',''],
		['PAGE','80906',jdecode('Maria'),jdecode(''),'/66801/80906.html','true',[],'',''],
		['PAGE','80990',jdecode('Georegane'),jdecode(''),'/66801/80990.html','true',[],'',''],
		['PAGE','80969',jdecode('Bobbie'),jdecode(''),'/66801/80969.html','true',[],'',''],
		['PAGE','80948',jdecode('Karen'),jdecode(''),'/66801/80948.html','true',[],'','']
	],'',''],
	['PAGE','21401',jdecode('Schedule'),jdecode(''),'/21401/index.html','true',[ 
		['PAGE','79785',jdecode('Group+Reformer+Classes'),jdecode(''),'/21401/79785.html','true',[],'','']
	],'',''],
	['PAGE','23201',jdecode('Prices'),jdecode(''),'/23201.html','true',[],'',''],
	['PAGE','20101',jdecode('Directions'),jdecode(''),'/20101.html','true',[],'',''],
	['PAGE','12685',jdecode('Trade+publications'),jdecode(''),'/12685.html','true',[],'',''],
	['PAGE','12101',jdecode('News'),jdecode(''),'/12101.html','true',[],'',''],
	['PAGE','76685',jdecode('Labyrinth'),jdecode(''),'/76685.html','true',[],'',''],
	['PAGE','52701',jdecode('Studio+Pictures'),jdecode(''),'/52701.html','true',[],'',''],
	['PAGE','52901',jdecode('My+Trip+Pictures'),jdecode(''),'/52901.html','true',[],'',''],
	['PAGE','21001',jdecode('Guest+Book'),jdecode(''),'/21001.html','true',[],'',''],
	['PAGE','12122',jdecode('Contact'),jdecode(''),'/12122.html','true',[],'',''],
	['PAGE','21022',jdecode('Lets+Chat'),jdecode(''),'/21022.html','true',[],'',''],
	['PAGE','45901',jdecode('Our+Deepest+Fear'),jdecode(''),'/45901.html','true',[],'',''],
	['PAGE','51601',jdecode('Tips+and+tricks'),jdecode(''),'/51601/index.html','true',[ 
		['PAGE','51622',jdecode('Links'),jdecode(''),'/51601/51622.html','true',[],'',''],
		['PAGE','51643',jdecode('Literature'),jdecode(''),'/51601/51643.html','true',[],'',''],
		['PAGE','51664',jdecode('Dictionary'),jdecode(''),'/51601/51664.html','true',[],'','']
	],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='516143';
theSitetree.keyvisualId='2287';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='367';
theSitetree.graphicsetId='420';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='516143';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Steps',
				paletteFamily: 	'516143',
				keyvisualId: 	'2287',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'367',
				graphicsetId: 	'420',
				contentColor: 	'FFFFFF',
				contentBGColor: '516143',
				a_color: 		'516143',
				b_color: 		'657953',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13522',
internalId:  '',
customField: '20081220-164114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13543',
internalId:  '',
customField: '20090105-071101'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '552',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20081220-162552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090706-122853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20100311-130312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20081220-163435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20081223-172136'
};
webappMappings['7008']=webappMappings['7008-417']={
webappId:    '7008',
documentId:  '12122',
internalId:  '417',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13585',
internalId:  '',
customField: '20081223-172208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13606',
internalId:  '',
customField: '20081219-173221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20100207-175250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20100111-070251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12685',
internalId:  '',
customField: '20090116-193130'
};
webappMappings['1002']=webappMappings['1002-21001ahw050in2wz7']={
webappId:    '1002',
documentId:  '21001',
internalId:  '21001ahw050in2wz7',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-ahw050in2wz711e1919592f']={
webappId:    '1003',
documentId:  '21022',
internalId:  'ahw050in2wz711e1919592f',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20081210-200154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20090116-194815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13564',
internalId:  '',
customField: '20081220-165233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100902-082734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21022',
internalId:  '',
customField: '20081215-164256'
};
webappMappings['1501']=webappMappings['1501-3084110']={
webappId:    '1501',
documentId:  '552',
internalId:  '3084110',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20081210-141047'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '20101',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7060']=webappMappings['7060-22da3cf5bd8e1255425c960ee952f2a9']={
webappId:    '7060',
documentId:  '52901',
internalId:  '22da3cf5bd8e1255425c960ee952f2a9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20090120-163902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51601',
internalId:  '',
customField: '20090116-192800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51664',
internalId:  '',
customField: '20090116-192232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51622',
internalId:  '',
customField: '20090116-193350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51643',
internalId:  '',
customField: '20090116-192609'
};
webappMappings['7060']=webappMappings['7060-5f28bf41327f453116f3232d65ee1ed3']={
webappId:    '7060',
documentId:  '52701',
internalId:  '5f28bf41327f453116f3232d65ee1ed3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20090128-092600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60601',
internalId:  '',
customField: '20100902-082821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64201',
internalId:  '',
customField: '20090831-090559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20100123-143857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92685',
internalId:  '',
customField: '20100902-083419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76685',
internalId:  '',
customField: '20100607-101153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79785',
internalId:  '',
customField: '20100123-144832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80885',
internalId:  '',
customField: '20100123-144054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81185',
internalId:  '',
customField: '20100123-144122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80927',
internalId:  '',
customField: '20100123-144143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80906',
internalId:  '',
customField: '20100123-144209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80990',
internalId:  '',
customField: '20100123-144236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80969',
internalId:  '',
customField: '20100123-144303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80948',
internalId:  '',
customField: '20100123-144332'
};
webappMappings['7060']=webappMappings['7060-4089126bf469f116f613baad154e932c']={
webappId:    '7060',
documentId:  '76685',
internalId:  '4089126bf469f116f613baad154e932c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87785',
internalId:  '',
customField: '20100526-065406'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN2WZ7';
var companyName   = 'B++o++d++y++++I++n++++S++y++n++c';
var htmlTitle	  = 'Body+In+Sync+Pilates+and+Yoga+Studio%2C+315+Shirley+Street%2C+Winthrop+Massachusetts+617-359-8433';
var metaKeywords  = 'Pilates++and+Yoga+Studio+Meditation+Boston+Winthrop+Massachusetts+Reformer+Astanga+Ashtanga+Matwork+Stability+Chair+Cadillac+Trapeze+Table+Group+Private+Hatha+Ladder+Barrel+BOSU+Band+Foam+Roller+Fitness+Circle+Weighted+Ball+Rob+Izatt+Relaxation+Yoga+Nidra+Power+Yoga+Training+Classes+Athletic+Conditioning+Jump+Board+Plyometrics+Plyometric';
var metaContents  = 'Providing+you+with+a+comfortable%2C+work+out+environment+to+take+your+Pilates+and+Yoga+practice+to+the+next+level.+We+are+dedicated+to+our+practice%2C+and+to+you.';
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();
};
