/* [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(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','4769',jdecode('ABOUT+US'),jdecode(''), jdecode('%2F4769%2Findex.html'), 'true',[ 
		['PAGE','4622',jdecode('Board+of+Directors'),jdecode(''), jdecode('%2F4769%2F4622.html'), 'true',[],'',''],
		['PAGE','100715',jdecode('Policy%2FConstitution'),jdecode(''), jdecode('%2F4769%2F100715.html'), 'true',[],'','']
	],'',''],
	['PAGE','4664',jdecode('CALENDAR'),jdecode(''), jdecode('%2F4664.html'), 'true',[],'',''],
	['PAGE','132543',jdecode('REP+COUNCIL'),jdecode(''), jdecode('%2F132543.html'), 'true',[],'',''],
	['PAGE','5343',jdecode('COMMITTEES'),jdecode(''), jdecode('%2F5343.html'), 'true',[],'',''],
	['PAGE','229659',jdecode('WORKSHOPS'),jdecode(''), jdecode('%2F229659.html'), 'true',[],'',''],
	['PAGE','30301',jdecode('PROFESSIONAL+DEVEL.'),jdecode(''), jdecode('%2F30301.html'), 'true',[],'',''],
	['PAGE','4601',jdecode('MEMBERS'),jdecode(''), jdecode('%2F4601%2Findex.html'), 'true',[ 
		['PAGE','48401',jdecode('Member+Benefits'),jdecode(''), jdecode('%2F4601%2F48401.html'), 'true',[],'','']
	],'',''],
	['PAGE','4643',jdecode('EVENTS'),jdecode(''), jdecode('%2F4643%2Findex.html'), 'true',[ 
		['PAGE','223559',jdecode('MCEA+Family+Fun+Day+2011'),jdecode(''), jdecode('%2F4643%2F223559.html'), 'true',[],'',''],
		['PAGE','181559',jdecode('MCEA+County+Retreat+2010'),jdecode(''), jdecode('%2F4643%2F181559.html'), 'true',[],'',''],
		['PAGE','184659',jdecode('Fall+Focus+2010'),jdecode(''), jdecode('%2F4643%2F184659.html'), 'true',[],'',''],
		['PAGE','188659',jdecode('Installation+of+Officers+2010'),jdecode(''), jdecode('%2F4643%2F188659.html'), 'true',[],'',''],
		['PAGE','195459',jdecode('HR+Tour+of+Philadelphia+2010'),jdecode(''), jdecode('%2F4643%2F195459.html'), 'true',[],'',''],
		['PAGE','209159',jdecode('PRIDE+FAIR+2011'),jdecode(''), jdecode('%2F4643%2F209159.html'), 'true',[],'',''],
		['PAGE','152243',jdecode('PRIDE+FAIR+2010'),jdecode(''), jdecode('%2F4643%2F152243.html'), 'true',[],'',''],
		['PAGE','74115',jdecode('PRIDE+FAIR+2009'),jdecode(''), jdecode('%2F4643%2F74115.html'), 'true',[],'',''],
		['PAGE','188680',jdecode('MCEA+Bally%26%23x27%3Bs+Reception+2010'),jdecode(''), jdecode('%2F4643%2F188680.html'), 'true',[],'',''],
		['PAGE','113043',jdecode('NJEA+Convention+Hall+2009'),jdecode(''), jdecode('%2F4643%2F113043.html'), 'true',[],'',''],
		['PAGE','117743',jdecode('MCEA+Bally%26%23x27%3Bs+Reception+2009'),jdecode(''), jdecode('%2F4643%2F117743.html'), 'true',[],'',''],
		['PAGE','219259',jdecode('MCEA+Awards+DInner+2011'),jdecode(''), jdecode('%2F4643%2F219259.html'), 'true',[],'',''],
		['PAGE','181359',jdecode('MCEA+Awards+Dinner+2010'),jdecode(''), jdecode('%2F4643%2F181359.html'), 'true',[],'',''],
		['PAGE','77615',jdecode('MCEA+Awards+Dinner+2009'),jdecode(''), jdecode('%2F4643%2F77615.html'), 'true',[],'',''],
		['PAGE','163543',jdecode('LAT+Dinner+2010'),jdecode(''), jdecode('%2F4643%2F163543.html'), 'true',[],'',''],
		['PAGE','171959',jdecode('NEA%2FRA+New+Orleans+2010'),jdecode(''), jdecode('%2F4643%2F171959.html'), 'true',[],'',''],
		['PAGE','77636',jdecode('NEA%2FRA+San+Diego+2009'),jdecode(''), jdecode('%2F4643%2F77636.html'), 'true',[],'',''],
		['PAGE','130143',jdecode('MCEA+4th+of+July+2009'),jdecode(''), jdecode('%2F4643%2F130143.html'), 'true',[],'','']
	],'',''],
	['PAGE','4685',jdecode('NEWS'),jdecode(''), jdecode('%2F4685.html'), 'true',[],'',''],
	['PAGE','4706',jdecode('LEGISLATIVE+ACTION'),jdecode(''), jdecode('%2F4706.html'), 'true',[],'',''],
	['PAGE','5801',jdecode('CERTIFIED+STAFF'),jdecode(''), jdecode('%2F5801.html'), 'true',[],'',''],
	['PAGE','5322',jdecode('ESP'),jdecode(''), jdecode('%2F5322%2Findex.html'), 'true',[ 
		['PAGE','46422',jdecode('ESP+Awards'),jdecode(''), jdecode('%2F5322%2F46422.html'), 'true',[],'','']
	],'',''],
	['PAGE','29001',jdecode('MEMBER+BENEFITS'),jdecode(''), jdecode('%2F29001%2Findex.html'), 'true',[ 
		['PAGE','29022',jdecode('Paul+Dimitriadis'),jdecode(''), jdecode('%2F29001%2F29022.html'), 'true',[],'','']
	],'',''],
	['PAGE','19601',jdecode('AWARD+INFO'),jdecode(''), jdecode('%2F19601%2Findex.html'), 'true',[ 
		['PAGE','22101',jdecode('Paul+D.+Scholarship'),jdecode(''), jdecode('%2F19601%2F22101.html'), 'true',[],'',''],
		['PAGE','22122',jdecode('Hipp+Nomination'),jdecode(''), jdecode('%2F19601%2F22122.html'), 'true',[],'',''],
		['PAGE','22143',jdecode('Friend+of+Public+Ed.'),jdecode(''), jdecode('%2F19601%2F22143.html'), 'true',[],'','']
	],'',''],
	['PAGE','4727',jdecode('Links'),jdecode(''), jdecode('%2F4727.html'), 'true',[],'','']];
var siteelementCount=42;
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 prodDef={
  wl_name: 'powweb',
  product: 'WSCSYSSSSLY0XRN4'
};
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: '20110909-201923'
};
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:  '401',
internalId:  '',
customField: '20120128-212932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20120113-170303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20111023-184502'
};
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: '20110924-140323'
};
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: '20110924-134550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20110521-142624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20110812-210627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4685',
internalId:  '',
customField: '20110919-192619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20120128-213440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20120128-205558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22122',
internalId:  '',
customField: '20120128-205928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22143',
internalId:  '',
customField: '20120128-210406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4706',
internalId:  '',
customField: '20110227-151524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4727',
internalId:  '',
customField: '20101214-163742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77615',
internalId:  '',
customField: '20090819-151644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209159',
internalId:  '',
customField: '20110521-142754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74115',
internalId:  '',
customField: '20091107-112153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229659',
internalId:  '',
customField: '20120114-114609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195459',
internalId:  '',
customField: '20101205-192345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100715',
internalId:  '',
customField: '20110924-134003'
};
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:  '219259',
internalId:  '',
customField: '20110613-190613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223559',
internalId:  '',
customField: '20110812-205144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130143',
internalId:  '',
customField: '20100417-190221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181359',
internalId:  '',
customField: '20101113-181854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132543',
internalId:  '',
customField: '20111017-202012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152243',
internalId:  '',
customField: '20100418-194436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163543',
internalId:  '',
customField: '20100926-121331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171959',
internalId:  '',
customField: '20100926-125916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181559',
internalId:  '',
customField: '20101120-211851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184659',
internalId:  '',
customField: '20101121-094824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188659',
internalId:  '',
customField: '20101121-183715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188680',
internalId:  '',
customField: '20101121-193920'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
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();
};

