/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('About+Katherine'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','473',jdecode('Katherine%26%23x27%3Bs+Work'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','39080',jdecode('Definition+of+Terms+Used'),jdecode(''),'/39080.html','true',[],'',''],
	['PAGE','4501',jdecode('Intuition+%26+Energy+Medicine'),jdecode(''),'/4501.html','true',[],'',''],
	['PAGE','11901',jdecode('Medical+Intuition'),jdecode(''),'/11901.html','true',[],'',''],
	['PAGE','39089',jdecode('Mediumship'),jdecode(''),'/39089.html','true',[],'',''],
	['PAGE','39098',jdecode('Psychic+Gifts'),jdecode(''),'/39098.html','true',[],'',''],
	['PAGE','39116',jdecode('Beings+That+Help+Katherine'),jdecode(''),'/39116.html','true',[],'',''],
	['PAGE','39174',jdecode('Virtual+Acu+Transformation'),jdecode(''),'/39174.html','true',[],'',''],
	['PAGE','39183',jdecode('Virtual+Chiro+Adjustments'),jdecode(''),'/39183.html','true',[],'',''],
	['PAGE','39154',jdecode('Meet+Your+Guides+and+Angels'),jdecode(''),'/39154.html','true',[],'',''],
	['PAGE','39107',jdecode('Speak+with+Spiritual+Energies'),jdecode(''),'/39107.html','true',[],'',''],
	['PAGE','494',jdecode('What+Others+Say'),jdecode(''),'/494.html','true',[],'',''],
	['PAGE','515',jdecode('Session+Information'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','5301',jdecode('Upcoming+Trips+and+Events'),jdecode(''),'/5301.html','true',[],'',''],
	['PAGE','11922',jdecode('Published+Writing'),jdecode(''),'/11922.html','true',[],'',''],
	['PAGE','3622',jdecode('New+Self-Healing+Tool'),jdecode(''),'/3622.html','true',[],'',''],
	['PAGE','557',jdecode('Self-Healing+Tools+Archive'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','3601',jdecode('Blog+Archive'),jdecode(''),'/3601.html','true',[],'',''],
	['PAGE','536',jdecode('Request+Healing'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','11943',jdecode('E-Newsletter'),jdecode(''),'/11943.html','true',[],'',''],
	['PAGE','6501',jdecode('Downloadable+Learning'),jdecode(''),'/6501.html','true',[],'',''],
	['PAGE','39125',jdecode('Katherine+on+YouTube'),jdecode(''),'/39125.html','true',[],'',''],
	['PAGE','39134',jdecode('Katherine+on+Twitter'),jdecode(''),'/39134.html','true',[],'',''],
	['PAGE','39143',jdecode('Katherine+on+Facebook'),jdecode(''),'/39143.html','true',[],'',''],
	['PAGE','11301',jdecode('Contact+Katherine'),jdecode(''),'/11301.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='385CA9';
theSitetree.keyvisualId='7205';
theSitetree.keyvisualName='kv_7205.jpg';
theSitetree.fontsetId='16411';
theSitetree.graphicsetId='12134';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capri',
				paletteFamily: 	'385CA9',
				keyvisualId: 	'7205',
				keyvisualName: 	'kv_7205.jpg',
				fontsetId: 		'16411',
				graphicsetId: 	'12134',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100906-214218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20081227-203519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100904-194438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100906-214125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100904-194003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100905-123255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20100905-132115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20070624-192608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071105-203013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20100904-193524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11922',
internalId:  '',
customField: '20080107-133158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3622',
internalId:  '',
customField: '20100904-194043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100904-195114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20071124-162219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11943',
internalId:  '',
customField: '20100905-130342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39098',
internalId:  '',
customField: '20100905-125231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100905-130721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39080',
internalId:  '',
customField: '20100905-124747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39089',
internalId:  '',
customField: '20100905-124841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39116',
internalId:  '',
customField: '20100905-122032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39154',
internalId:  '',
customField: '20100905-125812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39107',
internalId:  '',
customField: '20100905-130100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39125',
internalId:  '',
customField: '20100905-130637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39134',
internalId:  '',
customField: '20100905-130826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39143',
internalId:  '',
customField: '20100905-131955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39174',
internalId:  '',
customField: '20100905-133129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39183',
internalId:  '',
customField: '20100905-132724'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEY0F';
var companyName   = 'Katherine+Bennett++%7E++Intuition+%26+Energy+Medicine';
var htmlTitle	  = 'katherinelbennett.com';
var metaKeywords  = 'Katherine+Bennett%2C+healer%2C+intuition+and+energy+medicine%2C+medical+intuitive%2C+medical+intuition%2C+healing%2C+energy+medicine%2C+Katherine+L.+Bennett%2C+Katherine+L+Bennett';
var metaContents  = 'Intuition%2C+Energy+Medicine%2C+and+Medical+Intuition+Website+of+Katherine+L.+Bennett+-+offering+A+Free+Healing+Blog%2C+Free+Self-Healing+Tools%2C+private+session+info%2C+and+more.';
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();
};
