/* [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','1501',jdecode('Home'),jdecode(''),'/1501.html','true',[],'',''],
	['PAGE','3901',jdecode('Physical+Therapy'),jdecode(''),'/3901/index.html','true',[ 
		['PAGE','4201',jdecode('Disorders+We+Treat'),jdecode(''),'/3901/4201.html','true',[],'',''],
		['PAGE','4243',jdecode('Rehabilitation'),jdecode(''),'/3901/4243.html','true',[],'',''],
		['PAGE','6301',jdecode('Modalities'),jdecode(''),'/3901/6301.html','true',[],'',''],
		['PAGE','9801',jdecode('Therapuetic+Exercise'),jdecode(''),'/3901/9801.html','true',[],'',''],
		['PAGE','9822',jdecode('Sports+Therapy+Programs'),jdecode(''),'/3901/9822.html','true',[],'','']
	],'',''],
	['PAGE','4222',jdecode('Massage+Therapy'),jdecode(''),'/4222/index.html','true',[ 
		['PAGE','12901',jdecode('Services+Available'),jdecode(''),'/4222/12901.html','true',[],'',''],
		['PAGE','15801',jdecode('Massage+Specials'),jdecode(''),'/4222/15801.html','true',[],'','']
	],'',''],
	['PAGE','25801',jdecode('Flower+Essences'),jdecode(''),'/25801.html','true',[],'',''],
	['PAGE','6322',jdecode('Articles'),jdecode(''),'/6322/index.html','true',[ 
		['PAGE','6701',jdecode('Pain%3F+Don%26%23x27%3Bt+forget+about+the+Fascia'),jdecode(''),'/6322/6701.html','true',[],'',''],
		['PAGE','26601',jdecode('The+Girl+who+has+Something+to+Cheer+About'),jdecode(''),'/6322/26601.html','true',[],'',''],
		['PAGE','6722',jdecode('Pain+-+In+your+Body+or+in+your+Head'),jdecode(''),'/6322/6722.html','true',[],'',''],
		['PAGE','6743',jdecode('Fibromyalgia'),jdecode(''),'/6322/6743.html','true',[],'',''],
		['PAGE','6764',jdecode('What+is+Myofascial+Release%3F'),jdecode(''),'/6322/6764.html','true',[],'',''],
		['PAGE','6785',jdecode('Myofascial+Release+in+Acute+and+Sport+Medicine'),jdecode(''),'/6322/6785.html','true',[],'',''],
		['PAGE','6806',jdecode('Female+Problems'),jdecode(''),'/6322/6806.html','true',[],'',''],
		['PAGE','8301',jdecode('Not+Tonight+Dear%2C+I+have+a+Headache'),jdecode(''),'/6322/8301.html','true',[],'',''],
		['PAGE','8701',jdecode('Stop+putting+up+with+Pain%21'),jdecode(''),'/6322/8701.html','true',[],'',''],
		['PAGE','8722',jdecode('Without+Awareness+there+is+No+Choice%21'),jdecode(''),'/6322/8722.html','true',[],'','']
	],'',''],
	['PAGE','4285',jdecode('Health+Tips'),jdecode(''),'/4285.html','true',[],'',''],
	['PAGE','4306',jdecode('Interesting+Links'),jdecode(''),'/4306.html','true',[],'',''],
	['PAGE','4327',jdecode('Contact+Us'),jdecode(''),'/4327.html','true',[],'',''],
	['PAGE','4348',jdecode('About+our+Team'),jdecode(''),'/4348/index.html','true',[ 
		['PAGE','4390',jdecode('Karlene+Cantrell+R.P.T.'),jdecode(''),'/4348/4390.html','true',[],'',''],
		['PAGE','25001',jdecode('Julie+Supple+MA%2C+LCSW'),jdecode(''),'/4348/25001.html','true',[],'',''],
		['PAGE','12922',jdecode('Dana+LaMere+C.M.T.'),jdecode(''),'/4348/12922.html','true',[],'',''],
		['PAGE','12943',jdecode('Joyce+Stage+C.M.T.'),jdecode(''),'/4348/12943.html','true',[],'',''],
		['PAGE','24401',jdecode('Dolores+Diaz+C.M.T.+'),jdecode(''),'/4348/24401.html','true',[],'','']
	],'',''],
	['PAGE','22101',jdecode('Testimonials'),jdecode(''),'/22101.html','true',[],'',''],
	['PAGE','9301',jdecode('Insurance'),jdecode(''),'/9301.html','true',[],'',''],
	['PAGE','4264',jdecode('Business+Hours'),jdecode(''),'/4264.html','true',[],'',''],
	['PAGE','4369',jdecode('How+to+find+us'),jdecode(''),'/4369.html','true',[],'',''],
	['PAGE','24422',jdecode('About+us'),jdecode(''),'/24422/index.html','true',[ 
		['PAGE','24443',jdecode('The+team'),jdecode(''),'/24422/24443.html','true',[],'','']
	],'',''],
	['PAGE','34806',jdecode('Guestbook'),jdecode(''),'/34806/index.html','true',[ 
		['PAGE','34801',jdecode('Read+Guestbook'),jdecode(''),'/34806/34801.html','false',[],'','']
	],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6857';
theSitetree.keyvisualName='kv_6857.jpg';
theSitetree.fontsetId='11211';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6857',
				keyvisualName: 	'kv_6857.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				a_color: 		'94AAE1',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-754242']={
webappId:    '1501',
documentId:  '1501',
internalId:  '754242',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20061206-121527'
};
webappMappings['1002']=webappMappings['1002-34806AHW050INE06U']={
webappId:    '1002',
documentId:  '34806',
internalId:  '34806AHW050INE06U',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1501',
internalId:  '',
customField: '20090723-111325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20061206-121534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4243',
internalId:  '',
customField: '20061206-131400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20071015-121326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20061127-232236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20061206-110209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20061206-120354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20071015-121158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100610-100947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20070919-150851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20061206-112012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20090723-112309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20070924-113013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20090723-112528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6743',
internalId:  '',
customField: '20090723-112938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6764',
internalId:  '',
customField: '20090723-113032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6785',
internalId:  '',
customField: '20090723-113348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6806',
internalId:  '',
customField: '20090723-113423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20090723-113545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20090723-113621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8722',
internalId:  '',
customField: '20090723-113746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4285',
internalId:  '',
customField: '20061206-121644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4306',
internalId:  '',
customField: '20061220-143300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4327',
internalId:  '',
customField: '20090723-113918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4348',
internalId:  '',
customField: '20071017-111108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4390',
internalId:  '',
customField: '20071017-134207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20081104-113143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12922',
internalId:  '',
customField: '20100430-113348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12943',
internalId:  '',
customField: '20061206-122937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20071017-115327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20081104-105657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20090723-114342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20090723-114440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4369',
internalId:  '',
customField: '20090723-122302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24422',
internalId:  '',
customField: '20090723-111525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24443',
internalId:  '',
customField: '20070919-141455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34806',
internalId:  '',
customField: '20071126-134729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20071126-134729'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE06U';
var companyName   = 'Earthworks+Center';
var htmlTitle	  = '';
var metaKeywords  = 'Physical+Therapy++Merrillville%2C+Indiana++Myofascial+Release++MFR++Cranial+Sacral++Massage+therapy++migraines++TMJ++chronic+pain+';
var metaContents  = 'We+offier+physical+therapy+in+Merrillville+Indiana%2C+specializing+in+Myofascial+Release.';
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();
};

