/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','51212',jdecode('Our+Pastor'),jdecode(''),'/51212.html','true',[],'',''],
	['PAGE','50012',jdecode('Historical+Overview'),jdecode(''),'/50012.html','true',[],'',''],
	['PAGE','815',jdecode('Acceptance'),jdecode(''),'/815.html','true',[],'',''],
	['PAGE','16201',jdecode('Mission+Statement'),jdecode(''),'/16201.html','true',[],'',''],
	['PAGE','773',jdecode('Support+Programs'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','13701',jdecode('Adult+Job+Training+'),jdecode(''),'/773/13701.html','true',[],'',''],
		['PAGE','13722',jdecode('Christian+Education'),jdecode(''),'/773/13722.html','true',[],'',''],
		['PAGE','17801',jdecode('Counseling+Ministries'),jdecode(''),'/773/17801.html','true',[],'',''],
		['PAGE','13743',jdecode('Emergency+Clothing'),jdecode(''),'/773/13743.html','true',[],'',''],
		['PAGE','13764',jdecode('Emergency+Food+Box+'),jdecode(''),'/773/13764.html','true',[],'',''],
		['PAGE','16701',jdecode('Prison+Ministries'),jdecode(''),'/773/16701.html','true',[],'',''],
		['PAGE','13785',jdecode('Youth+Programs'),jdecode(''),'/773/13785.html','true',[],'','']
	],'',''],
	['PAGE','794',jdecode('Current+Events'),jdecode(''),'/794.html','true',[],'',''],
	['PAGE','836',jdecode('Contact+Information'),jdecode(''),'/836/index.html','true',[ 
		['PAGE','857',jdecode('Phone+%26+Addresses'),jdecode(''),'/836/857.html','true',[],'',''],
		['PAGE','878',jdecode('How+to+find+us'),jdecode(''),'/836/878.html','true',[],'','']
	],'',''],
	['PAGE','899',jdecode('Private+School'),jdecode(''),'/899/index.html','true',[ 
		['PAGE','13806',jdecode('Appointments+'),jdecode(''),'/899/13806.html','true',[],'',''],
		['PAGE','13827',jdecode('Application'),jdecode(''),'/899/13827.html','true',[],'',''],
		['PAGE','13848',jdecode('Curriculum'),jdecode(''),'/899/13848.html','true',[],'',''],
		['PAGE','13869',jdecode('Eligibility'),jdecode(''),'/899/13869.html','true',[],'',''],
		['PAGE','16722',jdecode('Foreign+Exchange+Students'),jdecode(''),'/899/16722.html','true',[],'',''],
		['PAGE','13890',jdecode('High+School+Diploma%2FGED'),jdecode(''),'/899/13890.html','true',[],'',''],
		['PAGE','13911',jdecode('Transportation'),jdecode(''),'/899/13911.html','true',[],'',''],
		['PAGE','13932',jdecode('Tuition%2FFees%2FScholarships'),jdecode(''),'/899/13932.html','true',[],'','']
	],'',''],
	['PAGE','22601',jdecode('Media+Ministry'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','13401',jdecode('Theological+University'),jdecode(''),'/13401/index.html','true',[ 
		['PAGE','15301',jdecode('Application'),jdecode(''),'/13401/15301.html','true',[],'',''],
		['PAGE','15322',jdecode('Calendar'),jdecode(''),'/13401/15322.html','true',[],'',''],
		['PAGE','15343',jdecode('Courses'),jdecode(''),'/13401/15343.html','true',[],'',''],
		['PAGE','15364',jdecode('Eligibility'),jdecode(''),'/13401/15364.html','true',[],'',''],
		['PAGE','15385',jdecode('Tuition%2FFees%2FScholarships'),jdecode(''),'/13401/15385.html','true',[],'','']
	],'',''],
	['PAGE','28511',jdecode('Jobs'),jdecode(''),'/28511.html','true',[],'',''],
	['PAGE','31301',jdecode('Church+Photos'),jdecode(''),'/31301.html','true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='C56C02';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10514';
theSitetree.graphicsetId='11133';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='B57212';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Surround',
				paletteFamily: 	'C56C02',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10514',
				graphicsetId: 	'11133',
				contentColor: 	'000000',
				contentBGColor: 'B57212',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EABB3F',
				e_color: 		'EABB3F',
				f_color: 		'EABB3F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-11723554']={
webappId:    '1501',
documentId:  '701',
internalId:  '11723554',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51212',
internalId:  '',
customField: '20100401-201958'
};
webappMappings['7060']=webappMappings['7060-89aeedc4946b46d0c4521c1a5a99f994']={
webappId:    '7060',
documentId:  '31301',
internalId:  '89aeedc4946b46d0c4521c1a5a99f994',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100517-202728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090804-134853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20091221-172209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20090925-123921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20090804-174131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20091223-205538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20091223-204836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20090804-150547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13743',
internalId:  '',
customField: '20090804-152609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13764',
internalId:  '',
customField: '20090804-153617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090804-154606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13785',
internalId:  '',
customField: '20091223-205848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20091223-210228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20091221-172824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20090804-163025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20091221-183803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20090925-124201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13806',
internalId:  '',
customField: '20091223-210751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13827',
internalId:  '',
customField: '20090804-165914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13848',
internalId:  '',
customField: '20090804-170406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13869',
internalId:  '',
customField: '20090804-170936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16722',
internalId:  '',
customField: '20090804-171635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13890',
internalId:  '',
customField: '20090804-172617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13911',
internalId:  '',
customField: '20090804-173220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13932',
internalId:  '',
customField: '20090804-183048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100624-181039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20090804-175644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090804-180158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20090804-180659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20090804-181726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15364',
internalId:  '',
customField: '20090804-182955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15385',
internalId:  '',
customField: '20090804-183545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28511',
internalId:  '',
customField: '20090804-184234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50012',
internalId:  '',
customField: '20100401-202112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20080617-151641'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INVG1B';
var companyName   = 'St.+Andrew+Missionary+Baptist+Church';
var htmlTitle	  = '';
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();
};
