/* [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','401',jdecode('HOME'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','4769',jdecode('ABOUT+US'),jdecode(''),'/4769/index.html','true',[ 
		['PAGE','4622',jdecode('Board+of+Directors'),jdecode(''),'/4769/4622.html','true',[],'',''],
		['PAGE','100715',jdecode('Policy%2FConstitution'),jdecode(''),'/4769/100715.html','true',[],'',''],
		['PAGE','146343',jdecode('Forms+to+Download'),jdecode(''),'/4769/146343.html','true',[],'','']
	],'',''],
	['PAGE','4664',jdecode('CALENDAR'),jdecode(''),'/4664.html','true',[],'',''],
	['PAGE','132543',jdecode('REP+COUNCIL'),jdecode(''),'/132543/index.html','true',[ 
		['PAGE','49001',jdecode('2009+Rep+Council+Attendance'),jdecode(''),'/132543/49001.html','true',[],'',''],
		['PAGE','132564',jdecode('Committee+Reports'),jdecode(''),'/132543/132564.html','true',[],'','']
	],'',''],
	['PAGE','4601',jdecode('MEMBERS'),jdecode(''),'/4601/index.html','true',[ 
		['PAGE','48401',jdecode('Member+Benefits'),jdecode(''),'/4601/48401.html','true',[],'','']
	],'',''],
	['PAGE','30301',jdecode('PROFESSIONAL+DEVEL.'),jdecode(''),'/30301/index.html','true',[ 
		['PAGE','131843',jdecode('IPD+Committee'),jdecode(''),'/30301/131843.html','true',[],'','']
	],'',''],
	['PAGE','4643',jdecode('EVENTS'),jdecode(''),'/4643/index.html','true',[ 
		['PAGE','152243',jdecode('PRIDE+FAIR+2010'),jdecode(''),'/4643/152243.html','true',[],'',''],
		['PAGE','74115',jdecode('PRIDE+FAIR+2009'),jdecode(''),'/4643/74115.html','true',[],'',''],
		['PAGE','113043',jdecode('NJEA+Convention+Hall+09'),jdecode(''),'/4643/113043.html','true',[],'',''],
		['PAGE','117743',jdecode('MCEA+Bally%26%23x27%3Bs+Reception+09'),jdecode(''),'/4643/117743.html','true',[],'',''],
		['PAGE','77615',jdecode('MCEA+Awards+Dinner+2009'),jdecode(''),'/4643/77615.html','true',[],'',''],
		['PAGE','163543',jdecode('LAT+Dinner+2010'),jdecode(''),'/4643/163543.html','true',[],'',''],
		['PAGE','77636',jdecode('NEA%2FRA+San+Diego+09'),jdecode(''),'/4643/77636.html','true',[],'',''],
		['PAGE','130143',jdecode('MCEA+4th+of+July+09'),jdecode(''),'/4643/130143.html','true',[],'','']
	],'',''],
	['PAGE','4685',jdecode('NEWS'),jdecode(''),'/4685.html','true',[],'',''],
	['PAGE','5343',jdecode('COMMITTEE+REPORTS'),jdecode(''),'/5343/index.html','true',[ 
		['PAGE','56901',jdecode('Awards'),jdecode(''),'/5343/56901.html','true',[],'',''],
		['PAGE','55301',jdecode('Communications'),jdecode(''),'/5343/55301.html','true',[],'',''],
		['PAGE','50301',jdecode('Delagate+Assembly'),jdecode(''),'/5343/50301.html','true',[],'',''],
		['PAGE','39143',jdecode('Human+Relations'),jdecode(''),'/5343/39143.html','true',[],'',''],
		['PAGE','97115',jdecode('ESP%2FAnti-Priv.'),jdecode(''),'/5343/97115.html','true',[],'',''],
		['PAGE','129843',jdecode('Government+Relations'),jdecode(''),'/5343/129843.html','true',[],'',''],
		['PAGE','59101',jdecode('Instructional'),jdecode(''),'/5343/59101.html','true',[],'',''],
		['PAGE','98015',jdecode('LAT'),jdecode(''),'/5343/98015.html','true',[],'',''],
		['PAGE','39122',jdecode('NEA+Activities'),jdecode(''),'/5343/39122.html','true',[],'',''],
		['PAGE','134643',jdecode('Miscellaneous+Reports'),jdecode(''),'/5343/134643.html','true',[],'',''],
		['PAGE','99615',jdecode('NEA%2FRA+County+Coordinator'),jdecode(''),'/5343/99615.html','true',[],'',''],
		['PAGE','127543',jdecode('NJEA+Technology+Com'),jdecode(''),'/5343/127543.html','true',[],'',''],
		['PAGE','39101',jdecode('PRIDE+Committee'),jdecode(''),'/5343/39101.html','true',[],'',''],
		['PAGE','97915',jdecode('PR%26R+Forms'),jdecode(''),'/5343/97915.html','true',[],'',''],
		['PAGE','92015',jdecode('Public+Relations'),jdecode(''),'/5343/92015.html','true',[],'',''],
		['PAGE','64301',jdecode('Sexual+Orientation'),jdecode(''),'/5343/64301.html','true',[],'','']
	],'',''],
	['PAGE','4706',jdecode('LEGISLATIVE+ACTION'),jdecode(''),'/4706.html','true',[],'',''],
	['PAGE','5801',jdecode('CERTIFIED+STAFF'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','5322',jdecode('ESP'),jdecode(''),'/5322/index.html','true',[ 
		['PAGE','46422',jdecode('ESP+Awards'),jdecode(''),'/5322/46422.html','true',[],'','']
	],'',''],
	['PAGE','29001',jdecode('MEMBER+BENEFITS'),jdecode(''),'/29001/index.html','true',[ 
		['PAGE','29022',jdecode('Paul+Dimitriadis'),jdecode(''),'/29001/29022.html','true',[],'','']
	],'',''],
	['PAGE','19601',jdecode('AWARD+INFO'),jdecode(''),'/19601/index.html','true',[ 
		['PAGE','22101',jdecode('Paul+D.+Scholarship'),jdecode(''),'/19601/22101.html','true',[],'',''],
		['PAGE','22122',jdecode('Hipp+Nomination'),jdecode(''),'/19601/22122.html','true',[],'',''],
		['PAGE','22143',jdecode('Friend+of+Public+Ed.'),jdecode(''),'/19601/22143.html','true',[],'','']
	],'',''],
	['PAGE','4727',jdecode('Links'),jdecode(''),'/4727.html','true',[],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Corporate';
theSitetree.paletteFamily='BC2C20';
theSitetree.keyvisualId='11073';
theSitetree.keyvisualName='kv_11073.jpg';
theSitetree.fontsetId='31956';
theSitetree.graphicsetId='13795';
theSitetree.contentColor='292929';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Corporate',
				paletteFamily: 	'BC2C20',
				keyvisualId: 	'11073',
				keyvisualName: 	'kv_11073.jpg',
				fontsetId: 		'31956',
				graphicsetId: 	'13795',
				contentColor: 	'292929',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77636',
internalId:  '',
customField: '20090813-122050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20081216-200421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46422',
internalId:  '',
customField: '20090119-202309'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39122',
internalId:  '',
customField: '20090119-201320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100821-050215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20100611-211331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20100516-113622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4769',
internalId:  '',
customField: '20100115-062327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20090812-170312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4622',
internalId:  '',
customField: '20100322-185544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100115-061716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20080113-141858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29022',
internalId:  '',
customField: '20080113-133754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20091101-153507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20100729-075940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20100821-061412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4685',
internalId:  '',
customField: '20100821-062037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100216-163040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20100211-110915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22122',
internalId:  '',
customField: '20080413-163959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22143',
internalId:  '',
customField: '20081112-200518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4706',
internalId:  '',
customField: '20100607-164232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4727',
internalId:  '',
customField: '20100624-165703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77615',
internalId:  '',
customField: '20090819-151644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92015',
internalId:  '',
customField: '20100514-202347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20091203-213504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39101',
internalId:  '',
customField: '20100516-112547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39143',
internalId:  '',
customField: '20091007-165154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146343',
internalId:  '',
customField: '20100331-175936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50301',
internalId:  '',
customField: '20091205-230043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20100516-122311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20091205-225429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20090328-223514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74115',
internalId:  '',
customField: '20091107-112153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20091003-165451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97115',
internalId:  '',
customField: '20091205-225734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97915',
internalId:  '',
customField: '20091115-185117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98015',
internalId:  '',
customField: '20091003-165305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99615',
internalId:  '',
customField: '20091003-141236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100715',
internalId:  '',
customField: '20091003-160444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113043',
internalId:  '',
customField: '20091107-115247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117743',
internalId:  '',
customField: '20091107-094556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127543',
internalId:  '',
customField: '20100516-122607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129843',
internalId:  '',
customField: '20091122-210138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130143',
internalId:  '',
customField: '20100417-190221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131843',
internalId:  '',
customField: '20091205-230730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132543',
internalId:  '',
customField: '20100216-164540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132564',
internalId:  '',
customField: '20091206-110955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134643',
internalId:  '',
customField: '20100225-185939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152243',
internalId:  '',
customField: '20100418-194436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163543',
internalId:  '',
customField: '20100729-075749'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INXXIQ';
var companyName   = 'Middlesex+County+Education+Association';
var htmlTitle	  = 'Middlesex+County+Education+Association';
var metaKeywords  = 'Middlesex+County+Education+Association%2C+Middlesex+County%2C+NJ%2C+NJEA+members%2C+Education+Association%2C+Central+Jersey';
var metaContents  = 'Providing+general+information+for+all+union+members.';
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();
};
