/* [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','1901',jdecode('+Home'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','46701',jdecode('Announcements'),jdecode(''), jdecode('%2F46701.html'), 'false',[],'',''],
	['PAGE','2078',jdecode('Itinerary'),jdecode(''), jdecode('%2F2078.html'), 'true',[],'',''],
	['PAGE','7001',jdecode('Susan%26%23x27%3Bs+Bio'),jdecode(''), jdecode('%2F7001.html'), 'true',[],'',''],
	['PAGE','154718',jdecode('Prophetic+Diary'),jdecode(''), jdecode('%2F154718.html'), 'true',[],'',''],
	['PAGE','2401',jdecode('Archives'),jdecode(''), jdecode('%2F2401.html'), 'true',[],'',''],
	['PAGE','136218',jdecode('IOHG+Blog'),jdecode(''), jdecode('%2F136218.html'), 'true',[],'',''],
	['PAGE','64601',jdecode('Glory+Ones+Forum'),jdecode(''), jdecode('%2F64601.html'), 'true',[],'',''],
	['PAGE','155418',jdecode('Radio+Programs'),jdecode(''), jdecode('%2F155418.html'), 'true',[],'',''],
	['PAGE','141318',jdecode('Hunger+Watch'),jdecode(''), jdecode('%2F141318.html'), 'true',[],'',''],
	['PAGE','37001',jdecode('John+Gila'),jdecode(''), jdecode('%2F37001.html'), 'true',[],'',''],
	['PAGE','7101',jdecode('Other+Voices'),jdecode(''), jdecode('%2F7101.html'), 'true',[],'',''],
	['PAGE','134518',jdecode('E.P.I.C.'),jdecode(''), jdecode('%2F134518.html'), 'true',[],'',''],
	['PAGE','55501',jdecode('2011++Meetings'),jdecode(''), jdecode('%2F55501.html'), 'false',[],'',''],
	['PAGE','122618',jdecode('GOR+Conference'),jdecode(''), jdecode('%2F122618.html'), 'false',[],'',''],
	['PAGE','125318',jdecode('ARK%2FOK+Gathering'),jdecode(''), jdecode('%2F125318.html'), 'false',[],'',''],
	['PAGE','2057',jdecode('Meetings'),jdecode(''), jdecode('%2F2057.html'), 'false',[],'',''],
	['PAGE','133718',jdecode('2011'),jdecode(''), jdecode('%2F133718.html'), 'false',[],'',''],
	['PAGE','153518',jdecode('Prophetic+Releases'),jdecode(''), jdecode('%2F153518.html'), 'false',[],'',''],
	['PAGE','35401',jdecode('2010'),jdecode(''), jdecode('%2F35401.html'), 'false',[],'',''],
	['PAGE','1994',jdecode('Visitations'),jdecode(''), jdecode('%2F1994.html'), 'false',[],'',''],
	['PAGE','2036',jdecode('Alerts%2FWarnings'),jdecode(''), jdecode('%2F2036.html'), 'false',[],'',''],
	['PAGE','112996',jdecode('Heart+Tracks'),jdecode(''), jdecode('%2F112996.html'), 'false',[],'',''],
	['PAGE','118596',jdecode('Moments+In+Time'),jdecode(''), jdecode('%2F118596.html'), 'false',[],'',''],
	['PAGE','87112',jdecode('Audio+Files'),jdecode(''), jdecode('%2F87112.html'), 'false',[],'',''],
	['PAGE','71101',jdecode('Nation+Words'),jdecode(''), jdecode('%2F71101.html'), 'false',[],'',''],
	['PAGE','2015',jdecode('Articles'),jdecode(''), jdecode('%2F2015.html'), 'false',[],'',''],
	['PAGE','46001',jdecode('Heart+Tracks'),jdecode(''), jdecode('%2F46001.html'), 'false',[],'',''],
	['PAGE','61501',jdecode('Media'),jdecode(''), jdecode('%2F61501.html'), 'false',[],'',''],
	['PAGE','101496',jdecode('Gods+Love-abet'),jdecode(''), jdecode('%2F101496.html'), 'true',[],'',''],
	['PAGE','89929',jdecode('Jeffrey+Stewart'),jdecode(''), jdecode('%2F89929.html'), 'false',[],'',''],
	['PAGE','50401',jdecode('I+Know'),jdecode(''), jdecode('%2F50401.html'), 'true',[],'',''],
	['PAGE','138718',jdecode('I+AM'),jdecode(''), jdecode('%2F138718.html'), 'true',[],'',''],
	['PAGE','50101',jdecode('Dream+Symbols'),jdecode(''), jdecode('%2F50101.html'), 'true',[],'',''],
	['PAGE','37201',jdecode('Sardius%2FEmerald'),jdecode(''), jdecode('%2F37201.html'), 'false',[],'',''],
	['PAGE','37501',jdecode('Jeff+Rodrick'),jdecode(''), jdecode('%2F37501.html'), 'false',[],'',''],
	['PAGE','131918',jdecode('Market+Place+Businesses'),jdecode(''), jdecode('%2F131918.html'), 'true',[],'',''],
	['PAGE','74412',jdecode('Wedding+Pics'),jdecode(''), jdecode('%2F74412.html'), 'true',[],'',''],
	['PAGE','2099',jdecode('Photos'),jdecode(''), jdecode('%2F2099.html'), 'true',[],'',''],
	['PAGE','13501',jdecode('Calendar'),jdecode(''), jdecode('%2F13501.html'), 'true',[],'',''],
	['PAGE','2162',jdecode('Weather'),jdecode(''), jdecode('%2F2162.html'), 'true',[],'',''],
	['PAGE','2204',jdecode('Map'),jdecode(''), jdecode('%2F2204.html'), 'true',[],'',''],
	['PAGE','1952',jdecode('Donations'),jdecode(''), jdecode('%2F1952.html'), 'true',[],'',''],
	['PAGE','62101',jdecode('Mailing+List'),jdecode(''), jdecode('%2F62101.html'), 'false',[],'',''],
	['PAGE','2183',jdecode('Guestbook'),jdecode(''), jdecode('%2F2183.html'), 'true',[],'',''],
	['PAGE','11001',jdecode('Just+For+Fun'),jdecode(''), jdecode('%2F11001.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10466';
theSitetree.graphicsetId='10916';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stars',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10466',
				graphicsetId: 	'10916',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'000000',
				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: '20110927-013730'
};
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: '20120107-105711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20120107-110457'
};
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: '20110511-004713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20120201-090110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20091011-163832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20110416-142106'
};
webappMappings['7050']=webappMappings['7050-5886']={
webappId:    '7050',
documentId:  '153518',
internalId:  '5886',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100820-013113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20110316-031913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20120107-102235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20100609-165629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20081103-191913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141318',
internalId:  '',
customField: '20120107-105929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20100323-035000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2204',
internalId:  '',
customField: '20081225-133759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20110910-235520'
};
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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20111103-165219'
};
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: '20110601-153952'
};
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: '20100422-022021'
};
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: '20100809-212616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101496',
internalId:  '',
customField: '20091219-080132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112996',
internalId:  '',
customField: '20101123-063938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118596',
internalId:  '',
customField: '20100421-104822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122618',
internalId:  '',
customField: '20100809-211003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125318',
internalId:  '',
customField: '20100810-165148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131918',
internalId:  '',
customField: '20101203-002201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133718',
internalId:  '',
customField: '20110101-211508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134518',
internalId:  '',
customField: '20110319-014055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136218',
internalId:  '',
customField: '20110102-035503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138718',
internalId:  '',
customField: '20110111-072738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153518',
internalId:  '',
customField: '20111023-054917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154718',
internalId:  '',
customField: '20120201-090854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155418',
internalId:  '',
customField: '20120107-101155'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker02.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();
};

