/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','2843',jdecode('About+Us'),jdecode(''),'/2843.html','true',[],''],
	['PAGE','18401',jdecode('News'),jdecode(''),'/18401/index.html','true',[ 
		['PAGE','142801',jdecode('blog...+todays+news'),jdecode(''),'/18401/142801.html','true',[],'']
	],''],
	['PAGE','102001',jdecode('Facts+for+Life'),jdecode(''),'/102001/index.html','true',[ 
		['PAGE','151101',jdecode('Testimonies'),jdecode(''),'/102001/151101.html','true',[],'']
	],''],
	['PAGE','26701',jdecode('The+Bible+and+Abortion'),jdecode(''),'/26701.html','true',[],''],
	['PAGE','50101',jdecode('Restoring+Purpose'),jdecode(''),'/50101.html','true',[],''],
	['PAGE','25801',jdecode('History+in+the+making'),jdecode(''),'/25801.html','true',[],''],
	['PAGE','29843',jdecode('+ProLifeFundamentals'),jdecode(''),'/29843/index.html','true',[ 
		['PAGE','38801',jdecode('Abortion%2FEconomy'),jdecode(''),'/29843/38801.html','true',[],''],
		['PAGE','38822',jdecode('Stem+Cell+Research'),jdecode(''),'/29843/38822.html','true',[],''],
		['PAGE','38843',jdecode('Cord+Blood+Research'),jdecode(''),'/29843/38843.html','true',[],''],
		['PAGE','38885',jdecode('Assist.+Suicide%2FEuth.'),jdecode(''),'/29843/38885.html','true',[],''],
		['PAGE','38927',jdecode('Infanticide'),jdecode(''),'/29843/38927.html','true',[],''],
		['PAGE','130101',jdecode('Defending+the+Pre-Born'),jdecode(''),'/29843/130101.html','true',[],'']
	],''],
	['PAGE','64943',jdecode('New+Braunfels'),jdecode(''),'/64943/index.html','true',[ 
		['PAGE','139801',jdecode('American+Life+League'),jdecode(''),'/64943/139801.html','true',[],''],
		['PAGE','139822',jdecode('Concerned+Women+for+America'),jdecode(''),'/64943/139822.html','true',[],''],
		['PAGE','151401',jdecode('M.O.M%26%23x27%3Bs+Place'),jdecode(''),'/64943/151401.html','true',[],''],
		['PAGE','166801',jdecode('For+God+and+Country'),jdecode(''),'/64943/166801.html','true',[],'']
	],''],
	['PAGE','46501',jdecode('Prayer+Request'),jdecode(''),'/46501.html','true',[],''],
	['PAGE','2306',jdecode('Guestbook'),jdecode(''),'/2306/index.html','true',[ 
		['PAGE','2301',jdecode('Read+Guestbook'),jdecode(''),'/2306/2301.html','true',[],'']
	],''],
	['PAGE','52401',jdecode('Comments'),jdecode(''),'/52401.html','true',[],''],
	['PAGE','2990',jdecode('Donate'),jdecode(''),'/2990.html','true',[],''],
	['PAGE','2927',jdecode('Contact'),jdecode(''),'/2927.html','true',[],''],
	['PAGE','126901',jdecode('Links'),jdecode(''),'/126901.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='718DF8';
theSitetree.keyvisualId='9690';
theSitetree.keyvisualName='kv_9690.gif';
theSitetree.fontsetId='10658';
theSitetree.graphicsetId='11186';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Dispose',
				paletteFamily: 	'718DF8',
				keyvisualId: 	'9690',
				keyvisualName: 	'kv_9690.gif',
				fontsetId: 		'10658',
				graphicsetId: 	'11186',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-2306avec10invl03']={
webappId:    '1002',
documentId:  '2306',
internalId:  '2306avec10invl03',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151101',
internalId:  '',
customField: '20090412-175548'
};
webappMappings['1003']=webappMappings['1003-avec10invl03113dfe4ccab']={
webappId:    '1003',
documentId:  '38927',
internalId:  'avec10invl03113dfe4ccab',
customField: 'en:US:'
};
webappMappings['1003']=webappMappings['1003-avec10invl03113dfe45889']={
webappId:    '1003',
documentId:  '38885',
internalId:  'avec10invl03113dfe45889',
customField: 'en:US:'
};
webappMappings['1003']=webappMappings['1003-avec10invl031137a6719e4']={
webappId:    '1003',
documentId:  '38822',
internalId:  'avec10invl031137a6719e4',
customField: 'en:US:'
};
webappMappings['7008']=webappMappings['7008-3404']={
webappId:    '7008',
documentId:  '46501',
internalId:  '3404',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3405']={
webappId:    '7008',
documentId:  '2990',
internalId:  '3405',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3406']={
webappId:    '7008',
documentId:  '2927',
internalId:  '3406',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-375']={
webappId:    '7005',
documentId:  '52401',
internalId:  '375',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090603-064153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2843',
internalId:  '',
customField: '20090127-201012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20090220-161658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102001',
internalId:  '',
customField: '20090412-180126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20090127-200306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20090220-163354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20090127-195706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29843',
internalId:  '',
customField: '20090202-132120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20090129-192409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38822',
internalId:  '',
customField: '20080911-165530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38843',
internalId:  '',
customField: '20070719-111811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38885',
internalId:  '',
customField: '20090123-152531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38927',
internalId:  '',
customField: '20090123-152812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151401',
internalId:  '',
customField: '20090412-182536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139822',
internalId:  '',
customField: '20090601-190703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130101',
internalId:  '',
customField: '20090129-191358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139801',
internalId:  '',
customField: '20090220-162025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64943',
internalId:  '',
customField: '20090220-163327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166801',
internalId:  '',
customField: '20090601-190655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46501',
internalId:  '',
customField: '20090125-160106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2306',
internalId:  '',
customField: '20070629-201058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20070629-201058'
};
webappMappings['7050']=webappMappings['7050-759']={
webappId:    '7050',
documentId:  '142801',
internalId:  '759',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52401',
internalId:  '',
customField: '20090124-144618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142801',
internalId:  '',
customField: '20090202-130305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2990',
internalId:  '',
customField: '20090202-131811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2927',
internalId:  '',
customField: '20090125-160542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126901',
internalId:  '',
customField: '20090129-154526'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INVL03';
var companyName   = 'LifeSource+Ministries%2FTruth+for+Life+Ministries';
var htmlTitle	  = 'LifeSource+Ministries';
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();
};
