/* [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','22801',jdecode('Home'),jdecode(''), jdecode('%2F22801.html'), 'true',[],'',''],
	['PAGE','2122',jdecode('About'),jdecode(''), jdecode('%2F2122%2Findex.html'), 'true',[ 
		['PAGE','26201',jdecode('Vision'),jdecode(''), jdecode('%2F2122%2F26201.html'), 'true',[],'',''],
		['PAGE','2194',jdecode('Leadership'),jdecode(''), jdecode('%2F2122%2F2194.html'), 'true',[],'',''],
		['PAGE','2215',jdecode('Contact'),jdecode(''), jdecode('%2F2122%2F2215.html'), 'true',[],'','']
	],'',''],
	['PAGE','2236',jdecode('Calendar'),jdecode(''), jdecode('%2F2236%2Findex.html'), 'true',[ 
		['PAGE','2404',jdecode('Past+Events'),jdecode(''), jdecode('%2F2236%2F2404.html'), 'true',[],'',''],
		['PAGE','75361',jdecode('MDICI-V'),jdecode(''), jdecode('%2F2236%2F75361.html'), 'false',[],'',''],
		['PAGE','93472',jdecode('TECHINT-IV+Program'),jdecode(''), jdecode('%2F2236%2F93472.html'), 'false',[],'',''],
		['PAGE','75382',jdecode('Tom+Yehl'),jdecode(''), jdecode('%2F2236%2F75382.html'), 'false',[],'',''],
		['PAGE','33201',jdecode('Bob+Dixon'),jdecode(''), jdecode('%2F2236%2F33201.html'), 'false',[],'',''],
		['PAGE','32301',jdecode('Kevin+%22Spanky%22+Kirsch'),jdecode(''), jdecode('%2F2236%2F32301.html'), 'false',[],'',''],
		['PAGE','33222',jdecode('Matt+Pollard'),jdecode(''), jdecode('%2F2236%2F33222.html'), 'false',[],'',''],
		['PAGE','33701',jdecode('Shannon+McCallum'),jdecode(''), jdecode('%2F2236%2F33701.html'), 'false',[],'',''],
		['PAGE','33243',jdecode('TECHINT+II'),jdecode(''), jdecode('%2F2236%2F33243.html'), 'false',[],'',''],
		['PAGE','37701',jdecode('TECHINT+II+Agenda'),jdecode(''), jdecode('%2F2236%2F37701.html'), 'false',[],'',''],
		['PAGE','33264',jdecode('Advanced+Signatures'),jdecode(''), jdecode('%2F2236%2F33264.html'), 'false',[],'',''],
		['PAGE','33285',jdecode('MDICI-IV'),jdecode(''), jdecode('%2F2236%2F33285.html'), 'false',[],'',''],
		['PAGE','37722',jdecode('MDICI-IV+Agenda'),jdecode(''), jdecode('%2F2236%2F37722.html'), 'false',[],'',''],
		['PAGE','37001',jdecode('TECHINT+2008'),jdecode(''), jdecode('%2F2236%2F37001.html'), 'false',[],'',''],
		['PAGE','37743',jdecode('TECHINT+2008+Agenda'),jdecode(''), jdecode('%2F2236%2F37743.html'), 'false',[],'',''],
		['PAGE','37022',jdecode('WMD'),jdecode(''), jdecode('%2F2236%2F37022.html'), 'false',[],'',''],
		['PAGE','37764',jdecode('WMD+Agenda'),jdecode(''), jdecode('%2F2236%2F37764.html'), 'false',[],'',''],
		['PAGE','33306',jdecode('ONIR+Workshop'),jdecode(''), jdecode('%2F2236%2F33306.html'), 'false',[],'','']
	],'',''],
	['PAGE','2257',jdecode('Membership'),jdecode(''), jdecode('%2F2257%2Findex.html'), 'true',[ 
		['PAGE','2299',jdecode('Current+Members'),jdecode(''), jdecode('%2F2257%2F2299.html'), 'true',[],'',''],
		['PAGE','2320',jdecode('Join+Now'),jdecode(''), jdecode('%2F2257%2F2320.html'), 'true',[],'','']
	],'',''],
	['PAGE','2362',jdecode('Events'),jdecode(''), jdecode('%2F2362.html'), 'true',[],'',''],
	['PAGE','2425',jdecode('2011+Awards'),jdecode(''), jdecode('%2F2425%2Findex.html'), 'true',[ 
		['PAGE','78461',jdecode('Past+Award+Recipients'),jdecode(''), jdecode('%2F2425%2F78461.html'), 'true',[],'',''],
		['PAGE','17501',jdecode('2008+Recipients'),jdecode(''), jdecode('%2F2425%2F17501.html'), 'false',[],'',''],
		['PAGE','78482',jdecode('2009+Recipients'),jdecode(''), jdecode('%2F2425%2F78482.html'), 'false',[],'','']
	],'',''],
	['PAGE','76561',jdecode('News'),jdecode(''), jdecode('%2F76561.html'), 'true',[],'',''],
	['PAGE','2446',jdecode('Links'),jdecode(''), jdecode('%2F2446.html'), 'true',[],'',''],
	['PAGE','2467',jdecode('Store'),jdecode(''), jdecode('%2F2467.html'), 'true',[],'',''],
	['PAGE','2530',jdecode('Career+Center'),jdecode(''), jdecode('%2F2530.html'), 'true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				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:  '2122',
internalId:  '',
customField: '20110319-110323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2257',
internalId:  '',
customField: '20090723-212759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33243',
internalId:  '',
customField: '20090716-104246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2194',
internalId:  '',
customField: '20110319-114417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2215',
internalId:  '',
customField: '20111017-012705'
};
webappMappings['7008']=webappMappings['7008-2842']={
webappId:    '7008',
documentId:  '2215',
internalId:  '2842',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2236',
internalId:  '',
customField: '20110909-115217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2299',
internalId:  '',
customField: '20110705-134845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20090716-103513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2320',
internalId:  '',
customField: '20091028-105318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20090716-104104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2362',
internalId:  '',
customField: '20090723-213317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20090716-102439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2404',
internalId:  '',
customField: '20110909-114329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2425',
internalId:  '',
customField: '20111017-014526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2446',
internalId:  '',
customField: '20110926-134021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2467',
internalId:  '',
customField: '20090410-085619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78482',
internalId:  '',
customField: '20100407-222215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78461',
internalId:  '',
customField: '20111010-094219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2530',
internalId:  '',
customField: '20090727-093702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20100407-220507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33222',
internalId:  '',
customField: '20090716-103857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20111017-012623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20090831-151100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33264',
internalId:  '',
customField: '20090716-104434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33285',
internalId:  '',
customField: '20090727-154059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33306',
internalId:  '',
customField: '20090716-104855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20090727-144433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37022',
internalId:  '',
customField: '20090727-144608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37722',
internalId:  '',
customField: '20090727-145121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20090727-145121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37743',
internalId:  '',
customField: '20090727-145121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37764',
internalId:  '',
customField: '20090727-145121'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75361',
internalId:  '',
customField: '20100313-132802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75382',
internalId:  '',
customField: '20100313-132802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76561',
internalId:  '',
customField: '20100313-202501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93472',
internalId:  '',
customField: '20110130-094550'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLJBJ';
var companyName   = '';
var htmlTitle	  = 'ATIA+-+Advanced+Technical+Intelligence+Association';
var metaKeywords  = 'www.masint.com%3Bmasint%3B+masint+association%3B+atia%3B+technical+intelligence%3B+measurement+and+signatures+intelligence%3B+MASINT%3B+TECHINT';
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();
};

