/* [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','10401',jdecode('Home'),jdecode(''),'/10401.html','true',[],'',''],
	['PAGE','58901',jdecode('APOL+Programs'),jdecode(''),'/58901.html','true',[],'',''],
	['PAGE','14901',jdecode('Donations'),jdecode(''),'/14901.html','true',[],'','']];
var siteelementCount=3;
theSitetree.topTemplateName='Analyzer';
theSitetree.paletteFamily='0F57A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10385';
theSitetree.graphicsetId='10574';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Analyzer',
				paletteFamily: 	'0F57A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10385',
				graphicsetId: 	'10574',
				contentColor: 	'FFFFFF',
				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:  '10401',
internalId:  '',
customField: '20110321-002507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20110321-002811'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC24M']={
webappId:    '5003',
documentId:  '10401',
internalId:  'tid:1;pid:WSCSYSSSSLYTC24M',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20100917-002216'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLA7Y';
var companyName   = 'African+People+of+Love+Global+Unification';
var htmlTitle	  = 'THE+AFRICAN+PEOPLE+OF+LOVE';
var metaKeywords  = 'black%2C+unity%2C+african%2C+fellowship%2C+god%2C+yah%2C+yahshua%2C+truth%2C+israel%2C+israelites%2C+righteousness%2C+faith%2C+love%2C+brotherhood%2C+sisterhood%2C+queens%2C+kings%2C';
var metaContents  = 'I+pledge+allegiance+to+my+African+people%2C+I+do+agree+to+uphold+this+covenant+that+is+written%2C+I+will+do+all+that+is+in+my+power+to+teach+and+promote+love+to+each+and+every+African+being...+I+will+uphold+love+in+my+community+and+I+will+not+turn+my+eyes+away+from+wrong+towards+my+African+people%2C+but+will+do+that+which+is+accountable+as+a+African+being+of+Love+to+put+an+end+to+that+which+is+wrong+and+does+nothing+but+hurt+and+pull+down+my+Africans.+I+also+make+a+covenant+to+uphold+the+laws+of+love+for+my+people+in+American+or+whatever+land+I+may+be+in+during+my+life+time+on+earth...+If+I+fail+to+uphold+this+covenant%2C+then+I+will+be+disfellowshipped+from+the+African+People...+I+also+agree+to+make+no+payments%2C+to+the+African+People+of+Love+Foundation%2C+but+I+do+agree+to+being+accountable+for+my+actions+at+all+time%2C+I+make+a+covenant+to+uphold+that+which+is+good+and+clean%2C+that+which+is+right+and+holy%2C+that+which+does+only+good+to+another...I+made+a+covenant+with+My+God+%28My+Afrikan+Nation%29+to+live+in+love+towards+them+at+all+times.embed+wmode%3Dopaque+src%3Dhttp%3A%2F%2Fstatic.ning.com%2Fsocialnetworkmain%2Fwidgets%2Fvideo%2Fflvplayer%2Fflvplayer.swf%3Fv%3D4.12.0%253A4f4c665+FlashVars%3Dconfig%3Dhttp%253A%252F%252Fletsgetfree.ning.com%252Fvideo%252Fvideo%252FshowPlayerConfig%253Fid%253D2112905%25253AVideo%25253A170815%2526ck%253D-amp%3Bvideo_smoothing%3Donamp%3Bautoplay%3Doffamp%3BisEmbedCode%3D1+width%3D456+height%3D344+bgColor%3D%23FF0000+scale%3Dnoscale+allowScriptAccess%3Dalways+allowFullScreen%3Dtrue+type%3Dapplication%2Fx-shockwave-flash+pluginspage%3Dhttp%3A%2F%2Fwww.macromedia.com%2Fgo%2Fgetflashplayer+%2Fembed+br+%2Fsmalla+href%3Dhttp%3A%2F%2Fletsgetfree.ning.com%2Fvideo%2FvideoFind+more+videos+like+this+on+emTHE+LIBERATION+UNIT%2Fem%2Fa%2Fsmallbr+%2FWHAT+ABOUT+PALESTINIANS%3F+Testimonies+from+Israeli+Jail+on+www.freegaza.orgobject+width%3D425+height%3D349param+name%3Dmovie+value%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2F9xRQey-93Rsborder%3D1color1%3D0x5d1719color2%3D0xcd311bhl%3Denfeature%3Dplayer_embeddedfs%3D1%2Fparamparam+name%3DallowFullScreen+value%3Dtrue%2Fparamparam+name%3DallowScriptAccess+value%3Dalways%2Fparamembed+src%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2F9xRQey-93Rsborder%3D1color1%3D0x5d1719color2%3D0xcd311bhl%3Denfeature%3Dplayer_embeddedfs%3D1+type%3Dapplication%2Fx-shockwave-flash+allowfullscreen%3Dtrue+allowScriptAccess%3Dalways+width%3D425+height%3D349%2Fembed%2FobjectIt+is+time+to+wake+up+Black+people+or+loose+that+which+you+have%2C+your+life%21object+width%3D425+height%3D344param+name%3Dmovie+value%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2FuymThMq_R9Acolor1%3D0xb1b1b1color2%3D0xcfcfcffeature%3Dplayer_embeddedfs%3D1%2Fparamparam+name%3DallowFullScreen+value%3Dtrue%2Fparamparam+name%3DallowScriptAccess+value%3Dalways%2Fparamembed+src%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2FuymThMq_R9Acolor1%3D0xb1b1b1color2%3D0xcfcfcffeature%3Dplayer_embeddedfs%3D1+type%3Dapplication%2Fx-shockwave-flash+allowfullscreen%3Dtrue+allowScriptAccess%3Dalways+width%3D425+height%3D344%2Fembed%2Fobject+http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuymThMq_R9Afeature%3Dplayer_embedded+object+width%3D425+height%3D344param+name%3Dmovie+value%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2FbbDo2WfR5PIcolor1%3D0xb1b1b1color2%3D0xcfcfcfhl%3Denfeature%3Dplayer_embeddedfs%3D1%2Fparamparam+name%3DallowFullScreen+value%3Dtrue%2Fparamparam+name%3DallowScriptAccess+value%3Dalways%2Fparamembed+src%3Dhttp%3A%2F%2Fwww.youtube.com%2Fv%2FbbDo2WfR5PIcolor1%3D0xb1b1b1color2%3D0xcfcfcfhl%3Denfeature%3Dplayer_embeddedfs%3D1+type%3Dapplication%2Fx-shockwave-flash+allowfullscreen%3Dtrue+allowScriptAccess%3Dalways+width%3D425+height%3D344%2Fembed%2FobjectI+pledge+allegiance+to+my+African+people%2C+I+do+agree+to+uphold+this+covenant+that+is+written%2C+I+will+do+all+that+is+in+my+power+to+teach+and+promote+love+to+each+and+every+African+being...+I+will+uphold+love+in+my+community+and+I+will+not+turn+my+eyes+away+from+wrong+towards+my+African+people%2C+but+will+do+that+which+is+accountable+as+a+African+being+of+Love+to+put+an+end+to+that+which+is+wrong+and+does+nothing+but+hurt+and+pull+down+my+Africans.+I+also+make+a+covenant+to+uphold+the+laws+of+love+for+my+people+in+American+or+whatever+land+I+may+be+in+during+my+life+time+on+earth...+If+I+fail+to+uphold+this+covenant%2C+then+I+will+be+disfellowshipped+from+the+African+People...+I+also+agree+to+make+no+payments%2C+to+the+African+People+of+Love+Foundation%2C+but+I+do+agree+to+being+accountable+for+my+actions+at+all+time%2C+I+make+a+covenant+to+uphold+that+which+is+good+and+clean%2C+that+which+is+right+and+holy%2C+that+which+does+only+good+to+another...I+made+a+covenant+with+My+God+%28My+Afrikan+Nation%29+to+live+in+love+towards+them+at+all+times.';
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();
};

