/* [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','10001',jdecode('About+OES'),jdecode(''),'/10001/index.html','true',[ 
		['PAGE','19801',jdecode('Links'),jdecode(''),'/10001/19801.html','true',[],'']
	],''],
	['PAGE','79001',jdecode('AGPatron++Blog'),jdecode(''),'/79001.html','true',[],''],
	['PAGE','552',jdecode('Chapters'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','573',jdecode('Alliance'),jdecode(''),'/552/573.html','true',[],''],
		['PAGE','594',jdecode('Carroll'),jdecode(''),'/552/594.html','true',[],''],
		['PAGE','636',jdecode('Crystal'),jdecode(''),'/552/636.html','true',[],''],
		['PAGE','657',jdecode('Delta'),jdecode(''),'/552/657.html','true',[],''],
		['PAGE','678',jdecode('East+Palestine'),jdecode(''),'/552/678.html','true',[],''],
		['PAGE','720',jdecode('Iva'),jdecode(''),'/552/720.html','true',[],''],
		['PAGE','741',jdecode('Legacy'),jdecode(''),'/552/741.html','true',[],''],
		['PAGE','762',jdecode('Louisville'),jdecode(''),'/552/762.html','true',[],''],
		['PAGE','783',jdecode('Salem'),jdecode(''),'/552/783.html','true',[],'']
	],''],
	['PAGE','15401',jdecode('Charities'),jdecode(''),'/15401.html','true',[],''],
	['PAGE','67501',jdecode('DGMatron+Forum'),jdecode(''),'/67501.html','true',[],''],
	['PAGE','137301',jdecode('Dist13+Committee'),jdecode(''),'/137301.html','true',[],''],
	['PAGE','45701',jdecode('District+History'),jdecode(''),'/45701/index.html','true',[ 
		['PAGE','2601',jdecode('General++History'),jdecode(''),'/45701/2601.html','true',[],''],
		['PAGE','40601',jdecode('Past+Grand+Appts.'),jdecode(''),'/45701/40601.html','true',[],''],
		['PAGE','40801',jdecode('Past+Presidents'),jdecode(''),'/45701/40801.html','true',[],'']
	],''],
	['PAGE','804',jdecode('Events'),jdecode(''),'/804.html','true',[],''],
	['PAGE','30901',jdecode('Fun+%26+Games'),jdecode(''),'/30901.html','true',[],''],
	['PAGE','2622',jdecode('Gr.+Chap.+Themes'),jdecode(''),'/2622.html','true',[],''],
	['PAGE','46901',jdecode('Grand+Families'),jdecode(''),'/46901/index.html','true',[ 
		['PAGE','94001',jdecode('2008+Gr.+Family'),jdecode(''),'/46901/94001.html','true',[],''],
		['PAGE','47322',jdecode('2007+Gr.+Family'),jdecode(''),'/46901/47322.html','true',[],''],
		['PAGE','49401',jdecode('2005+Gr.+Family'),jdecode(''),'/46901/49401.html','true',[],''],
		['PAGE','47301',jdecode('2003+Gr.+Family'),jdecode(''),'/46901/47301.html','true',[],''],
		['PAGE','49422',jdecode('1999+Gr.+Family'),jdecode(''),'/46901/49422.html','true',[],'']
	],''],
	['PAGE','3206',jdecode('Guestbook'),jdecode(''),'/3206/index.html','true',[ 
		['PAGE','3201',jdecode('Read+Guestbook'),jdecode(''),'/3206/3201.html','false',[],'']
	],''],
	['PAGE','30001',jdecode('Honored+Masons'),jdecode(''),'/30001.html','true',[],''],
	['PAGE','35601',jdecode('Organizations'),jdecode(''),'/35601/index.html','true',[ 
		['PAGE','11101',jdecode('D13+Association'),jdecode(''),'/35601/11101.html','true',[],''],
		['PAGE','11122',jdecode('ESMA'),jdecode(''),'/35601/11122.html','true',[],''],
		['PAGE','21501',jdecode('Kate+DeWees'),jdecode(''),'/35601/21501.html','true',[],''],
		['PAGE','40201',jdecode('Line+Officers'),jdecode(''),'/35601/40201.html','true',[],''],
		['PAGE','89001',jdecode('Past+Gr.+Appts.'),jdecode(''),'/35601/89001.html','true',[],'']
	],''],
	['PAGE','28101',jdecode('Picture+Albums'),jdecode(''),'/28101/index.html','true',[ 
		['PAGE','35001',jdecode('2008-2009+Pics'),jdecode(''),'/28101/35001.html','true',[],'']
	],''],
	['PAGE','89101',jdecode('Print+Center'),jdecode(''),'/89101.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Abstract';
theSitetree.paletteFamily='E7D8FC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10386';
theSitetree.graphicsetId='10579';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E7D8FC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Abstract',
				paletteFamily: 	'E7D8FC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10386',
				graphicsetId: 	'10579',
				contentColor: 	'000000',
				contentBGColor: 'E7D8FC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-3206aendu0in2wy8']={
webappId:    '1002',
documentId:  '3206',
internalId:  '3206aendu0in2wy8',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100605-122056'
};
webappMappings['1501']=webappMappings['1501-4681426']={
webappId:    '1501',
documentId:  '501',
internalId:  '4681426',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20100625-172343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20080929-093252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20091103-131902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20091214-190351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100108-180620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137301',
internalId:  '',
customField: '20100606-120552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20091112-075230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20091214-190150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20091123-081803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20100108-180738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20091214-185644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20091116-081718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20091103-131927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20100110-134247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11122',
internalId:  '',
customField: '20080615-084823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20090928-105807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20080317-141223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20100110-140919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20080709-085143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3206',
internalId:  '',
customField: '20080306-093656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20080227-151517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20100218-124438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20091112-080030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20091112-075936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20100110-112218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20080416-133036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45701',
internalId:  '',
customField: '20080710-191012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67501',
internalId:  '',
customField: '20090928-125723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20091109-085507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20081219-084315'
};
webappMappings['7060']=webappMappings['7060-e902c5ca0224f8795e0033a4b1356da3']={
webappId:    '7060',
documentId:  '35001',
internalId:  'e902c5ca0224f8795e0033a4b1356da3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35001',
internalId:  '',
customField: '20090107-101507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20090106-115348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20090107-105806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47301',
internalId:  '',
customField: '20100517-083740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47322',
internalId:  '',
customField: '20090712-132703'
};
webappMappings['1003']=webappMappings['1003-aendu0in2wy811ce6ff6579']={
webappId:    '1003',
documentId:  '67501',
internalId:  'aendu0in2wy811ce6ff6579',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89101',
internalId:  '',
customField: '20090127-094331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89001',
internalId:  '',
customField: '20100110-112442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49422',
internalId:  '',
customField: '20100510-091109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20080909-213656'
};
webappMappings['7050']=webappMappings['7050-4239']={
webappId:    '7050',
documentId:  '79001',
internalId:  '4239',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79001',
internalId:  '',
customField: '20090928-125044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94001',
internalId:  '',
customField: '20090120-100047'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2WY8';
var companyName   = 'District+13%2C+Grand+Chapter+of+Ohio%2C+OES';
var htmlTitle	  = 'District+13+Grand+Chapter+of+Ohio+Order+of+the+Eastern+Star';
var metaKeywords  = 'District+13%2C+OES%2C+Order+of+the+Eastern+Star%2C+Grand+Chapter+of+Ohio%2C+northeastern+Ohio%2C+district+%2313%2C+Columbiana+County%2C+Carroll+County%2C+Stark+County%2C+Alliance%2C+Carroll%2C+Columbiana%2C+Crystal%2C+Delta%2C+East+Palestine%2C+Esther%2C+Iva%2C+Legacy%2C+Louisville%2C+Salem%2C+dist13ohoes%2C+region+L%2C+Larry+Groves%2C+Carol+Jones%2C+Marilyn+Giey%2C+ESMA%2C+Kate+DeWees%2C+';
var metaContents  = 'District+%2313+of+the+Grand+Chapter+of+Ohio%2C+Order+of+the+Eastern+Star+includes+information%2C+events%2C+chapters%2C+officers%2C+history%2C+links%2C+charities%2C+ESMA%2C+Kate+DeWees%2Cetc.';
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();
};
