/* [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','2120',jdecode('Home'),jdecode(''), jdecode('%2F2120.html'), 'true',[],'',''],
	['PAGE','2171',jdecode('About+Our+Mission'),jdecode(''), jdecode('%2F2171%2Findex.html'), 'true',[ 
		['PAGE','2192',jdecode('Home+of+the+Mission'),jdecode(''), jdecode('%2F2171%2F2192.html'), 'true',[],'',''],
		['PAGE','2234',jdecode('Our+Board+%26+Staff'),jdecode(''), jdecode('%2F2171%2F2234.html'), 'true',[],'',''],
		['PAGE','2255',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2171%2F2255.html'), 'true',[],'','']
	],'',''],
	['PAGE','2420',jdecode('S.A.M.+Thrift+Stores'),jdecode(''), jdecode('%2F2420%2Findex.html'), 'true',[ 
		['PAGE','2441',jdecode('McComb+Thrift+Store'),jdecode(''), jdecode('%2F2420%2F2441.html'), 'true',[],'',''],
		['PAGE','2462',jdecode('Brookhaven+Thrift+Store'),jdecode(''), jdecode('%2F2420%2F2462.html'), 'true',[],'',''],
		['PAGE','2483',jdecode('Natchez+Thrift+Store'),jdecode(''), jdecode('%2F2420%2F2483.html'), 'true',[],'',''],
		['PAGE','2504',jdecode('Hammond+Thrift+Store'),jdecode(''), jdecode('%2F2420%2F2504.html'), 'true',[],'','']
	],'',''],
	['PAGE','2525',jdecode('S.A.M.+Senior+Center'),jdecode(''), jdecode('%2F2525%2Findex.html'), 'true',[ 
		['PAGE','2546',jdecode('Calendar+of+Events'),jdecode(''), jdecode('%2F2525%2F2546.html'), 'true',[],'',''],
		['PAGE','2567',jdecode('Membership'),jdecode(''), jdecode('%2F2525%2F2567.html'), 'true',[],'',''],
		['PAGE','2588',jdecode('Facility+Rental'),jdecode(''), jdecode('%2F2525%2F2588.html'), 'true',[],'','']
	],'',''],
	['PAGE','2820',jdecode('Free+Medical+Clinic'),jdecode(''), jdecode('%2F2820.html'), 'true',[],'',''],
	['PAGE','2841',jdecode('S.A.M.%26%23x27%3Bs+Diner'),jdecode(''), jdecode('%2F2841.html'), 'true',[],'',''],
	['PAGE','2862',jdecode('Food+Pantry'),jdecode(''), jdecode('%2F2862.html'), 'true',[],'',''],
	['PAGE','33420',jdecode('G.E.D.+Courses'),jdecode(''), jdecode('%2F33420.html'), 'true',[],'',''],
	['PAGE','2883',jdecode('+Other+Ministries'),jdecode(''), jdecode('%2F2883.html'), 'true',[],'',''],
	['PAGE','33441',jdecode('Be+a+Volunteer'),jdecode(''), jdecode('%2F33441.html'), 'true',[],'',''],
	['PAGE','2904',jdecode('Shuffle+to+the+Chefs'),jdecode(''), jdecode('%2F2904%2Findex.html'), 'true',[ 
		['PAGE','2925',jdecode('2011+Chefs+%26+Food'),jdecode(''), jdecode('%2F2904%2F2925.html'), 'true',[],'',''],
		['PAGE','2946',jdecode('2011+Homes+%26+Chairmen'),jdecode(''), jdecode('%2F2904%2F2946.html'), 'true',[],'',''],
		['PAGE','2967',jdecode('2011+Shuffle+Sponsors'),jdecode(''), jdecode('%2F2904%2F2967.html'), 'true',[],'',''],
		['PAGE','2988',jdecode('Other+Shuffle+Info'),jdecode(''), jdecode('%2F2904%2F2988.html'), 'true',[],'','']
	],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1262';
theSitetree.keyvisualName='seminar.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='232';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'990000',
				keyvisualId: 	'1262',
				keyvisualName: 	'seminar.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'232',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2120',
internalId:  '',
customField: '20120107-080737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2420',
internalId:  '',
customField: '20110501-215206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2441',
internalId:  '',
customField: '20110501-201507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2525',
internalId:  '',
customField: '20120107-075434'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2120',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2171',
internalId:  '',
customField: '20110503-230310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2192',
internalId:  '',
customField: '20110501-212355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33420',
internalId:  '',
customField: '20110824-202745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2234',
internalId:  '',
customField: '20111107-203416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2255',
internalId:  '',
customField: '20110501-201157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2462',
internalId:  '',
customField: '20110426-220122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2483',
internalId:  '',
customField: '20110426-220412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2504',
internalId:  '',
customField: '20110426-220553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2546',
internalId:  '',
customField: '20120107-080446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2567',
internalId:  '',
customField: '20111106-123858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2588',
internalId:  '',
customField: '20111106-123947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2820',
internalId:  '',
customField: '20111107-211530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2841',
internalId:  '',
customField: '20110503-235803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2862',
internalId:  '',
customField: '20110504-000852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2883',
internalId:  '',
customField: '20110824-203343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2904',
internalId:  '',
customField: '20120107-081538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2925',
internalId:  '',
customField: '20110425-223748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2946',
internalId:  '',
customField: '20110425-223748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2967',
internalId:  '',
customField: '20110425-223748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2988',
internalId:  '',
customField: '20110425-223748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33441',
internalId:  '',
customField: '20110504-002638'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7KYAE';
var companyName   = 'St.+Andrew%27s+Mission';
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();
};

