/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','5001',jdecode('About+us'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5022',jdecode('Staff+and+Facilities'),jdecode(''),'/5022.html','true',[],'',''],
	['PAGE','5253',jdecode('To+Donate'),jdecode(''),'/5253.html','true',[],'',''],
	['PAGE','79612',jdecode('SDMOM+in+Cityfest'),jdecode(''),'/79612.html','true',[],'',''],
	['PAGE','5043',jdecode('Schedule+of+Services'),jdecode(''),'/5043.html','true',[],'',''],
	['PAGE','5106',jdecode('Warehouse'),jdecode(''),'/5106.html','true',[],'',''],
	['PAGE','5190',jdecode('How+You+Can+Help'),jdecode(''),'/5190.html','true',[],'',''],
	['PAGE','19201',jdecode('Newsletter'),jdecode(''),'/19201.html','true',[],'',''],
	['PAGE','45843',jdecode('Operations+and+News'),jdecode(''),'/45843.html','true',[],'',''],
	['PAGE','30201',jdecode('SDMOM+at+work'),jdecode(''),'/30201.html','true',[],'',''],
	['PAGE','5232',jdecode('Special+Events'),jdecode(''),'/5232.html','true',[],'',''],
	['PAGE','59600',jdecode('Testimonials'),jdecode(''),'/59600.html','true',[],'',''],
	['PAGE','23801',jdecode('Awards'),jdecode(''),'/23801.html','true',[],'',''],
	['PAGE','5211',jdecode('Photo+Gallery'),jdecode(''),'/5211.html','true',[],'',''],
	['PAGE','5295',jdecode('List+of+Supporters'),jdecode(''),'/5295.html','true',[],'',''],
	['PAGE','5337',jdecode('Meetings'),jdecode(''),'/5337.html','true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C00405';
theSitetree.keyvisualId='2495';
theSitetree.keyvisualName='empty.jpg';
theSitetree.fontsetId='434';
theSitetree.graphicsetId='487';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Aeskulap',
				paletteFamily: 	'C00405',
				keyvisualId: 	'2495',
				keyvisualName: 	'empty.jpg',
				fontsetId: 		'434',
				graphicsetId: 	'487',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5337',
internalId:  '',
customField: '20100617-134927'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100705-201849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5253',
internalId:  '',
customField: '20100530-231841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20100629-172637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20100621-151637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5190',
internalId:  '',
customField: '20100530-232226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59600',
internalId:  '',
customField: '20100227-204929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45843',
internalId:  '',
customField: '20100530-230626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20100403-191408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100617-134011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20100629-172716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5232',
internalId:  '',
customField: '20100530-232414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20100617-134653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20100516-194201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79612',
internalId:  '',
customField: '20100705-202528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5211',
internalId:  '',
customField: '20100530-230754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5295',
internalId:  '',
customField: '20100530-231117'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INX2GD';
var companyName   = 'San+Diego+Military+Outreach+Ministries';
var htmlTitle	  = '';
var metaKeywords  = 'military+families+children+San+Diego+Christian+food+service+military+bases+Navy+Marines+outreach';
var metaContents  = 'San+Diego+Military+Outreach+Ministries+helps+all+junior+enlisted+San+Diego+military+families+with+weekly+food+distribution+and+supplemental+infant+supplies.+We+provide+used+furniture%2C+childrens+clothing+and+household+items+to+these+families+from+our+warehouse+at+Marine+Corps+Air+Station+at+Miramar.';
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();
};
