/* [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 theSitetree=[ 
	['PAGE','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','2101',jdecode('About+Us'),jdecode(''),'/2101.html','true',[],''],
	['PAGE','2122',jdecode('Cruises'),jdecode(''),'/2122.html','true',[],''],
	['PAGE','2143',jdecode('Seminars'),jdecode(''),'/2143.html','true',[],''],
	['PAGE','2164',jdecode('Federal+Fund+Rates'),jdecode(''),'/2164.html','true',[],''],
	['PAGE','2185',jdecode('Tax+Planning+07'),jdecode(''),'/2185.html','true',[],''],
	['PAGE','50401',jdecode('New+Changes'),jdecode(''),'/50401.html','true',[],''],
	['PAGE','2206',jdecode('07+Key+figures'),jdecode(''),'/2206.html','true',[],''],
	['PAGE','2227',jdecode('Kansas+Info'),jdecode(''),'/2227.html','true',[],''],
	['PAGE','2248',jdecode('Missouri+Info'),jdecode(''),'/2248.html','true',[],''],
	['PAGE','26401',jdecode('Sec+529+Plans'),jdecode(''),'/26401.html','true',[],''],
	['PAGE','26422',jdecode('RMD+Tables'),jdecode(''),'/26422.html','true',[],''],
	['PAGE','26443',jdecode('I+BOnds'),jdecode(''),'/26443.html','true',[],''],
	['PAGE','26464',jdecode('AMT+Problems'),jdecode(''),'/26464.html','true',[],''],
	['PAGE','26485',jdecode('IRA+Errors'),jdecode(''),'/26485.html','true',[],''],
	['PAGE','26506',jdecode('HSA%26%23x27%3Bs'),jdecode(''),'/26506.html','true',[],''],
	['PAGE','62701',jdecode('Medicare+Tax+Headache'),jdecode(''),'/62701.html','true',[],''],
	['PAGE','63401',jdecode('Social+Security+Data+06-08'),jdecode(''),'/63401.html','true',[],''],
	['PAGE','63901',jdecode('1031+Exchanges'),jdecode(''),'/63901.html','true',[],''],
	['PAGE','64301',jdecode('Roth+-+to+convert+or+not+'),jdecode(''),'/64301.html','true',[],''],
	['PAGE','70701',jdecode('Shrinking+Pension+Payout'),jdecode(''),'/70701.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='3F70CF';
theSitetree.keyvisualId='7939';
theSitetree.keyvisualName='kv_7939.jpg';
theSitetree.fontsetId='16912';
theSitetree.graphicsetId='12323';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Trend',
				paletteFamily: 	'3F70CF',
				keyvisualId: 	'7939',
				keyvisualName: 	'kv_7939.jpg',
				fontsetId: 		'16912',
				graphicsetId: 	'12323',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20090904-124558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090904-124946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20070620-095716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20071101-083014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20090904-143336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20070627-094932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20070625-134622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20070618-131128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20070619-150852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2248',
internalId:  '',
customField: '20070619-155006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20070618-101028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26422',
internalId:  '',
customField: '20070719-131445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26443',
internalId:  '',
customField: '20070621-084659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26464',
internalId:  '',
customField: '20070618-101446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26485',
internalId:  '',
customField: '20070618-101744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26506',
internalId:  '',
customField: '20080117-114744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20070627-094836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20071019-121859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20070625-094239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20070620-151041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70701',
internalId:  '',
customField: '20070818-081932'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INVUJ9';
var companyName   = 'WELCOME+TO+OUR+NEW+EXPANDED+SITE+';
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();
};
