/* [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','4801',jdecode('Home'),jdecode(''), jdecode('%2F4801.html'), 'true',[],'',''],
	['PAGE','4852',jdecode('Post+Officers'),jdecode(''), jdecode('%2F4852.html'), 'true',[],'',''],
	['PAGE','4873',jdecode('Canteen'),jdecode(''), jdecode('%2F4873%2Findex.html'), 'true',[ 
		['PAGE','12101',jdecode('Rental+Info'),jdecode(''), jdecode('%2F4873%2F12101.html'), 'true',[],'','']
	],'',''],
	['PAGE','4894',jdecode('Guestbook'),jdecode(''), jdecode('%2F4894.html'), 'true',[],'',''],
	['PAGE','64901',jdecode('Band+Schedule'),jdecode(''), jdecode('%2F64901.html'), 'true',[],'',''],
	['PAGE','4915',jdecode('Newsletters'),jdecode(''), jdecode('%2F4915%2Findex.html'), 'true',[ 
		['PAGE','64601',jdecode('Jan_Feb_2012'),jdecode(''), jdecode('%2F4915%2F64601.html'), 'true',[],'',''],
		['PAGE','62901',jdecode('Nov_Dec_2011'),jdecode(''), jdecode('%2F4915%2F62901.html'), 'true',[],'',''],
		['PAGE','59301',jdecode('Sept_Oct_2011'),jdecode(''), jdecode('%2F4915%2F59301.html'), 'true',[],'',''],
		['PAGE','58401',jdecode('July_Aug_2011'),jdecode(''), jdecode('%2F4915%2F58401.html'), 'true',[],'',''],
		['PAGE','56101',jdecode('May_June_2011'),jdecode(''), jdecode('%2F4915%2F56101.html'), 'true',[],'','']
	],'',''],
	['PAGE','4936',jdecode('Membership'),jdecode(''), jdecode('%2F4936.html'), 'true',[],'',''],
	['PAGE','12901',jdecode('Photos'),jdecode(''), jdecode('%2F12901.html'), 'true',[],'',''],
	['PAGE','4957',jdecode('Meetings'),jdecode(''), jdecode('%2F4957.html'), 'true',[],'',''],
	['PAGE','15401',jdecode('Contacts'),jdecode(''), jdecode('%2F15401.html'), 'true',[],'',''],
	['PAGE','4999',jdecode('Links'),jdecode(''), jdecode('%2F4999.html'), 'true',[],'',''],
	['PAGE','10901',jdecode('Map%2FDirections'),jdecode(''), jdecode('%2F10901.html'), 'true',[],'',''],
	['PAGE','23201',jdecode('VFW+Benefits'),jdecode(''), jdecode('%2F23201.html'), 'true',[],'',''],
	['PAGE','23222',jdecode('Why+Join%3F'),jdecode(''), jdecode('%2F23222.html'), 'true',[],'',''],
	['PAGE','32901',jdecode('Archived+Newsletters'),jdecode(''), jdecode('%2F32901%2Findex.html'), 'true',[ 
		['PAGE','52101',jdecode('Jan_Feb_2011'),jdecode(''), jdecode('%2F32901%2F52101.html'), 'true',[],'',''],
		['PAGE','53401',jdecode('Mar_Apr_2011'),jdecode(''), jdecode('%2F32901%2F53401.html'), 'true',[],'','']
	],'',''],
	['PAGE','33201',jdecode('NEW+GI+Bill+Benifits'),jdecode(''), jdecode('%2F33201.html'), 'true',[],'',''],
	['PAGE','55401',jdecode('Honor+Guard'),jdecode(''), jdecode('%2F55401.html'), 'true',[],'',''],
	['PAGE','60801',jdecode('In+Memory'),jdecode(''), jdecode('%2F60801.html'), 'true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Livinginamerica';
theSitetree.paletteFamily='6971B1';
theSitetree.keyvisualId='6305';
theSitetree.keyvisualName='kv_6305.jpg';
theSitetree.fontsetId='11151';
theSitetree.graphicsetId='11956';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D6DAF6';
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: 			'Livinginamerica',
				paletteFamily: 	'6971B1',
				keyvisualId: 	'6305',
				keyvisualName: 	'kv_6305.jpg',
				fontsetId: 		'11151',
				graphicsetId: 	'11956',
				contentColor: 	'000000',
				contentBGColor: 'D6DAF6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-4894aendu0in2253']={
webappId:    '1002',
documentId:  '4894',
internalId:  '4894aendu0in2253',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-10328337']={
webappId:    '1501',
documentId:  '4801',
internalId:  '10328337',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20110915-215533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4852',
internalId:  '',
customField: '20110917-091628'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4873',
internalId:  '',
customField: '20110906-150947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4915',
internalId:  '',
customField: '20101021-205302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4936',
internalId:  '',
customField: '20110906-151437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20100919-112001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4999',
internalId:  '',
customField: '20100919-112332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4894',
internalId:  '',
customField: '20080614-215345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20080614-220743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20080615-162329'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '10901',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100919-111850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52101',
internalId:  '',
customField: '20101224-142309'
};
webappMappings['7060']=webappMappings['7060-dc74767fdbb1460a52bdeafc285b1b0b']={
webappId:    '7060',
documentId:  '12901',
internalId:  'dc74767fdbb1460a52bdeafc285b1b0b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20110906-151041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20100919-112413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23222',
internalId:  '',
customField: '20100919-112437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20110630-151219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59301',
internalId:  '',
customField: '20110830-163532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20111018-104727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20111030-220428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20100425-061016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20100919-112449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20111211-133238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64901',
internalId:  '',
customField: '20111220-151155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20110302-151812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20110416-151816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20110501-080132'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2253';
var companyName   = 'VFW+Post+9927';
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();
};

