/* [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','32401',jdecode('home'),jdecode(''),'/32401.html','true',[],'',''],
	['PAGE','2252',jdecode('services'),jdecode(''),'/2252.html','true',[],'',''],
	['PAGE','2273',jdecode('new+clients'),jdecode(''),'/2273/index.html','true',[ 
		['PAGE','41612',jdecode('FREE+Physical+Assessment'),jdecode(''),'/2273/41612.html','true',[],'',''],
		['PAGE','41633',jdecode('FREE+Mental+Assessment'),jdecode(''),'/2273/41633.html','true',[],'',''],
		['PAGE','51212',jdecode('FREE+Environmental+Assessment'),jdecode(''),'/2273/51212.html','true',[],'','']
	],'',''],
	['PAGE','9001',jdecode('Online+Courses'),jdecode(''),'/9001.html','true',[],'',''],
	['PAGE','2315',jdecode('reading+room'),jdecode(''),'/2315.html','true',[],'',''],
	['PAGE','38301',jdecode('About+Me'),jdecode(''),'/38301.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Trade';
theSitetree.paletteFamily='6E6E6E';
theSitetree.keyvisualId='12119';
theSitetree.keyvisualName='kv_12119.jpg';
theSitetree.fontsetId='33299';
theSitetree.graphicsetId='14171';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Trade',
				paletteFamily: 	'6E6E6E',
				keyvisualId: 	'12119',
				keyvisualName: 	'kv_12119.jpg',
				fontsetId: 		'33299',
				graphicsetId: 	'14171',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-31243']={
webappId:    '7008',
documentId:  '41612',
internalId:  '31243',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20110808-181109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20110506-172356'
};
webappMappings['7008']=webappMappings['7008-31242']={
webappId:    '7008',
documentId:  '2252',
internalId:  '31242',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20100704-150041'
};
webappMappings['7008']=webappMappings['7008-31231']={
webappId:    '7008',
documentId:  '2273',
internalId:  '31231',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20110609-152318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20110609-151308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20110808-182328'
};
webappMappings['7008']=webappMappings['7008-14856']={
webappId:    '7008',
documentId:  '9001',
internalId:  '14856',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-17193']={
webappId:    '7050',
documentId:  '2315',
internalId:  '17193',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-31244']={
webappId:    '7008',
documentId:  '41633',
internalId:  '31244',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41612',
internalId:  '',
customField: '20110426-011331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41633',
internalId:  '',
customField: '20110426-011349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51212',
internalId:  '',
customField: '20110808-182408'
};
webappMappings['7008']=webappMappings['7008-4726']={
webappId:    '7008',
documentId:  '51212',
internalId:  '4726',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INXPOR';
var companyName   = 'Nutritional+Wellness+Program';
var htmlTitle	  = 'Nutritional+Wellness+Program';
var metaKeywords  = 'nutrition%2C+environment%2C+physical%2C+emotional%2C+mental%2C+dietary%2C+nutritionist%2C+goals%2C+wellness%2C+well%2C+health%2C+eating%2C+styles%2C+intentions%2C+relationship%2C+family%2C+career%2C+dreams%2C+desires%2C+aspirations%2C+holistic%2C+lifestyle%2C+principles%2C+workplace%2C+community%2C+world%2C+food%2C+drink%2C+sunshine%2C+body%2C+diseases%2C+illness%2C+fruit%2C+vegetables%2C+meat%2C+diary%2C+eggs%2C+proteins%2C+carbohydrates%2C+fat%2C+free%2C+products%2C+supplements%2C+reiki%2C+massage%2C+eft%2C+blood%2C+lab%2C+appointment%2C+kathy%2C+kathryn%2C+m.kathryn%2C+mcmillan%2C+guidance%2C+support%2C+effort%2C+change%2C+energy%2C+outlook%2C+life%2Ccapabilities%2C+interconnection%2C+foods%2C+liquids%2C+protein%2C+carbohydrates%2C+fats%2C+minerals%2C+vitamins%2C+counseling%2C+tutor%2C+teacher%2C+body%2C+holistic%2C+spirit%2C+holism%2C+wholism%2C+wholistic%2C+1%2C+2%2C+3%2C+4%2C+5%2C+6%2C+7%2C+yoga%2C+ayurveda%2C+chinese+medicine%2C+India%2C+China%2C+Native+American%2C+races%2C+bone+structure%2C+bones%2C+muscles%2C+veins%2C+digestion%2C+stomach%2C+tongue%2C+eyes%2C+mouth%2C+nose%2C+constipation%2C+eating+disorder%2C+bulimic%2C+mental%2C+illness%2C+bipolar%2C+ADHD%2C+ADD%2C+depression%2C+anger%2C+aggressive%2C+mood%2C+moods%2C+disorder%2C+East%2C+West%2C+philosophy%2C+philosophies%2C+psychology%2C+psychologist%2C+naturopath%2C+naturopathy%2C+accupunture%2C+accupuntist%2C+life%2C+feelings%2C+emotions%2C+exercise%2C+fitness%2C+swimming%2C+running%2C+jumping%2C+laugh%2C+laughing%2C+joy%2C+fun%2C+smile%2C+dance%2C+sun%2C+sunray%2C++rain%2C+water%2C+clouds%2C+snow%2C+storm%2C+nature%2C+plants%2C++';
var metaContents  = 'Lifestyle+choices+are+interrelated+not+only+with+the+condition+of+our+physical+body%2C+but+our++mental+capabilities%2C+our+outlook+on+life%2C+and+our+interconnection+with+the+environment.';
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();
};

