/* [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','3101',jdecode('Home'),jdecode(''),'/3101.html','true',[],'',''],
	['PAGE','41543',jdecode('Veterans+Day+2011'),jdecode(''),'/41543.html','true',[],'',''],
	['PAGE','73243',jdecode('Fourth+of+July'),jdecode(''),'/73243.html','false',[],'',''],
	['PAGE','62643',jdecode('SitRep+-+Memorial+Day+2011'),jdecode(''),'/62643.html','true',[],'',''],
	['PAGE','58643',jdecode('Andrews+AFB+Airshow+2011'),jdecode(''),'/58643.html','false',[],'',''],
	['PAGE','51943',jdecode('Memorial+Day+2011'),jdecode(''),'/51943.html','false',[],'',''],
	['PAGE','64843',jdecode('SitRep+-+National+Reunion'),jdecode(''),'/64843.html','true',[],'',''],
	['PAGE','61643',jdecode('SitRep+-+Andrews+JSOH'),jdecode(''),'/61643.html','false',[],'',''],
	['PAGE','26943',jdecode('Chapter+%2F+Div+News'),jdecode(''),'/26943.html','true',[],'',''],
	['PAGE','35543',jdecode('Chapter+Newsletters'),jdecode(''),'/35543/index.html','true',[ 
		['PAGE','66043',jdecode('Current+Newsletter'),jdecode(''),'/35543/66043.html','true',[],'',''],
		['PAGE','59443',jdecode('May+2010'),jdecode(''),'/35543/59443.html','true',[],'',''],
		['PAGE','56043',jdecode('February+2010'),jdecode(''),'/35543/56043.html','true',[],'',''],
		['PAGE','44843',jdecode('October+2009'),jdecode(''),'/35543/44843.html','true',[],'',''],
		['PAGE','28643',jdecode('May+2009'),jdecode(''),'/35543/28643.html','true',[],'',''],
		['PAGE','37143',jdecode('February+2009'),jdecode(''),'/35543/37143.html','true',[],'',''],
		['PAGE','36643',jdecode('October+2008'),jdecode(''),'/35543/36643.html','true',[],'',''],
		['PAGE','36343',jdecode('June+2008'),jdecode(''),'/35543/36343.html','true',[],'',''],
		['PAGE','35564',jdecode('March+2007'),jdecode(''),'/35543/35564.html','true',[],'','']
	],'',''],
	['PAGE','3194',jdecode('Chapter+Officers'),jdecode(''),'/3194.html','true',[],'',''],
	['PAGE','3152',jdecode('Chapter+Calendar'),jdecode(''),'/3152.html','false',[],'',''],
	['PAGE','3236',jdecode('Join+the+Chapter'),jdecode(''),'/3236.html','true',[],'',''],
	['PAGE','7322',jdecode('Wounded+Eagle+Support'),jdecode(''),'/7322.html','true',[],'',''],
	['PAGE','55143',jdecode('Arlington+Interment+Services'),jdecode(''),'/55143.html','true',[],'',''],
	['PAGE','7301',jdecode('Memorials'),jdecode(''),'/7301/index.html','true',[ 
		['PAGE','27143',jdecode('Army+Pfc.+David+H.+Sharrett+II+'),jdecode(''),'/7301/27143.html','true',[],'',''],
		['PAGE','49543',jdecode('Richard+Pauley+101st+ABN+ADA'),jdecode(''),'/7301/49543.html','true',[],'','']
	],'',''],
	['PAGE','28043',jdecode('101st+License+Plates'),jdecode(''),'/28043.html','true',[],'',''],
	['PAGE','25943',jdecode('Photos'),jdecode(''),'/25943.html','true',[],'',''],
	['PAGE','26343',jdecode('Planning+a+trip+to+DC%3F'),jdecode(''),'/26343/index.html','true',[ 
		['PAGE','25964',jdecode('Weather+in+Washington+DC'),jdecode(''),'/26343/25964.html','true',[],'',''],
		['PAGE','26364',jdecode('Sheraton+National+Hotel'),jdecode(''),'/26343/26364.html','true',[],'',''],
		['PAGE','52443',jdecode('Interesting+facts+about+the+Tomb+of+the+Unknowns'),jdecode(''),'/26343/52443.html','true',[],'','']
	],'',''],
	['PAGE','23401',jdecode('Guest+Book'),jdecode(''),'/23401.html','true',[],'',''],
	['PAGE','33543',jdecode('Search+Our+Site'),jdecode(''),'/33543.html','true',[],'',''],
	['PAGE','3215',jdecode('Contact'),jdecode(''),'/3215.html','true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20100824-181117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3152',
internalId:  '',
customField: '20090617-172231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3194',
internalId:  '',
customField: '20110601-145310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49543',
internalId:  '',
customField: '20091027-221210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41543',
internalId:  '',
customField: '20111006-122516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3215',
internalId:  '',
customField: '20091029-195807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3236',
internalId:  '',
customField: '20100213-184501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20100828-140140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20091027-131909'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '33543',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-17310']={
webappId:    '7008',
documentId:  '3215',
internalId:  '17310',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44843',
internalId:  '',
customField: '20100304-225446'
};
webappMappings['1002']=webappMappings['1002-23401aendu0in3ihc']={
webappId:    '1002',
documentId:  '23401',
internalId:  '23401aendu0in3ihc',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20090606-005638'
};
webappMappings['7080']=webappMappings['7080-528']={
webappId:    '7080',
documentId:  '25964',
internalId:  '528',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25964',
internalId:  '',
customField: '20090605-123703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25943',
internalId:  '',
customField: '20090618-113602'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '26364',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26343',
internalId:  '',
customField: '20091107-150239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26364',
internalId:  '',
customField: '20090616-123724'
};
webappMappings['7050']=webappMappings['7050-10015']={
webappId:    '7050',
documentId:  '26943',
internalId:  '10015',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26943',
internalId:  '',
customField: '20090605-132832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27143',
internalId:  '',
customField: '20090605-133833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28043',
internalId:  '',
customField: '20090618-113805'
};
webappMappings['7008']=webappMappings['7008-17392']={
webappId:    '7008',
documentId:  '28043',
internalId:  '17392',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28643',
internalId:  '',
customField: '20091014-121446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33543',
internalId:  '',
customField: '20090617-175954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35543',
internalId:  '',
customField: '20100901-215254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35564',
internalId:  '',
customField: '20090619-112812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36343',
internalId:  '',
customField: '20090619-120710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36643',
internalId:  '',
customField: '20090619-123956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37143',
internalId:  '',
customField: '20090621-234951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55143',
internalId:  '',
customField: '20110331-174120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51943',
internalId:  '',
customField: '20110426-164029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52443',
internalId:  '',
customField: '20091107-215416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56043',
internalId:  '',
customField: '20100511-144856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58643',
internalId:  '',
customField: '20110331-180243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59443',
internalId:  '',
customField: '20100511-144811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61643',
internalId:  '',
customField: '20100518-120700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62643',
internalId:  '',
customField: '20110601-233454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64843',
internalId:  '',
customField: '20100828-141410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66043',
internalId:  '',
customField: '20100901-215855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73243',
internalId:  '',
customField: '20110613-213705'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3IHC';
var companyName   = 'National+Capital+Area+Chapter+';
var htmlTitle	  = 'National+Capital+Area+Chapter+of+the+101st+Airborne+Division+Association+';
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();
};

