/* [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','185248',jdecode('Sacred+Offerings'),jdecode(''), jdecode('%2F185248%2Findex.html'), 'true',[ 
		['PAGE','185648',jdecode('Veronica'),jdecode(''), jdecode('%2F185248%2F185648.html'), 'true',[],'','']
	],'',''],
	['PAGE','124112',jdecode('Sessions'),jdecode(''), jdecode('%2F124112%2Findex.html'), 'true',[ 
		['PAGE','181428',jdecode('Readings'),jdecode(''), jdecode('%2F124112%2F181428.html'), 'true',[],'',''],
		['PAGE','1694',jdecode('What+are+the+Akashic+Records%3F'),jdecode(''), jdecode('%2F124112%2F1694.html'), 'false',[],'',''],
		['PAGE','78954',jdecode('Mentoring'),jdecode(''), jdecode('%2F124112%2F78954.html'), 'true',[],'',''],
		['PAGE','78912',jdecode('What+is+a+Spiritual+Evolution%3F'),jdecode(''), jdecode('%2F124112%2F78912.html'), 'false',[],'',''],
		['PAGE','134012',jdecode('Sacred+Dance'),jdecode(''), jdecode('%2F124112%2F134012.html'), 'false',[],'',''],
		['PAGE','134033',jdecode('What+is+Sacred+Dance%3F'),jdecode(''), jdecode('%2F124112%2F134033.html'), 'false',[],'',''],
		['PAGE','134054',jdecode('Your+Sacred+Dance+Session'),jdecode(''), jdecode('%2F124112%2F134054.html'), 'false',[],'',''],
		['PAGE','9622',jdecode('Appointments'),jdecode(''), jdecode('%2F124112%2F9622.html'), 'true',[],'',''],
		['PAGE','137212',jdecode('Payment+Plans'),jdecode(''), jdecode('%2F124112%2F137212.html'), 'false',[],'',''],
		['PAGE','153312',jdecode('Appointment+Request'),jdecode(''), jdecode('%2F124112%2F153312.html'), 'false',[],'',''],
		['PAGE','9601',jdecode('How+to+Prepare+'),jdecode(''), jdecode('%2F124112%2F9601.html'), 'false',[],'','']
	],'',''],
	['PAGE','174628',jdecode('Speaking'),jdecode(''), jdecode('%2F174628%2Findex.html'), 'false',[ 
		['PAGE','93812',jdecode('Tele-Conferences'),jdecode(''), jdecode('%2F174628%2F93812.html'), 'false',[],'',''],
		['PAGE','94112',jdecode('Talks'),jdecode(''), jdecode('%2F174628%2F94112.html'), 'true',[],'',''],
		['PAGE','174670',jdecode('Scheduling'),jdecode(''), jdecode('%2F174628%2F174670.html'), 'false',[],'','']
	],'',''],
	['PAGE','124712',jdecode('Store'),jdecode(''), jdecode('%2F124712%2Findex.html'), 'true',[ 
		['PAGE','164628',jdecode('Order+Confirmation'),jdecode(''), jdecode('%2F124712%2F164628.html'), 'false',[],'','']
	],'',''],
	['PAGE','97412',jdecode('Complimentary'),jdecode(''), jdecode('%2F97412%2Findex.html'), 'true',[ 
		['ITEM','197769',jdecode('Newsletter'),jdecode(''), jdecode('http%3A%2F%2Farchive.constantcontact.com%2Ffs046%2F1102989576721%2Farchive%2F1103230191071.html'), 'true',[],'','_blank'],
		['ITEM','197869',jdecode('Articles'),jdecode(''), jdecode('http%3A%2F%2Fwww.examiner.com%2Fsacred-living-in-national%2Fveronica-lee'), 'true',[],'','_blank'],
		['ITEM','197870',jdecode('Blog'),jdecode(''), jdecode('http%3A%2F%2Fsacred-offerings.blogspot.com%2F'), 'true',[],'','_blank'],
		['PAGE','185069',jdecode('Audios'),jdecode(''), jdecode('%2F97412%2F185069.html'), 'false',[],'',''],
		['ITEM','197871',jdecode('Videos'),jdecode(''), jdecode('http%3A%2F%2Fwww.youtube.com%2FSacredOfferings'), 'true',[],'','_blank']
	],'',''],
	['PAGE','194658',jdecode('Calendar'),jdecode(''), jdecode('%2F194658.html'), 'false',[],'',''],
	['PAGE','1799',jdecode('Contact'),jdecode(''), jdecode('%2F1799.html'), 'true',[],'',''],
	['PAGE','6585',jdecode('Testimonials'),jdecode(''), jdecode('%2F6585%2Findex.html'), 'false',[ 
		['PAGE','134075',jdecode('Sacred+Dance+Testimonials'),jdecode(''), jdecode('%2F6585%2F134075.html'), 'false',[],'',''],
		['PAGE','34254',jdecode('Class+Testimonials'),jdecode(''), jdecode('%2F6585%2F34254.html'), 'false',[],'','']
	],'',''],
	['PAGE','174691',jdecode('Resources'),jdecode(''), jdecode('%2F174691%2Findex.html'), 'false',[ 
		['PAGE','73412',jdecode('Professionals'),jdecode(''), jdecode('%2F174691%2F73412.html'), 'true',[],'',''],
		['PAGE','131112',jdecode('Books'),jdecode(''), jdecode('%2F174691%2F131112.html'), 'true',[],'',''],
		['PAGE','174712',jdecode('Websites'),jdecode(''), jdecode('%2F174691%2F174712.html'), 'true',[],'','']
	],'',''],
	['PAGE','158812',jdecode('Search'),jdecode(''), jdecode('%2F158812.html'), 'false',[],'',''],
	['PAGE','116212',jdecode('Donate'),jdecode(''), jdecode('%2F116212%2Findex.html'), 'false',[ 
		['PAGE','165928',jdecode('Donation+Thank+You'),jdecode(''), jdecode('%2F116212%2F165928.html'), 'false',[],'','']
	],'',''],
	['PAGE','192658',jdecode('Glossary'),jdecode(''), jdecode('%2F192658.html'), 'false',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='DCCC9F';
theSitetree.keyvisualId='11875';
theSitetree.keyvisualName='kv_11875.jpg';
theSitetree.fontsetId='33189';
theSitetree.graphicsetId='14089';
theSitetree.contentColor='696146';
theSitetree.contentBGColor='fbeec7';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'DCCC9F',
				keyvisualId: 	'11875',
				keyvisualName: 	'kv_11875.jpg',
				fontsetId: 		'33189',
				graphicsetId: 	'14089',
				contentColor: 	'696146',
				contentBGColor: 'fbeec7',
				a_color: 		'FBEFC9',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Tahoma',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185248',
internalId:  '',
customField: '20110221-182339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73412',
internalId:  '',
customField: '20101008-124854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94112',
internalId:  '',
customField: '20100928-235241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1652',
internalId:  '',
customField: '20091021-151701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1694',
internalId:  '',
customField: '20090213-231326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185069',
internalId:  '',
customField: '20100413-125737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131112',
internalId:  '',
customField: '20090211-194114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78912',
internalId:  '',
customField: '20090213-233705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181428',
internalId:  '',
customField: '20110221-184856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78954',
internalId:  '',
customField: '20110221-185210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9622',
internalId:  '',
customField: '20110221-185616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20110214-213941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93812',
internalId:  '',
customField: '20100410-163952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192658',
internalId:  '',
customField: '20100424-174350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6585',
internalId:  '',
customField: '20100410-170205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194658',
internalId:  '',
customField: '20110221-201329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34254',
internalId:  '',
customField: '20100410-163818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134012',
internalId:  '',
customField: '20090427-134758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97412',
internalId:  '',
customField: '20110221-200607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1799',
internalId:  '',
customField: '20110221-202158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134033',
internalId:  '',
customField: '20090213-233119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124712',
internalId:  '',
customField: '20100930-141019'
};
webappMappings['7008']=webappMappings['7008-2125']={
webappId:    '7008',
documentId:  '1799',
internalId:  '2125',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124112',
internalId:  '',
customField: '20110221-184614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116212',
internalId:  '',
customField: '20090307-111856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174628',
internalId:  '',
customField: '20100928-235112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134075',
internalId:  '',
customField: '20090213-233438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134054',
internalId:  '',
customField: '20090213-233258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137212',
internalId:  '',
customField: '20100410-185010'
};
webappMappings['7008']=webappMappings['7008-4480']={
webappId:    '7008',
documentId:  '153312',
internalId:  '4480',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153312',
internalId:  '',
customField: '20090226-213153'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '158812',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158812',
internalId:  '',
customField: '20090226-183139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164628',
internalId:  '',
customField: '20090305-144114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165928',
internalId:  '',
customField: '20090305-144429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174670',
internalId:  '',
customField: '20090429-125229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185648',
internalId:  '',
customField: '20110221-194031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174691',
internalId:  '',
customField: '20090429-130309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174712',
internalId:  '',
customField: '20100410-173358'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEQL2';
var companyName   = 'SACRED+OFFERINGS';
var htmlTitle	  = 'Sacred+Offerings';
var metaKeywords  = '';
var metaContents  = '';
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();
};

