/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('Workshops'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','95401',jdecode('Group+Study+Series'),jdecode(''),'/95401.html','true',[],'',''],
	['PAGE','75001',jdecode('Bookstore'),jdecode(''),'/75001.html','true',[],'',''],
	['PAGE','594',jdecode('Events'),jdecode(''),'/594.html','true',[],'',''],
	['PAGE','9001',jdecode('Hosting'),jdecode(''),'/9001.html','true',[],'',''],
	['PAGE','10401',jdecode('Get+the+E-Blast'),jdecode(''),'/10401.html','true',[],'',''],
	['PAGE','636',jdecode('About+Us'),jdecode(''),'/636.html','true',[],'',''],
	['PAGE','699',jdecode('Contact+Us'),jdecode(''),'/699.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Chaste';
theSitetree.paletteFamily='90BFFA';
theSitetree.keyvisualId='11537';
theSitetree.keyvisualName='kv_11537.jpg';
theSitetree.fontsetId='32877';
theSitetree.graphicsetId='13962';
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: 			'Chaste',
				paletteFamily: 	'90BFFA',
				keyvisualId: 	'11537',
				keyvisualName: 	'kv_11537.jpg',
				fontsetId: 		'32877',
				graphicsetId: 	'13962',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'90BFFA',
				b_color: 		'5183C3',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-190']={
webappId:    '7008',
documentId:  '10401',
internalId:  '190',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100225-161903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20100120-011725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100223-201454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95401',
internalId:  '',
customField: '20100120-011452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100223-201243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75001',
internalId:  '',
customField: '20100302-144004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20100217-231155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20100210-230911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100210-232519'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFBPV';
var companyName   = 'Tuning+In+Your+Family+Vision+and+Living+It+Out';
var htmlTitle	  = 'The+High+Definition+Family';
var metaKeywords  = 'family%2C+family+visioning%2C+purpose%2C+goals%2C+mission%2C+statements%2C+planning%2C+Christian%2C+Church%2C+Jesus%2C+Holy+Spirit%2C+attachment+parenting%2C+Biblical%2C+principles%2C+guide%2C+guidance%2C+map%2C+direction%2C+focus%2C+Christ%2C+parenting%2C+families%2C+relationships%2C+couples%2C+wedding%2C+newlyweds%2C+millenials%2C+boomers%2C+Gen+Y%2C+family+ministry%2C+mission%2C+missional%2C+Christ-centered%2C+Spirit-led%2C+freedom%2C+finances%2C+discipline%2C+chores%2C+children%2C+teens%2C+toddlers%2C+babies%2C+pastoral+guidance%2C+education%2C+spiritual+formation%2C+discipleship%2C+learning%2C+classes%2C+workshops%2C+books%2C+The+High+Definition+Family%2C+Field+Guide%2C+Sayer+Strauch%2C+Presbyterian%2C+new%2C+Covey%2C+Purpose-Driven%2C+habits%2C+busy+life%2C+faith%2C+tune+in+family+vision+and+living+it+out%2C+together%2C+Soul+Shapes%2C+Gods+movement%2C+journey%2C+building+trust%2C+mastering+conflict%2C+achieving+commitment%2C+embracing+accountability%2C+choice%2C+self-awareness%2C+awareness+of+God%2C+communication+skills%2C+family+systems%2C+culture%2C+leadership+skills%2C+assessment%2C+potential%2C+dreams%2C+following+Jesus%2C+God%2C+reosurce%2C+young+adults%2C+Bible+study%2C+small+groups%2C+spiritual+growth%2C+eternal%2C+pastor%2C+Gen+X%2C+Christians%2C+seekers%2C+stories%2C+illustrations%2C+applications%2C+of+every+size%2C+age-range%2C+structure%2C+maturing%2C+images%2C+visual%2C+river%2C+rafting%2C+lifetime%2C+Baptist%2C+Methodist%2C+Unitarian%2C+Universalist%2C+Buddhist%2C+Muslim%2C+agnostic%2C+spiritual+parenting%2C+shepherding%2C+home%2C+household%2C+effective+families%2C+healthy%2C+structure%2C+comprehensive%2C+Father%2C+Son%2C+connecting+followers+more+powerfully+with+Jesus%2C+Heidi%2C+home+economics%2C+management%2C+chlidren%2C+pre-marital%2C+partners%2C+gay%2C+lesbian%2C+straight%2C+nurture%2C+soul%2C+ideas%2C+suggestions%2C+active+listening%2C+love%2C+donating+love%2C+being+assertive%2C+expressing+anger%2C+seeking+respectful+relationship+with+attackers%2C+telling+the+truth+in+love%2C+making+and+keeping+promises%2C+being+supportive%2C+intervening+into+abusive%2C+addictive+behavior%2C+family+gatherings%2C+family+whispers%2C+thriving+family%2C+magnetic+message%2C+conflict%2C+hurricane%2C+worship%2C+strategic%2C+daily+check-ins%2C+family+leadership%2C+hitting+the+pause+button%2C+hitting+the+play+button%2C+transformed%2C+moving+with+God%2C+trust+God%2C+surrender+to+God%2C+stuck%2C+transformation%2C+healing%2C+wholeness%2C+excitement%2C+passion%2C+';
var metaContents  = 'family%2C+family+visioning%2C+purpose%2C+goals%2C+mission%2C+statements%2C+planning%2C+Christian%2C+Church%2C+Jesus%2C+Holy+Spirit%2C+attachment+parenting%2C+Biblical%2C+principles%2C+guide%2C+guidance%2C+map%2C+direction%2C+focus%2C+Christ%2C+parenting%2C+families%2C+relationships%2C+couples%2C+wedding%2C+newlyweds%2C+millenials%2C+boomers%2C+Gen+Y%2C+family+ministry%2C+mission%2C+missional%2C+Christ-centered%2C+Spirit-led%2C+freedom%2C+finances%2C+discipline%2C+chores%2C+children%2C+teens%2C+toddlers%2C+babies%2C+pastoral+guidance%2C+education%2C+spiritual+formation%2C+discipleship%2C+learning%2C+classes%2C+workshops%2C+books%2C+The+High+Definition+Family%2C+Field+Guide%2C+Sayer+Strauch%2C+Presbyterian%2C+new%2C+Covey%2C+Purpose-Driven%2C+habits%2C+busy+life%2C+faith%2C+tune+in+family+vision+and+living+it+out%2C+together%2C+Soul+Shapes%2C+Gods+movement%2C+journey%2C+building+trust%2C+mastering+conflict%2C+achieving+commitment%2C+embracing+accountability%2C+choice%2C+self-awareness%2C+awareness+of+God%2C+communication+skills%2C+family+systems%2C+culture%2C+leadership+skills%2C+assessment%2C+potential%2C+dreams%2C+following+Jesus%2C+God%2C+reosurce%2C+young+adults%2C+Bible+study%2C+small+groups%2C+spiritual+growth%2C+eternal%2C+pastor%2C+Gen+X%2C+Christians%2C+seekers%2C+stories%2C+illustrations%2C+applications%2C+of+every+size%2C+age-range%2C+structure%2C+maturing%2C+images%2C+visual%2C+river%2C+rafting%2C+lifetime%2C+Baptist%2C+Methodist%2C+Unitarian%2C+Universalist%2C+Buddhist%2C+Muslim%2C+agnostic%2C+spiritual+parenting%2C+shepherding%2C+home%2C+household%2C+effective+families%2C+healthy%2C+structure%2C+comprehensive%2C+Father%2C+Son%2C+connecting+followers+more+powerfully+with+Jesus%2C+Heidi%2C+home+economics%2C+management%2C+chlidren%2C+pre-marital%2C+partners%2C+gay%2C+lesbian%2C+straight%2C+nurture%2C+soul%2C+ideas%2C+suggestions%2C+active+listening%2C+love%2C+donating+love%2C+being+assertive%2C+expressing+anger%2C+seeking+respectful+relationship+with+attackers%2C+telling+the+truth+in+love%2C+making+and+keeping+promises%2C+being+supportive%2C+intervening+into+abusive%2C+addictive+behavior%2C+family+gatherings%2C+family+whispers%2C+thriving+family%2C+magnetic+message%2C+conflict%2C+hurricane%2C+worship%2C+strategic%2C+daily+check-ins%2C+family+leadership%2C+hitting+the+pause+button%2C+hitting+the+play+button%2C+transformed%2C+moving+with+God%2C+trust+God%2C+surrender+to+God%2C+stuck%2C+transformation%2C+healing%2C+wholeness%2C+excitement%2C+passion%2C+';
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();
};
