/* [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','743',jdecode('Welcome+Don+Carey'),jdecode(''),'/743.html','true',[],'',''],
	['PAGE','9922',jdecode('Retiree+Council+Info.+for+FL%2CGA%2C+SC'),jdecode(''),'/9922.html','true',[],'',''],
	['PAGE','701',jdecode('Important+Issues'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','31901',jdecode('Info+for+Retirees'),jdecode(''),'/31901.html','true',[],'',''],
	['PAGE','9943',jdecode('E-Mail+Received'),jdecode(''),'/9943.html','true',[],'',''],
	['PAGE','9985',jdecode('Special+Events'),jdecode(''),'/9985.html','true',[],'',''],
	['PAGE','9964',jdecode('VA+Information'),jdecode(''),'/9964.html','true',[],'',''],
	['PAGE','12001',jdecode('Vietnam'),jdecode(''),'/12001.html','true',[],'',''],
	['PAGE','15701',jdecode('+1st+Bge+101st++NAM'),jdecode(''),'/15701.html','true',[],'',''],
	['PAGE','18001',jdecode('TRICARE+For+Life'),jdecode(''),'/18001.html','true',[],'',''],
	['PAGE','29101',jdecode('Links'),jdecode(''),'/29101.html','true',[],'',''],
	['PAGE','11306',jdecode('Sign+Guestbook'),jdecode(''),'/11306/index.html','true',[ 
		['PAGE','11301',jdecode('Read+Guestbook'),jdecode(''),'/11306/11301.html','true',[],'','']
	],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Mondrian';
theSitetree.paletteFamily='3E51B5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10460';
theSitetree.graphicsetId='10886';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E51B5';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mondrian',
				paletteFamily: 	'3E51B5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10460',
				graphicsetId: 	'10886',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E51B5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D3D3D3',
				e_color: 		'D3D3D3',
				f_color: 		'D3D3D3',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '743',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-15446804']={
webappId:    '1501',
documentId:  '743',
internalId:  '15446804',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-11306aen010inzw6b']={
webappId:    '1002',
documentId:  '11306',
internalId:  '11306aen010inzw6b',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20091014-210501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '743',
internalId:  '',
customField: '20110320-162402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20091014-210355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9943',
internalId:  '',
customField: '20091014-205451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9964',
internalId:  '',
customField: '20091014-205835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9985',
internalId:  '',
customField: '20110320-163219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11306',
internalId:  '',
customField: '20090330-213550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20081104-084047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090330-214604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20090113-174728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20090330-215306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20090330-224122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20090426-214615'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INZW6B';
var companyName   = 'Military+Retirees%2FVeterans+FL%2C+GA%2C+SC';
var htmlTitle	  = 'VETERANS%2FMILITARY+RETIREE++ISSUES+BY+OLDSARGE79';
var metaKeywords  = 'Army%2C+Navy%2C+Air+Force%2C+Coast+Guard%2C+Marines%2C+Military%2C+Veterans%2Cwidows%2C+Retirees%2C+Vietnam%2C+Iraq+Veterans%2C+VFW%2C+DAV%2C+Disabled+Veterans%2CSeaBees%2C+NAUS%2C+NCOA%2C+American+Legion%2C+Korean+War%2C+Retirement+Services+Offices%2Camvets%2Cseebees%2Carmy+recruiting%2Cairborne%2CMilitary+Service%2CMilitary+Health+Care%2CTRICARE%2CTRICARE+for+Life%2CMilitary+Bases%2Coldsarge79%2Cthe+oldsarge%2Cveterans+with+disabilities%2C+benifits+veterans%2Cagent+orange%2C+military%2C+VA%2C+Military+Bases%2C+RAD%2C+Vietnam+Veterans';
var metaContents  = 'US+Army%2C+US+Navy%2C+US+Air+Force%2C+US+Marine+Corp%2C+US+Coast+Guard%2C%2CNational+Guard%2C+Reserves%2CNCOA%2C+VFW%2CDAV%2C+VA%2C+Armed+Forces%2C+TREA%2C+NAUS%2CAmerican+Legion%2CVietnam+Veterans%2C+Korean+Veterans%2C+Veterans+Benefits%2C+Florida+State+Veterans%2C+101st+Airborne+Division%2C+1st+Cav+Div.%2C+Combat+Engineer%2C+Military+widows%2C++Ft+Stewart%2C+GA%2C+McDill+AFB%2C+FL.%2C+Military+Associations%2CIraq+Veterans%2C+VA+Hospitals%2C+Army+Retirees%2C+Navy+Retirees%2C+Marine+Retiree%2C+Air+Force+Retiree%2CCoast+Guard+Retirees%2CRetirement+Services+++Offices%2Camvets%2Cseebees%2Camry+recruiting%2C+TRICARE%2C+TRICARE+For+Life%2CMilitary+Health+Care%2CMilitary+Bases%2Coldsarge79%2Cthe+oldsarge%2Cveterans+with+disabilities%2C+agent+orange%2Cmilitary%2C+VA%2CMilitary+Bases%2CRAD';
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();
};

