/* [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','1901',jdecode('+Home'),jdecode(''),'/1901.html','true',[],''],
	['PAGE','46701',jdecode('Announcements'),jdecode(''),'/46701.html','false',[],''],
	['PAGE','2078',jdecode('Itinerary'),jdecode(''),'/2078.html','true',[],''],
	['PAGE','55501',jdecode('Conference'),jdecode(''),'/55501.html','true',[],''],
	['PAGE','7001',jdecode('Susan%26%23x27%3Bs+Bio'),jdecode(''),'/7001.html','true',[],''],
	['PAGE','2057',jdecode('Meetings'),jdecode(''),'/2057.html','false',[],''],
	['PAGE','35401',jdecode('2010'),jdecode(''),'/35401.html','true',[],''],
	['PAGE','2036',jdecode('Alerts%2FWarnings'),jdecode(''),'/2036.html','true',[],''],
	['PAGE','1973',jdecode('Prophetic+Words'),jdecode(''),'/1973.html','true',[],''],
	['PAGE','1994',jdecode('Visitations'),jdecode(''),'/1994.html','true',[],''],
	['PAGE','87112',jdecode('Audio+Files'),jdecode(''),'/87112.html','true',[],''],
	['PAGE','71101',jdecode('Nation+Words'),jdecode(''),'/71101.html','true',[],''],
	['PAGE','2015',jdecode('Articles'),jdecode(''),'/2015.html','true',[],''],
	['PAGE','46001',jdecode('Heart+Tracks'),jdecode(''),'/46001.html','false',[],''],
	['PAGE','61501',jdecode('Media'),jdecode(''),'/61501.html','false',[],''],
	['PAGE','50101',jdecode('Dream+Symbols'),jdecode(''),'/50101.html','true',[],''],
	['PAGE','7101',jdecode('Other+Voices'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','37001',jdecode('John+Gila'),jdecode(''),'/37001.html','true',[],''],
	['PAGE','89929',jdecode('Jeffrey+Stewart'),jdecode(''),'/89929.html','true',[],''],
	['PAGE','37201',jdecode('Sardius%2FEmerald'),jdecode(''),'/37201.html','false',[],''],
	['PAGE','64601',jdecode('Glory+Ones+Forum'),jdecode(''),'/64601.html','true',[],''],
	['PAGE','37501',jdecode('Jeff+Rodrick'),jdecode(''),'/37501.html','false',[],''],
	['PAGE','101496',jdecode('Gods+Love-abet'),jdecode(''),'/101496.html','true',[],''],
	['PAGE','50401',jdecode('I+Know'),jdecode(''),'/50401.html','true',[],''],
	['PAGE','2401',jdecode('Archives'),jdecode(''),'/2401.html','true',[],''],
	['PAGE','74412',jdecode('Wedding+Pics'),jdecode(''),'/74412.html','true',[],''],
	['PAGE','2099',jdecode('Photos'),jdecode(''),'/2099.html','true',[],''],
	['PAGE','12601',jdecode('Links'),jdecode(''),'/12601.html','true',[],''],
	['PAGE','13501',jdecode('Calendar'),jdecode(''),'/13501.html','true',[],''],
	['PAGE','2162',jdecode('Weather'),jdecode(''),'/2162.html','true',[],''],
	['PAGE','2204',jdecode('Map'),jdecode(''),'/2204.html','true',[],''],
	['PAGE','1952',jdecode('Contact'),jdecode(''),'/1952.html','true',[],''],
	['PAGE','62101',jdecode('Mailing+List'),jdecode(''),'/62101.html','true',[],''],
	['PAGE','2183',jdecode('Guestbook'),jdecode(''),'/2183.html','true',[],''],
	['PAGE','11001',jdecode('Just+For+Fun'),jdecode(''),'/11001.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='6A0D0D';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10466';
theSitetree.graphicsetId='10915';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6A0D0D';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Stars',
				paletteFamily: 	'6A0D0D',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10466',
				graphicsetId: 	'10915',
				contentColor: 	'FFFFFF',
				contentBGColor: '6A0D0D',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'6A0D0D',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35401',
internalId:  '',
customField: '20100101-015107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20100218-100803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20081103-193306'
};
webappMappings['7060']=webappMappings['7060-3df6632113384a88769f07f9b53c17c2']={
webappId:    '7060',
documentId:  '2099',
internalId:  '3df6632113384a88769f07f9b53c17c2',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100122-020428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20091105-172625'
};
webappMappings['7080']=webappMappings['7080-302']={
webappId:    '7080',
documentId:  '2162',
internalId:  '302',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-2183aendu0ine7wt']={
webappId:    '1002',
documentId:  '2183',
internalId:  '2183aendu0ine7wt',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2204',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20091007-202325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20100218-102119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20091011-163832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20100304-044521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20081225-132653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100218-093824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20090531-152704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20090824-045654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20090518-013842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20081103-191913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20091014-164753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20090203-011126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2204',
internalId:  '',
customField: '20081225-133759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100218-102603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2183',
internalId:  '',
customField: '20090520-224023'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-13019802']={
webappId:    '1501',
documentId:  '1901',
internalId:  '13019802',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-5886']={
webappId:    '7050',
documentId:  '1973',
internalId:  '5886',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20100218-101717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37201',
internalId:  '',
customField: '20081225-133340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37501',
internalId:  '',
customField: '20081225-131456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20090610-224708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46701',
internalId:  '',
customField: '20090516-095450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20090212-165757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20090212-170556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20090824-045939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62101',
internalId:  '',
customField: '20090618-002254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20091014-175109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20090610-214748'
};
webappMappings['7060']=webappMappings['7060-a12012b4c58c4a35f48b00ee26881fc5']={
webappId:    '7060',
documentId:  '74412',
internalId:  'a12012b4c58c4a35f48b00ee26881fc5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74412',
internalId:  '',
customField: '20090611-005006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87112',
internalId:  '',
customField: '20091011-160836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89929',
internalId:  '',
customField: '20091208-225627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101496',
internalId:  '',
customField: '20091219-080132'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE7WT';
var companyName   = 'In+The+Image+Of+His+Glory+Ministries';
var htmlTitle	  = 'Prophecy';
var metaKeywords  = '';
var metaContents  = 'Prophecy%2C+Healing%2C+Miracles%2C+Prayer%2C+Angels%2C+Missions';
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();
};
