/* [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','701',jdecode('Home'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','6801',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/701/6801.html','false',[],'',''],
		['PAGE','49916',jdecode('About+our+Clinic'),jdecode(''),'/701/49916.html','true',[],'',''],
		['PAGE','43226',jdecode('Our+Services'),jdecode(''),'/701/43226.html','true',[],'',''],
		['PAGE','47500',jdecode('Thought+of+the+month'),jdecode(''),'/701/47500.html','true',[],'','']
	],'',''],
	['PAGE','46758',jdecode('What+can+we+help%3F'),jdecode(''),'/46758/index.html','true',[ 
		['PAGE','49583',jdecode('Aches+and+Pains'),jdecode(''),'/46758/49583.html','true',[],'',''],
		['PAGE','49592',jdecode('Arthritis'),jdecode(''),'/46758/49592.html','true',[],'',''],
		['PAGE','49610',jdecode('Headaches'),jdecode(''),'/46758/49610.html','true',[],'',''],
		['PAGE','49574',jdecode('Allergies'),jdecode(''),'/46758/49574.html','true',[],'',''],
		['PAGE','49601',jdecode('ADD'),jdecode(''),'/46758/49601.html','true',[],'',''],
		['PAGE','49619',jdecode('Weight+Problems'),jdecode(''),'/46758/49619.html','true',[],'',''],
		['PAGE','49628',jdecode('Infertility'),jdecode(''),'/46758/49628.html','true',[],'',''],
		['PAGE','49637',jdecode('and+more...'),jdecode(''),'/46758/49637.html','true',[],'','']
	],'',''],
	['PAGE','47127',jdecode('Treatments'),jdecode(''),'/47127/index.html','true',[ 
		['PAGE','46928',jdecode('BioFeedback'),jdecode(''),'/47127/46928.html','true',[],'',''],
		['PAGE','43337',jdecode('Weight+Management'),jdecode(''),'/47127/43337.html','true',[],'',''],
		['PAGE','46582',jdecode('Hormone+Balancing'),jdecode(''),'/47127/46582.html','true',[],'',''],
		['PAGE','43355',jdecode('Detoxification'),jdecode(''),'/47127/43355.html','true',[],'',''],
		['PAGE','1088',jdecode('Nutrition'),jdecode(''),'/47127/1088.html','true',[],'',''],
		['PAGE','46767',jdecode('Homeopathy'),jdecode(''),'/47127/46767.html','true',[],'',''],
		['PAGE','815',jdecode('Chiropractic'),jdecode(''),'/47127/815.html','true',[],'',''],
		['PAGE','7201',jdecode('What+is+Chiropractic%3F+%28follow+up+page%29'),jdecode(''),'/47127/7201.html','false',[],'',''],
		['PAGE','43364',jdecode('Laser+and+Decompression'),jdecode(''),'/47127/43364.html','true',[],'',''],
		['PAGE','43373',jdecode('Massage+Therapy'),jdecode(''),'/47127/43373.html','true',[],'',''],
		['PAGE','49763',jdecode('Exercise'),jdecode(''),'/47127/49763.html','true',[],'',''],
		['PAGE','43382',jdecode('Natural+Products'),jdecode(''),'/47127/43382.html','true',[],'','']
	],'',''],
	['PAGE','49300',jdecode('Meet+the+Staff'),jdecode(''),'/49300/index.html','true',[ 
		['PAGE','49264',jdecode('Doctor+Larson'),jdecode(''),'/49300/49264.html','true',[],'',''],
		['PAGE','46665',jdecode('Massage+Therapist'),jdecode(''),'/49300/46665.html','true',[],'',''],
		['PAGE','49309',jdecode('Biofeedback+Technician'),jdecode(''),'/49300/49309.html','true',[],'','']
	],'',''],
	['PAGE','49255',jdecode('Hours+and+Location'),jdecode(''),'/49255.html','true',[],'',''],
	['PAGE','49512',jdecode('Health+Tips'),jdecode(''),'/49512.html','true',[],'',''],
	['PAGE','49246',jdecode('FAQ'),jdecode(''),'/49246/index.html','true',[ 
		['PAGE','1109',jdecode('Insurance+and+Affordability'),jdecode(''),'/49246/1109.html','true',[],'',''],
		['PAGE','49925',jdecode('What+to+Expect+on+your+visit'),jdecode(''),'/49246/49925.html','true',[],'',''],
		['PAGE','9401',jdecode('Community+Workshops+%28follow+up+page%29'),jdecode(''),'/49246/9401.html','false',[],'',''],
		['PAGE','878',jdecode('Research'),jdecode(''),'/49246/878.html','true',[],'',''],
		['PAGE','794',jdecode('Community+Events'),jdecode(''),'/49246/794.html','true',[],'','']
	],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10571';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10571',
				graphicsetId: 	'10771',
				contentColor: 	'000000',
				contentBGColor: 'F0F2F4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-7774']={
webappId:    '7008',
documentId:  '815',
internalId:  '7774',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7775']={
webappId:    '7008',
documentId:  '794',
internalId:  '7775',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20091127-152949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43226',
internalId:  '',
customField: '20091127-175208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46758',
internalId:  '',
customField: '20091130-162822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47127',
internalId:  '',
customField: '20091127-174326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43382',
internalId:  '',
customField: '20081113-200100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43337',
internalId:  '',
customField: '20100430-160733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46928',
internalId:  '',
customField: '20081111-180632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46582',
internalId:  '',
customField: '20090521-171207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43355',
internalId:  '',
customField: '20091125-175140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1088',
internalId:  '',
customField: '20081113-174420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46767',
internalId:  '',
customField: '20080911-192742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20081113-175409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43373',
internalId:  '',
customField: '20091130-161518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43364',
internalId:  '',
customField: '20091127-151425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20091127-125415'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '49255',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46665',
internalId:  '',
customField: '20091125-144925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20070321-144552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20070321-151323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20090521-160053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20070321-170640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1109',
internalId:  '',
customField: '20091127-133239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49264',
internalId:  '',
customField: '20091130-160106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47500',
internalId:  '',
customField: '20091127-180550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49255',
internalId:  '',
customField: '20091125-143813'
};
webappMappings['7060']=webappMappings['7060-316bbaa34f0b1fa657a034db22d919a8']={
webappId:    '7060',
documentId:  '49300',
internalId:  '316bbaa34f0b1fa657a034db22d919a8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49300',
internalId:  '',
customField: '20091127-124437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49246',
internalId:  '',
customField: '20091130-170007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49309',
internalId:  '',
customField: '20091125-145335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49583',
internalId:  '',
customField: '20091125-153720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49592',
internalId:  '',
customField: '20091125-154113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49610',
internalId:  '',
customField: '20091125-155145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49601',
internalId:  '',
customField: '20091125-154214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49619',
internalId:  '',
customField: '20091125-155538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49574',
internalId:  '',
customField: '20091125-160046'
};
webappMappings['7008']=webappMappings['7008-7773']={
webappId:    '7008',
documentId:  '701',
internalId:  '7773',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49512',
internalId:  '',
customField: '20091125-160856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49763',
internalId:  '',
customField: '20091130-165654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49925',
internalId:  '',
customField: '20091127-140824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49628',
internalId:  '',
customField: '20091130-164017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49637',
internalId:  '',
customField: '20091130-163254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49916',
internalId:  '',
customField: '20091127-163743'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INENGC';
var companyName   = 'Choose+Wellness+for+Life%21';
var htmlTitle	  = 'Proactive+Chiropractic%3A+A+Riverton+%2F+Herriman%2C+Utah%2C+Health+and+Wellness+Clinic';
var metaKeywords  = 'Chiropractor%2C+Riverton%2C+Herriman%2C+Utah%2C+back+pain%2C+headaches%2C+spinal+decompression%2C+rehabilitation%2C+Proactive+Chiropractic%2C+health%2C+fitness%2C+nutrition%2C+wellness%2C+chiropractic%2C+doctor%2C+Pettibon%2C+adjustment%2C+whiplash%2C+scoliosis%2C+sciatica%2C+allergies%2C+infertility%2C+bio-feedback%2C+Dr.+Larson%2C+HCG%2C+Weight+management%2C+weight-loss%2C+body+wrap%2C+detox%2C+exercise%2C+medicine%2C+preventative%2C+healthcare%2C+asthma%2C+fibromyalgia%2C+holistic%2C+alternative';
var metaContents  = 'A+healthcare+clinic+providing+diverse+all-natural+treatments+for+head-ache%2C+back+pain%2C+sciatica%2C+asthma+and+allergies%2C+infertility%2C+weight-loss+and+more.+We+offer+chiropractic%2C+decompression%2C+massage%2Cbio-feedback%2C+nutrition%2C+weight+management+and+exercise+programs%2C+detoxification+and+more.+We+address+the+physical%2C+emotional+and+chemical+sources+of+disease+and+create+a+state+of+balance+and+wellness.';
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();
};

