/* [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','2501',jdecode('Home'),jdecode(''),'/2501.html','true',[],'',''],
	['PAGE','37612',jdecode('NEWS%21'),jdecode(''),'/37612.html','true',[],'',''],
	['PAGE','23301',jdecode('Benefits+Alerts'),jdecode(''),'/23301.html','true',[],'',''],
	['PAGE','23322',jdecode('Gap+Calculator'),jdecode(''),'/23322.html','true',[],'',''],
	['PAGE','23422',jdecode('Seminars'),jdecode(''),'/23422/index.html','true',[ 
		['PAGE','28001',jdecode('CSRS%2FFERS'),jdecode(''),'/23422/28001.html','true',[],'',''],
		['PAGE','28022',jdecode('Special+Provisions'),jdecode(''),'/23422/28022.html','true',[],'',''],
		['PAGE','28064',jdecode('Finanicial+Planning'),jdecode(''),'/23422/28064.html','true',[],'',''],
		['PAGE','28085',jdecode('Thrift+Savings+Plan'),jdecode(''),'/23422/28085.html','true',[],'',''],
		['PAGE','45685',jdecode('L+Fund'),jdecode(''),'/23422/45685.html','false',[],'',''],
		['PAGE','28106',jdecode('Become+Debt+Free'),jdecode(''),'/23422/28106.html','true',[],'',''],
		['PAGE','28301',jdecode('New+Employees'),jdecode(''),'/23422/28301.html','true',[],'','']
	],'',''],
	['PAGE','28401',jdecode('Personnelists+%2F+HR+'),jdecode(''),'/28401.html','true',[],'',''],
	['PAGE','28501',jdecode('About+Snow+Fed+Seminars'),jdecode(''),'/28501/index.html','true',[ 
		['PAGE','42367',jdecode('Meet+Our+Staff'),jdecode(''),'/28501/42367.html','true',[],'',''],
		['PAGE','44485',jdecode('Our+Instructors'),jdecode(''),'/28501/44485.html','true',[],'','']
	],'',''],
	['PAGE','30601',jdecode('Contact+Us'),jdecode(''),'/30601.html','true',[],'',''],
	['PAGE','32201',jdecode('Help+Desk'),jdecode(''),'/32201.html','true',[],'',''],
	['PAGE','28564',jdecode('Testimonials'),jdecode(''),'/28564.html','false',[],'',''],
	['PAGE','29501',jdecode('ChFEBC+Directory'),jdecode(''),'/29501.html','true',[],'',''],
	['PAGE','31901',jdecode('Seminar+Agendas'),jdecode(''),'/31901.html','true',[],'',''],
	['PAGE','36101',jdecode('Seminar+Request'),jdecode(''),'/36101.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='463';
theSitetree.contentColor='020E66';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Business',
				paletteFamily: 	'003366',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'463',
				contentColor: 	'020E66',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20100707-112039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28064',
internalId:  '',
customField: '20100513-154509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28022',
internalId:  '',
customField: '20100513-154353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20100101-093424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20090808-232628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20100701-133719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23322',
internalId:  '',
customField: '20100701-135432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23422',
internalId:  '',
customField: '20100513-154049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20100128-155036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28085',
internalId:  '',
customField: '20100129-171318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28106',
internalId:  '',
customField: '20090808-232240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20100101-122244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20100101-122349'
};
webappMappings['7008']=webappMappings['7008-10113']={
webappId:    '7008',
documentId:  '32201',
internalId:  '10113',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32201',
internalId:  '',
customField: '20090825-152303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28564',
internalId:  '',
customField: '20090808-164615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20100101-122653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20100513-155200'
};
webappMappings['7008']=webappMappings['7008-10106']={
webappId:    '7008',
documentId:  '30601',
internalId:  '10106',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37612',
internalId:  '',
customField: '20100513-153559'
};
webappMappings['1501']=webappMappings['1501-15841368']={
webappId:    '1501',
documentId:  '2501',
internalId:  '15841368',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-10457']={
webappId:    '7008',
documentId:  '36101',
internalId:  '10457',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20100128-160211'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42367',
internalId:  '',
customField: '20100629-134245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44485',
internalId:  '',
customField: '20100629-134328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45685',
internalId:  '',
customField: '20100129-171833'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH6DB';
var companyName   = 'Snow+Federal+Seminars%2C+Inc.';
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();
};
