/* [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','5301',jdecode('Home'),jdecode(''), jdecode('%2F5301.html'), 'true',[],'',''],
	['PAGE','6601',jdecode('Holistic+Practitioners'),jdecode(''), jdecode('%2F6601%2Findex.html'), 'true',[ 
		['PAGE','9701',jdecode('Mike+Watts+1'),jdecode(''), jdecode('%2F6601%2F9701.html'), 'false',[],'',''],
		['PAGE','9722',jdecode('Mike+Watts+2'),jdecode(''), jdecode('%2F6601%2F9722.html'), 'false',[],'',''],
		['PAGE','11201',jdecode('Mike+Watts+3'),jdecode(''), jdecode('%2F6601%2F11201.html'), 'false',[],'',''],
		['PAGE','31001',jdecode('Andrea+Presse'),jdecode(''), jdecode('%2F6601%2F31001.html'), 'true',[],'',''],
		['PAGE','16001',jdecode('Ann+Bibbey'),jdecode(''), jdecode('%2F6601%2F16001.html'), 'true',[],'',''],
		['PAGE','37101',jdecode('Cassandra+King'),jdecode(''), jdecode('%2F6601%2F37101.html'), 'true',[],'',''],
		['PAGE','18701',jdecode('Dara+Lawyer'),jdecode(''), jdecode('%2F6601%2F18701.html'), 'true',[],'',''],
		['PAGE','20201',jdecode('Deborah+Adams'),jdecode(''), jdecode('%2F6601%2F20201.html'), 'true',[],'',''],
		['PAGE','35301',jdecode('Deeanna+Mumaugh'),jdecode(''), jdecode('%2F6601%2F35301.html'), 'true',[],'',''],
		['PAGE','5373',jdecode('Dolores+Baker'),jdecode(''), jdecode('%2F6601%2F5373.html'), 'true',[],'',''],
		['PAGE','38201',jdecode('Frank+Dapice'),jdecode(''), jdecode('%2F6601%2F38201.html'), 'true',[],'',''],
		['PAGE','17901',jdecode('Melodie+Hill'),jdecode(''), jdecode('%2F6601%2F17901.html'), 'false',[],'',''],
		['PAGE','14001',jdecode('Vickie+Deag'),jdecode(''), jdecode('%2F6601%2F14001.html'), 'false',[],'',''],
		['PAGE','9922',jdecode('Bio-Energy+Therapy'),jdecode(''), jdecode('%2F6601%2F9922.html'), 'false',[],'',''],
		['PAGE','5352',jdecode('Mike+Watts'),jdecode(''), jdecode('%2F6601%2F5352.html'), 'true',[],'',''],
		['PAGE','16022',jdecode('Cranial+Sacral+Therapy'),jdecode(''), jdecode('%2F6601%2F16022.html'), 'false',[],'',''],
		['PAGE','38222',jdecode('Energy+Kinesiology'),jdecode(''), jdecode('%2F6601%2F38222.html'), 'false',[],'',''],
		['PAGE','29101',jdecode('Health+Coaches'),jdecode(''), jdecode('%2F6601%2F29101.html'), 'false',[],'',''],
		['PAGE','16701',jdecode('Medical+Intuitive'),jdecode(''), jdecode('%2F6601%2F16701.html'), 'false',[],'',''],
		['PAGE','9901',jdecode('Reiki'),jdecode(''), jdecode('%2F6601%2F9901.html'), 'false',[],'',''],
		['PAGE','20501',jdecode('Massage+Therapists'),jdecode(''), jdecode('%2F6601%2F20501.html'), 'false',[],'',''],
		['PAGE','18201',jdecode('Reflexology'),jdecode(''), jdecode('%2F6601%2F18201.html'), 'false',[],'','']
	],'',''],
	['PAGE','14801',jdecode('Local+Events'),jdecode(''), jdecode('%2F14801.html'), 'true',[],'',''],
	['PAGE','5701',jdecode('Definitions'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','5394',jdecode('Contact+Us'),jdecode(''), jdecode('%2F5394.html'), 'true',[],'',''],
	['PAGE','5415',jdecode('News'),jdecode(''), jdecode('%2F5415.html'), 'true',[],'',''],
	['PAGE','5436',jdecode('Useful+Links'),jdecode(''), jdecode('%2F5436.html'), 'true',[],'',''],
	['PAGE','8801',jdecode('Membership+Information'),jdecode(''), jdecode('%2F8801.html'), 'true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Raster';
theSitetree.paletteFamily='ACC085';
theSitetree.keyvisualId='1287';
theSitetree.keyvisualName='basketball.jpg';
theSitetree.fontsetId='196';
theSitetree.graphicsetId='236';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6E6E6';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Raster',
				paletteFamily: 	'ACC085',
				keyvisualId: 	'1287',
				keyvisualName: 	'basketball.jpg',
				fontsetId: 		'196',
				graphicsetId: 	'236',
				contentColor: 	'000000',
				contentBGColor: 'E6E6E6',
				a_color: 		'00007F',
				b_color: 		'2E49EE',
				c_color: 		'000000',
				d_color: 		'E6E6E6',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20101105-180815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5352',
internalId:  '',
customField: '20120120-173248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5373',
internalId:  '',
customField: '20090903-125354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5394',
internalId:  '',
customField: '20090821-200041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5415',
internalId:  '',
customField: '20090929-155711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5436',
internalId:  '',
customField: '20090929-155631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20100217-164914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20120120-173744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20100217-163809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20110707-134006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20090901-183928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9722',
internalId:  '',
customField: '20090901-173431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20120120-173400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20090901-173804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20100219-134440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20120120-174226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16022',
internalId:  '',
customField: '20091204-163249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20110125-154141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20110224-124102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20100219-134606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20110412-164042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20100310-164414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20100812-154100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20100413-135159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20120120-173456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20101119-155632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20110818-165553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37101',
internalId:  '',
customField: '20110713-172007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38222',
internalId:  '',
customField: '20110713-133109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20110713-133909'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INVCW6';
var companyName   = 'Cheyenne+Holistic+Community';
var htmlTitle	  = 'Cheyenne+Holistic+Community';
var metaKeywords  = 'Cheyenne+Holistic+Community%2C+Alternative+Care%2C+Complimentary+Care%2C+Energy+Healing%2C+Reiki%2C+New+Age+healthcare%2C+reflexology%2C+medical+intuitives+';
var metaContents  = 'Cheyenne+Holistic+Community+is+a+group+of+alternative+and+complementary+care+practitioners+who+provide+services+in+Cheyenne+and+the+surrounding+area.++It+includes+a+listing+of+practitioners+and+a+dictionary+of+associated+terms.';
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();
};

