/* [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','8501',jdecode('Home'),jdecode(''),'/8501.html','true',[],''],
	['PAGE','49917',jdecode('Guestbook'),jdecode(''),'/49917.html','true',[],''],
	['PAGE','49938',jdecode('Dr.+Hibbert%26%23x27%3Bs+Blog'),jdecode(''),'/49938.html','true',[],''],
	['PAGE','85112',jdecode('Dr.+Hibbert%26%23x27%3Bs+Forum'),jdecode(''),'/85112.html','true',[],''],
	['PAGE','49812',jdecode('Goal'),jdecode(''),'/49812.html','true',[],''],
	['PAGE','52812',jdecode('Biography'),jdecode(''),'/52812.html','true',[],''],
	['PAGE','58212',jdecode('Church+Ministry'),jdecode(''),'/58212/index.html','true',[ 
		['PAGE','67212',jdecode('Church+History'),jdecode(''),'/58212/67212.html','true',[],''],
		['PAGE','69712',jdecode('Resources'),jdecode(''),'/58212/69712.html','true',[],''],
		['PAGE','67912',jdecode('Meet+Our+Pastor'),jdecode(''),'/58212/67912.html','true',[],''],
		['PAGE','77612',jdecode('Why+go+to+Church'),jdecode(''),'/58212/77612.html','true',[],''],
		['PAGE','77633',jdecode('Special+Ministries'),jdecode(''),'/58212/77633.html','true',[],''],
		['PAGE','77654',jdecode('Weekly+Events'),jdecode(''),'/58212/77654.html','true',[],'']
	],''],
	['PAGE','55512',jdecode('Helping+Hands'),jdecode(''),'/55512/index.html','true',[ 
		['PAGE','60612',jdecode('Our+Mission%2FPurpose'),jdecode(''),'/55512/60612.html','true',[],'']
	],''],
	['PAGE','78612',jdecode('Prayer+Requests'),jdecode(''),'/78612.html','true',[],''],
	['PAGE','49854',jdecode('Store'),jdecode(''),'/49854.html','true',[],''],
	['PAGE','48312',jdecode('Seminars'),jdecode(''),'/48312.html','true',[],''],
	['PAGE','49875',jdecode('Free+Sermons'),jdecode(''),'/49875.html','true',[],''],
	['PAGE','81912',jdecode('Calendar'),jdecode(''),'/81912.html','true',[],''],
	['PAGE','49833',jdecode('Donations'),jdecode(''),'/49833.html','true',[],''],
	['PAGE','8552',jdecode('Contact+Us'),jdecode(''),'/8552.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='echo';
theSitetree.paletteFamily='7B4B70';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10623';
theSitetree.graphicsetId='10629';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'echo',
				paletteFamily: 	'7B4B70',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10623',
				graphicsetId: 	'10629',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20081208-174912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8552',
internalId:  '',
customField: '20081208-180635'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '49917',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48312',
internalId:  '',
customField: '20080914-043053'
};
webappMappings['7008']=webappMappings['7008-8472']={
webappId:    '7008',
documentId:  '8552',
internalId:  '8472',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-49917aendu0ine0pa']={
webappId:    '1002',
documentId:  '49917',
internalId:  '49917aendu0ine0pa',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-5131']={
webappId:    '7050',
documentId:  '49938',
internalId:  '5131',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49812',
internalId:  '',
customField: '20080914-042940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49833',
internalId:  '',
customField: '20081102-170939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49854',
internalId:  '',
customField: '20080913-183030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49875',
internalId:  '',
customField: '20080913-104929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49917',
internalId:  '',
customField: '20081205-163820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49938',
internalId:  '',
customField: '20080913-111905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52812',
internalId:  '',
customField: '20081016-120557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55512',
internalId:  '',
customField: '20081115-210133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58212',
internalId:  '',
customField: '20081115-210206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60612',
internalId:  '',
customField: '20081102-170710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67212',
internalId:  '',
customField: '20081102-020615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67912',
internalId:  '',
customField: '20081027-012146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69712',
internalId:  '',
customField: '20081027-133858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77612',
internalId:  '',
customField: '20081104-125555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77654',
internalId:  '',
customField: '20081115-210348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77633',
internalId:  '',
customField: '20081105-225151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78612',
internalId:  '',
customField: '20081104-144851'
};
webappMappings['7008']=webappMappings['7008-10244']={
webappId:    '7008',
documentId:  '78612',
internalId:  '10244',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81912',
internalId:  '',
customField: '20081106-121933'
};
webappMappings['1003']=webappMappings['1003-aendu0ine0pa11df59ace4b']={
webappId:    '1003',
documentId:  '85112',
internalId:  'aendu0ine0pa11df59ace4b',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85112',
internalId:  '',
customField: '20081205-163918'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INE0PA';
var companyName   = 'Al+Hibbert+Ministries';
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();
};
