/* [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','601',jdecode('Home'),jdecode(''),'/601/index.html','true',[ 
		['PAGE','757',jdecode('Contact+Us'),jdecode(''),'/601/757.html','true',[],'','']
	],'',''],
	['PAGE','25412',jdecode('WordSearch+and+Ebooks'),jdecode(''),'/25412.html','true',[],'',''],
	['PAGE','13601',jdecode('Caring+for+Aging+Parents%21'),jdecode(''),'/13601/index.html','true',[ 
		['PAGE','15001',jdecode('Discuss+Aging+Parents'),jdecode(''),'/13601/15001.html','true',[],'',''],
		['PAGE','18117',jdecode('Refreshment+for+Caregivers'),jdecode(''),'/13601/18117.html','true',[],'',''],
		['PAGE','21412',jdecode('Caregiving+Book+Excerpt'),jdecode(''),'/13601/21412.html','true',[],'','']
	],'',''],
	['PAGE','652',jdecode('Julie%26%23x27%3Bs+Books+%26+Audio'),jdecode(''),'/652/index.html','true',[ 
		['PAGE','736',jdecode('Endorsements'),jdecode(''),'/652/736.html','true',[],'',''],
		['PAGE','12501',jdecode('Sisters+in+Faith'),jdecode(''),'/652/12501.html','true',[],'',''],
		['PAGE','17955',jdecode('Audio+Sample'),jdecode(''),'/652/17955.html','true',[],'','']
	],'',''],
	['PAGE','673',jdecode('Conferences'),jdecode(''),'/673/index.html','true',[ 
		['PAGE','7301',jdecode('Conference+Endorsements'),jdecode(''),'/673/7301.html','true',[],'','']
	],'',''],
	['PAGE','18804',jdecode('Conference+Photo+Gallery'),jdecode(''),'/18804.html','true',[],'',''],
	['PAGE','8301',jdecode('Publishing+Services'),jdecode(''),'/8301/index.html','true',[ 
		['PAGE','18333',jdecode('Julie%26%23x27%3Bs+Collaborations'),jdecode(''),'/8301/18333.html','true',[],'','']
	],'',''],
	['PAGE','715',jdecode('Writing+Helps'),jdecode(''),'/715/index.html','true',[ 
		['PAGE','24112',jdecode('On+Editing+Yourself'),jdecode(''),'/715/24112.html','true',[],'','']
	],'',''],
	['PAGE','694',jdecode('Devotional'),jdecode(''),'/694/index.html','true',[ 
		['PAGE','11301',jdecode('Archived+Devos'),jdecode(''),'/694/11301.html','true',[],'','']
	],'',''],
	['PAGE','14806',jdecode('Guestbook'),jdecode(''),'/14806/index.html','true',[ 
		['PAGE','14801',jdecode('Read+Guestbook'),jdecode(''),'/14806/14801.html','false',[],'','']
	],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7103';
theSitetree.keyvisualName='kv_7103.jpg';
theSitetree.fontsetId='16394';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7103',
				keyvisualName: 	'kv_7103.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12128',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20091030-092649'
};
webappMappings['1002']=webappMappings['1002-14806AHW050INEN4V']={
webappId:    '1002',
documentId:  '14806',
internalId:  '14806AHW050INEN4V',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-ahw050inen4v11ae7fe74ea']={
webappId:    '1003',
documentId:  '15001',
internalId:  'ahw050inen4v11ae7fe74ea',
customField: 'en:US:'
};
webappMappings['1501']=webappMappings['1501-1038649']={
webappId:    '1501',
documentId:  '601',
internalId:  '1038649',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100829-175631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20091030-094330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20091030-224136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20091030-094812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20091030-100548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20091030-100652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20091030-095115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20091030-155455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20100104-105940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20091030-095312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20091030-100954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20090910-092635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14806',
internalId:  '',
customField: '20080303-110705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20080303-110705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17955',
internalId:  '',
customField: '20090731-174327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18117',
internalId:  '',
customField: '20090731-175401'
};
webappMappings['7060']=webappMappings['7060-67c3cd7735e2a9cf3bc24357bf511f74']={
webappId:    '7060',
documentId:  '18804',
internalId:  '67c3cd7735e2a9cf3bc24357bf511f74',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18333',
internalId:  '',
customField: '20100104-110029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18804',
internalId:  '',
customField: '20091030-144212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21412',
internalId:  '',
customField: '20100105-165451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24112',
internalId:  '',
customField: '20100324-120036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25412',
internalId:  '',
customField: '20100816-095927'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEN4V';
var companyName   = 'Author%2FSpeaker+Julie-Allyson+Ieron';
var htmlTitle	  = 'Julie-Allyson+Ieron%2C+Author%2FConference+Speaker';
var metaKeywords  = 'Christian++Author++Bible+Women++Womens+Conferences++Writing+Conferences++Julie-Allyson+Ieron++Aging+Parents+Caregiving+Prayer+Caregiving';
var metaContents  = 'Julie-Allyson+Ieron+Christian+Books+and+Authors++Christian+Womens+Conference+Speaker++Writing+Coach++Caring+for+Aging+ParentsChristian+Writers+Guild+mentor';
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();
};
