/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','5001',jdecode('About+20-k1+Lions'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','33201',jdecode('Autobiography'),jdecode(''),'/33201/index.html','false',[ 
		['PAGE','45601',jdecode('Lion+Antonio+Robles'),jdecode(''),'/33201/45601.html','true',[],'',''],
		['PAGE','35269',jdecode('Lion+Annette+Meritt'),jdecode(''),'/33201/35269.html','true',[],'',''],
		['PAGE','98523',jdecode('Lion+Barbara+Moody+'),jdecode(''),'/33201/98523.html','true',[],'',''],
		['PAGE','98544',jdecode('Lion+Sarita+Ayala'),jdecode(''),'/33201/98544.html','true',[],'',''],
		['PAGE','98565',jdecode('Lion+Linda+Glasper+'),jdecode(''),'/33201/98565.html','true',[],'',''],
		['PAGE','35164',jdecode('Lion+Benjamin+Santos+'),jdecode(''),'/33201/35164.html','true',[],'',''],
		['PAGE','35311',jdecode('Lion+Charles+McBride'),jdecode(''),'/33201/35311.html','true',[],'',''],
		['PAGE','35227',jdecode('Lion+Doreen+Thomas+'),jdecode(''),'/33201/35227.html','true',[],'',''],
		['PAGE','35143',jdecode('Lion+Joan+A+Bryan+'),jdecode(''),'/33201/35143.html','true',[],'',''],
		['PAGE','50364',jdecode('Lion+Marcel+Veronneau+'),jdecode(''),'/33201/50364.html','true',[],'',''],
		['PAGE','35437',jdecode('Lion+Maureen+Thomas%E2%80%99+'),jdecode(''),'/33201/35437.html','true',[],'',''],
		['PAGE','35374',jdecode('Lion+Melissa+Torres'),jdecode(''),'/33201/35374.html','true',[],'',''],
		['PAGE','35458',jdecode('Lion+Myra+L.+Crumpe+'),jdecode(''),'/33201/35458.html','true',[],'',''],
		['PAGE','35206',jdecode('Lion+Paulitiana++St.+Hilaire+'),jdecode(''),'/33201/35206.html','true',[],'','']
	],'',''],
	['PAGE','12901',jdecode('District+Governor++Message'),jdecode(''),'/12901/index.html','true',[ 
		['PAGE','32201',jdecode('Visitation+Schedule+'),jdecode(''),'/12901/32201.html','true',[],'','']
	],'',''],
	['PAGE','12401',jdecode('Vice+District+Governor++'),jdecode(''),'/12401.html','true',[],'',''],
	['PAGE','24901',jdecode('CABINET+OFFICERS'),jdecode(''),'/24901.html','true',[],'',''],
	['PAGE','5022',jdecode('Region++Chairs+'),jdecode(''),'/5022.html','true',[],'',''],
	['PAGE','115223',jdecode('Zone+Chairs'),jdecode(''),'/115223.html','true',[],'',''],
	['PAGE','12422',jdecode('20-k1+Clubs'),jdecode(''),'/12422.html','true',[],'',''],
	['PAGE','12443',jdecode('20-k1+Calendar'),jdecode(''),'/12443.html','true',[],'',''],
	['PAGE','5106',jdecode('Around+the+District'),jdecode(''),'/5106.html','true',[],'',''],
	['PAGE','32222',jdecode('UPCOMING+EVENTS'),jdecode(''),'/32222.html','true',[],'',''],
	['PAGE','32501',jdecode('District+Supported+Projects'),jdecode(''),'/32501.html','true',[],'',''],
	['PAGE','72712',jdecode('Latest+News'),jdecode(''),'/72712.html','true',[],'',''],
	['PAGE','11201',jdecode('Lions+Photo+Album'),jdecode(''),'/11201.html','true',[],'',''],
	['PAGE','11706',jdecode('Guestbook'),jdecode(''),'/11706/index.html','true',[ 
		['PAGE','11701',jdecode('Read+Guestbook'),jdecode(''),'/11706/11701.html','true',[],'','']
	],'',''],
	['PAGE','5085',jdecode('Links'),jdecode(''),'/5085.html','true',[],'',''],
	['PAGE','35584',jdecode('Forms'),jdecode(''),'/35584.html','true',[],'',''],
	['PAGE','35605',jdecode('LION+ACRONYMS+101'),jdecode(''),'/35605.html','true',[],'',''],
	['PAGE','72733',jdecode('Courses%2FContinuing+Education'),jdecode(''),'/72733/index.html','true',[ 
		['PAGE','72754',jdecode('Our+help'),jdecode(''),'/72733/72754.html','true',[],'',''],
		['PAGE','72775',jdecode('Contacts'),jdecode(''),'/72733/72775.html','true',[],'','']
	],'',''],
	['PAGE','5127',jdecode('Contact'),jdecode(''),'/5127/index.html','true',[ 
		['PAGE','5064',jdecode('How+to+find+us'),jdecode(''),'/5127/5064.html','true',[],'',''],
		['PAGE','26901',jdecode('Map'),jdecode(''),'/5127/26901.html','true',[],'','']
	],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='02325B';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31962';
theSitetree.graphicsetId='13796';
theSitetree.contentColor='AFD0F2';
theSitetree.contentBGColor='02325B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'02325B',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31962',
				graphicsetId: 	'13796',
				contentColor: 	'AFD0F2',
				contentBGColor: '02325B',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-6f0c43dc0b966eeafe702363a3b9c0e9']={
webappId:    '7060',
documentId:  '11201',
internalId:  '6f0c43dc0b966eeafe702363a3b9c0e9',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-11706aen010inlxu9']={
webappId:    '1002',
documentId:  '11706',
internalId:  '11706aen010inlxu9',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100202-122544'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '26901',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091102-210612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20091105-154639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20081013-180706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35269',
internalId:  '',
customField: '20091102-202707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35164',
internalId:  '',
customField: '20081022-222219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35311',
internalId:  '',
customField: '20081022-223008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35227',
internalId:  '',
customField: '20081022-223226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115223',
internalId:  '',
customField: '20091227-103950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35143',
internalId:  '',
customField: '20080908-140029'
};
webappMappings['1501']=webappMappings['1501-14365038']={
webappId:    '1501',
documentId:  '601',
internalId:  '14365038',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50364',
internalId:  '',
customField: '20081022-225616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35437',
internalId:  '',
customField: '20081013-181906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35374',
internalId:  '',
customField: '20081022-225913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98565',
internalId:  '',
customField: '20091102-190659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35458',
internalId:  '',
customField: '20081022-231641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35206',
internalId:  '',
customField: '20080908-135817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98523',
internalId:  '',
customField: '20091102-202257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98544',
internalId:  '',
customField: '20091102-190659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20091227-103034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32201',
internalId:  '',
customField: '20091103-201223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20090909-213305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20091105-131257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20091102-201544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12422',
internalId:  '',
customField: '20081013-220617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12443',
internalId:  '',
customField: '20091102-220133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20100104-163227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32222',
internalId:  '',
customField: '20100104-175145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20080902-103042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20090909-214125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20090909-214200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20080827-143111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20080820-145326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11706',
internalId:  '',
customField: '20080731-224141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20080731-224141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5085',
internalId:  '',
customField: '20080904-234834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35584',
internalId:  '',
customField: '20080908-134610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35605',
internalId:  '',
customField: '20080904-212748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72712',
internalId:  '',
customField: '20100202-113855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72733',
internalId:  '',
customField: '20090825-110642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72754',
internalId:  '',
customField: '20090825-110642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72775',
internalId:  '',
customField: '20090825-110642'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INLXU9';
var companyName   = 'District+20-K1+Brooklyn+%26+Queens+USA';
var htmlTitle	  = 'Districk20-k1';
var metaKeywords  = 'Brooklyn++Queens';
var metaContents  = 'Lions+District+20-k1';
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();
};
