/* [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','75',jdecode('Home'),jdecode(''),'/75.html','true',[],'',''],
	['PAGE','2801',jdecode('The+Soul+Healing+Remedies'),jdecode(''),'/2801.html','true',[],'',''],
	['PAGE','406',jdecode('The+Chakra+Clearing+Elixirs'),jdecode(''),'/406.html','true',[],'',''],
	['PAGE','460',jdecode('Book%3A+Shed+the+Wool+Now%21'),jdecode(''),'/460.html','true',[],'',''],
	['PAGE','451',jdecode('Articles+By+Alantha'),jdecode(''),'/451.html','true',[],'',''],
	['PAGE','442',jdecode('Teaching+Series'),jdecode(''),'/442.html','true',[],'',''],
	['PAGE','433',jdecode('Channelings'),jdecode(''),'/433.html','true',[],'',''],
	['PAGE','424',jdecode('About+us'),jdecode(''),'/424.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='C5A858';
theSitetree.keyvisualId='6875';
theSitetree.keyvisualName='kv_6875.jpg';
theSitetree.fontsetId='11212';
theSitetree.graphicsetId='12034';
theSitetree.contentColor='64511A';
theSitetree.contentBGColor='DABB67';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'C5A858',
				keyvisualId: 	'6875',
				keyvisualName: 	'kv_6875.jpg',
				fontsetId: 		'11212',
				graphicsetId: 	'12034',
				contentColor: 	'64511A',
				contentBGColor: 'DABB67',
				a_color: 		'DABB67',
				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:  '75',
internalId:  '1006',
customField: '1006'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC241']={
webappId:    '5003',
documentId:  '75',
internalId:  'tid:1;pid:WSCSYSSSSLYTC241',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75',
internalId:  '',
customField: '20100615-141223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100615-140415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '406',
internalId:  '',
customField: '20100104-095814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460',
internalId:  '',
customField: '20100104-095858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '451',
internalId:  '',
customField: '20100104-095941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '442',
internalId:  '',
customField: '20100104-100020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '433',
internalId:  '',
customField: '20100104-100118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '424',
internalId:  '',
customField: '20100104-100210'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN31A6';
var companyName   = 'Healing+Arts+Through+Alantha';
var htmlTitle	  = 'Healing+Arts+Through+Alantha';
var metaKeywords  = 'vibrational+healing%2C+vibrational+energy+healing%2C+naturopath%2C+naturopathic%2C+elixirs%2C+healing%2C+chakra%2C+chakra+clearing%2C+channeling%2C+shed+the+wool+now%2C+chakra+cleairing+elixirs%2C+crystal%2C+color%2C+angels%2C+alpha%2C+omega%2C+energy%2C+vibration%2C+consciousness%2C+essences%2C+flower+remedies%2C+gem+elixirs%2C+healing+arts+through+alantha%2C+maihnouvelle%2C+hypnotherapy%2C+transformation%2C+karmic+release%2C+crystals%2C+sound%2C+alantha.bigstep.com%2C+soul+healing+remedies%2C+timelines%2C+bloodlines%2C+theta%2C+delta%2C+vibrational%2C+alternative+medicine%2C+spirituality%2C+energy+healing%2C+shamanic%2C+shamanism%2C+family+tree%2C+remote%2C+crystal+healing%2C+therapy%2C+guided+meditations%2C+tinctures%2C+flower+nessences';
var metaContents  = 'Healing+Arts+Through+Alantha+offers+two+types+of+self-administered+vibrational+healing+methods+as+bottled+essenses.++The+first+line+are+the+Chakra+Clearing+Elixirs%2C+28+unique+vibrational+energy+tinctures+to+help+clear%2C+heal%2C+and+balance+issues+or+blocks+in+the+emotional%2C+mental%2C+spiritual%2C+and+physical+bodies+allowing+transformation+and+greater+consciousness.++The+book%2C+Shed+the+Wool+Now%21+Transformation+and+Greater+Consciousness+Through+the+Chakra+Clearing+Elixirs+is+also+available.+The+second+line+of+vibrational+energy+healing+are+the+Soul+Healing+Remedies%2C+which+heal+the+family+tree+over+the+past%2C+by+working+through+the+chakras+to+healt+the+timelines+and+bloddlines.+Also+offered+are+channelings%2C+hypnotherapy%2C+and+crystal+healing%2Fkarmic+release+sessions.+';
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();
};

