/* [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 theSitetree=[ 
	['PAGE','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','38004',jdecode('Dr+Frank'),jdecode(''),'/752/38004.html','true',[],''],
		['PAGE','38013',jdecode('Dr+Kendra'),jdecode(''),'/752/38013.html','true',[],''],
		['PAGE','38022',jdecode('Dr+Jessica'),jdecode(''),'/752/38022.html','true',[],''],
		['PAGE','37855',jdecode('Jennifer+LMT'),jdecode(''),'/752/37855.html','true',[],''],
		['PAGE','38078',jdecode('Staff+Hours'),jdecode(''),'/752/38078.html','true',[],'']
	],''],
	['PAGE','27001',jdecode('Chiropractic'),jdecode(''),'/27001/index.html','true',[ 
		['PAGE','27022',jdecode('Pregnancy+Care'),jdecode(''),'/27001/27022.html','true',[],''],
		['PAGE','27043',jdecode('Pregenancy+%26+Pain'),jdecode(''),'/27001/27043.html','true',[],''],
		['PAGE','27064',jdecode('Infants+%26+Children'),jdecode(''),'/27001/27064.html','true',[],'']
	],''],
	['PAGE','773',jdecode('Wellness+Care'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','24001',jdecode('Children'),jdecode(''),'/773/24001.html','true',[],''],
		['PAGE','24022',jdecode('Pregnancy'),jdecode(''),'/773/24022.html','true',[],'']
	],''],
	['PAGE','815',jdecode('Graston+Technique'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','30222',jdecode('Graston+Q+%26+A'),jdecode(''),'/815/30222.html','true',[],'']
	],''],
	['PAGE','794',jdecode('Natural+Medicine'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','24043',jdecode('Homeopathy'),jdecode(''),'/794/24043.html','true',[],''],
		['PAGE','6706',jdecode('Pre-Conception'),jdecode(''),'/794/6706.html','true',[],'']
	],''],
	['PAGE','29301',jdecode('Holistic++Pediatrician'),jdecode(''),'/29301.html','true',[],''],
	['PAGE','6643',jdecode('Massage'),jdecode(''),'/6643/index.html','true',[ 
		['PAGE','11801',jdecode('Massage+Prices'),jdecode(''),'/6643/11801.html','true',[],'']
	],''],
	['PAGE','6622',jdecode('Products+We+Sell'),jdecode(''),'/6622.html','true',[],''],
	['PAGE','6601',jdecode('Our+Publications'),jdecode(''),'/6601.html','true',[],''],
	['PAGE','6664',jdecode('Talks+and+Classes'),jdecode(''),'/6664.html','true',[],''],
	['PAGE','6685',jdecode('Links'),jdecode(''),'/6685.html','true',[],''],
	['PAGE','6727',jdecode('Contact+us'),jdecode(''),'/6727/index.html','true',[ 
		['PAGE','6748',jdecode('Appointment+'),jdecode(''),'/6727/6748.html','true',[],'']
	],''],
	['PAGE','12606',jdecode('Guestbook'),jdecode(''),'/12606/index.html','true',[ 
		['PAGE','12601',jdecode('Read+Guestbook'),jdecode(''),'/12606/12601.html','false',[],'']
	],''],
	['PAGE','11001',jdecode('Patient+Feedback'),jdecode(''),'/11001/index.html','true',[ 
		['PAGE','24064',jdecode('Groups'),jdecode(''),'/11001/24064.html','true',[],'']
	],''],
	['PAGE','36864',jdecode('Map'),jdecode(''),'/36864/index.html','true',[ 
		['PAGE','15601',jdecode('Locations'),jdecode(''),'/36864/15601.html','true',[],'']
	],''],
	['PAGE','37175',jdecode('Interesting+Articles'),jdecode(''),'/37175.html','true',[],''],
	['PAGE','37516',jdecode('News'),jdecode(''),'/37516.html','true',[],''],
	['PAGE','37341',jdecode('For+Members+Only'),jdecode(''),'/37341.html','true',[],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='B650B7';
theSitetree.keyvisualId='5832';
theSitetree.keyvisualName='kv_5832.jpg';
theSitetree.fontsetId='11095';
theSitetree.graphicsetId='11870';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'B650B7',
				keyvisualId: 	'5832',
				keyvisualName: 	'kv_5832.jpg',
				fontsetId: 		'11095',
				graphicsetId: 	'11870',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090419-091845'
};
webappMappings['1002']=webappMappings['1002-12606AHW050INEUQZ']={
webappId:    '1002',
documentId:  '12606',
internalId:  '12606AHW050INEUQZ',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-1143639']={
webappId:    '1501',
documentId:  '701',
internalId:  '1143639',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080904-130929'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '36864',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20081117-065902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20080216-115231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24022',
internalId:  '',
customField: '20080216-200749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20080216-215138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27022',
internalId:  '',
customField: '20080216-200340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27043',
internalId:  '',
customField: '20080216-200503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27064',
internalId:  '',
customField: '20091119-144945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20080216-214121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37855',
internalId:  '',
customField: '20091119-144337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30222',
internalId:  '',
customField: '20080216-213801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20080904-130805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24043',
internalId:  '',
customField: '20080519-162500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6706',
internalId:  '',
customField: '20080901-162401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20091119-143517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20090515-153614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20080216-194120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20090409-154108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20091119-145115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20091119-145141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20091119-145219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6727',
internalId:  '',
customField: '20081117-063258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20090103-143749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6748',
internalId:  '',
customField: '20081117-063729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20081021-054534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24064',
internalId:  '',
customField: '20080901-161021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12606',
internalId:  '',
customField: '20080306-212912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20071029-150317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36864',
internalId:  '',
customField: '20090409-153810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37175',
internalId:  '',
customField: '20090515-153550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37341',
internalId:  '',
customField: '20090105-133254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37516',
internalId:  '',
customField: '20090515-161153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38004',
internalId:  '',
customField: '20091210-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38013',
internalId:  '',
customField: '20091210-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38022',
internalId:  '',
customField: '20091210-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38078',
internalId:  '',
customField: '20091210-124534'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEUQZ';
var companyName   = 'Coastal+Chiropractic+%26+Family+Wellness+Centre';
var htmlTitle	  = 'Family+Wellness+Centre+of+Mystic';
var metaKeywords  = 'chiropractic%2C+naturopahtic%2C+homeopathy%2C+pregnancy%2C+infertility%2C+back+pain%2C+foot+pain%2C+acupuncture%2C+massage%2C+soft+tissue%2C+Graston+Technique%2C+wellness%2C+nutrition%2C+herbal%2C+children%2C+ear+infections%2C+low+tech+rehab%2C+neck+pain%2C+shoulder+pain%2C+ADD%2C+ADHD%2C+carpal+tunnel%2C+sciatica%2C+plantar+facitis%2C+shin+splints%2C+athletes%2C+Coastal+Chiropractic%2C+Frank+Musante%2C+Kendra+Becker+Family+Wellness+Centre+Mystic+FWC%2C+Family+Wellnese+Center%2Chealth%2C+wellness%2C+health++fitness%2C+fitness%2C+graston%2C+nutrition%2C+mystic%2C+chriopractic+mystic%2C+chiropractic+nrowich%2C+norwich%2C+non-toxic%2C+rehab%2C+rehabilitation%2C+family+care%2C+vitamins%2C+herbs%2C+pregency%2C+pain+managment%2Chomeopathic%2C+holistic+medicine%2C+sports+injuries%2C+sports+and+recreation.+trigger+point+therapy%2C+triger+points%2C+';
var metaContents  = 'chiropractic++naturopahtic++homeopathy++pregnancy++infertility++back+pain++foot+pain++acupuncture++massage++soft+tissue++Graston+Technique++wellness++nutrition++herbal++children++ear+infections++low+tech+rehab++neck+pain++shoulder+pain+++ADD++ADHD++carpal+tunnel++sciatica++plantar+facitis++shin+splints++athletes++Coastal+Chiropractic++Frank+Musante++Kendra+Becker++Family+Wellness+Centre+Mystic++FWC+mystic++Family+Wellnese+Centerhealth++fitness%2C+fitness%2C+graston%2C+nutrition%2C+mystic%2C+chriopractic+mystic%2C+chiropractic+nrowich%2C+norwich%2C+non-toxic%2C+rehab%2C+rehabilitation%2C+family+care%2C+vitamins%2C+herbs%2C+pregency%2C+pain+managment%2Chomeopathic%2C+holistic+medicine%2C+sports+injuries%2C+sports+and+recreation.+trigger+point+therapy%2C+triger+points%2C+';
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();
};
