/* [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','2101',jdecode('Home'),jdecode(''), jdecode('%2F2101.html'), 'true',[],'',''],
	['PAGE','2152',jdecode('About+Us'),jdecode(''), jdecode('%2F2152.html'), 'true',[],'',''],
	['PAGE','2194',jdecode('Events+at+the+Center'),jdecode(''), jdecode('%2F2194.html'), 'true',[],'',''],
	['ITEM','63312',jdecode('Online+Store'),jdecode(''), jdecode('http%3A%2F%2Fwww.magoonlinestore.com%2Fstore'), 'true',[],'','_blank'],
	['PAGE','2173',jdecode('Practitioners'),jdecode(''), jdecode('%2F2173.html'), 'true',[],'',''],
	['PAGE','47501',jdecode('Latest+News'),jdecode(''), jdecode('%2F47501.html'), 'true',[],'',''],
	['PAGE','2215',jdecode('Products'),jdecode(''), jdecode('%2F2215.html'), 'false',[],'',''],
	['PAGE','25801',jdecode('Newsletters'),jdecode(''), jdecode('%2F25801%2Findex.html'), 'true',[ 
		['PAGE','25822',jdecode('Holiday+2009'),jdecode(''), jdecode('%2F25801%2F25822.html'), 'false',[],'',''],
		['PAGE','30801',jdecode('New+Year+2010'),jdecode(''), jdecode('%2F25801%2F30801.html'), 'false',[],'',''],
		['PAGE','38501',jdecode('Spring+2010'),jdecode(''), jdecode('%2F25801%2F38501.html'), 'false',[],'',''],
		['PAGE','40501',jdecode('Summer+2010'),jdecode(''), jdecode('%2F25801%2F40501.html'), 'false',[],'',''],
		['PAGE','44601',jdecode('Late+Summer+2010'),jdecode(''), jdecode('%2F25801%2F44601.html'), 'false',[],'','']
	],'',''],
	['PAGE','2257',jdecode('Our+Location'),jdecode(''), jdecode('%2F2257.html'), 'true',[],'',''],
	['PAGE','27301',jdecode('Business+Hours'),jdecode(''), jdecode('%2F27301.html'), 'true',[],'',''],
	['PAGE','2278',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2278.html'), 'true',[],'',''],
	['PAGE','2299',jdecode('Useful+Links'),jdecode(''), jdecode('%2F2299.html'), 'true',[],'',''],
	['PAGE','13101',jdecode('Lori+Buss+-+Astrologer'),jdecode(''), jdecode('%2F13101.html'), 'false',[],'',''],
	['PAGE','36601',jdecode('Learning+Palmistry+with+Myrna+Lou'),jdecode(''), jdecode('%2F36601.html'), 'false',[],'',''],
	['PAGE','28301',jdecode('Yoga+Classes+with+Michele'),jdecode(''), jdecode('%2F28301.html'), 'false',[],'',''],
	['PAGE','32601',jdecode('Reiki+I+%26+II+Class'),jdecode(''), jdecode('%2F32601.html'), 'false',[],'',''],
	['PAGE','14001',jdecode('Jackie+Oceanak'),jdecode(''), jdecode('%2F14001.html'), 'false',[],'',''],
	['PAGE','13801',jdecode('Dolores+Baker+Ph.D.+-+Energy+Healer'),jdecode(''), jdecode('%2F13801.html'), 'false',[],'',''],
	['PAGE','19401',jdecode('Sena+Visit'),jdecode(''), jdecode('%2F19401.html'), 'false',[],'',''],
	['PAGE','19422',jdecode('About+Sena'),jdecode(''), jdecode('%2F19422.html'), 'false',[],'',''],
	['PAGE','23901',jdecode('Holiday+Business+Hours'),jdecode(''), jdecode('%2F23901.html'), 'false',[],'',''],
	['PAGE','24601',jdecode('Prayer+for+peace'),jdecode(''), jdecode('%2F24601.html'), 'false',[],'',''],
	['PAGE','43901',jdecode('Monica+Taylor+-+Hands+On+Therapy'),jdecode(''), jdecode('%2F43901.html'), 'false',[],'',''],
	['PAGE','48401',jdecode('Saturday+Readers'),jdecode(''), jdecode('%2F48401.html'), 'false',[],'',''],
	['PAGE','49801',jdecode('Elizabeth+Chambers+%28Hite%29'),jdecode(''), jdecode('%2F49801.html'), 'false',[],'',''],
	['PAGE','48422',jdecode('Andrea+Presse'),jdecode(''), jdecode('%2F48422.html'), 'false',[],'',''],
	['PAGE','51001',jdecode('Yoga+with+Michael'),jdecode(''), jdecode('%2F51001.html'), 'false',[],'',''],
	['PAGE','58612',jdecode('Artist+Spotlight+Interview'),jdecode(''), jdecode('%2F58612.html'), 'false',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='3C5284';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10511';
theSitetree.graphicsetId='10913';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3C5284';
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: 			'Stars',
				paletteFamily: 	'3C5284',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10511',
				graphicsetId: 	'10913',
				contentColor: 	'FFFFFF',
				contentBGColor: '3C5284',
				a_color: 		'3C5284',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20100916-143252'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2257',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20090910-183728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20120113-161054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2152',
internalId:  '',
customField: '20090820-150333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2173',
internalId:  '',
customField: '20110719-160848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2194',
internalId:  '',
customField: '20120113-162909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2215',
internalId:  '',
customField: '20110118-172934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20101001-181536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2257',
internalId:  '',
customField: '20110719-161132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2278',
internalId:  '',
customField: '20091218-183411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2299',
internalId:  '',
customField: '20100403-133909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20091009-154742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19422',
internalId:  '',
customField: '20090918-135414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20101124-135407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20091009-171704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20111217-171654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25822',
internalId:  '',
customField: '20100828-135739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20111105-144830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20100219-142541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20100406-171022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20100120-170203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20100330-153341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38501',
internalId:  '',
customField: '20100408-173137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40501',
internalId:  '',
customField: '20100828-142110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43901',
internalId:  '',
customField: '20100824-150223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20100828-154924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20101001-181645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20111020-160918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48422',
internalId:  '',
customField: '20101214-155013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49801',
internalId:  '',
customField: '20101005-151341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51001',
internalId:  '',
customField: '20110902-163750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58612',
internalId:  '',
customField: '20110118-173749'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3X99';
var companyName   = 'Mago+Healing+Arts';
var htmlTitle	  = 'Mago+Healing+Arts%2C+Cheyenne%2C+Wyoming';
var metaKeywords  = 'Metaphysical+online+store%2C+Crystals+and+stones+for+sale%2C+Healing+Center%2C+Reiki%2C+Crystals%2C+Metaphysical+Books%2C+New+Age+materials%2C+Energy+Healing%2C+Holistic+Therapies%2C+Alternative+Care%2C+Complementary+Care%2C+Yoga%2C+New+Age+workshops+and+classes%2C+online+store%2C+smudging+supplies%2C+jewelry%2C+banners%2C+boxes%2C+journals%2C+singing+bowls%2C+lamps';
var metaContents  = 'Mago+Healing+Arts+is+a+new+spiritual+healing+center+in+Cheyenne%2C+Wyoming.++It+features+crystals%2C+books%2C+art+and+healing+sessions+using+variety+of+energy+healing+techniques+including+Reiki.++Call+for+more+information+%28307%29+778-7995.';
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();
};

