/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','2001',jdecode('About+the+Museum'),jdecode(''),'/2001/index.html','true',[ 
		['PAGE','6801',jdecode('History+of+the+Museum'),jdecode(''),'/2001/6801.html','true',[],'',''],
		['PAGE','6822',jdecode('Board+of+Trustees'),jdecode(''),'/2001/6822.html','true',[],'','']
	],'',''],
	['PAGE','2022',jdecode('Contact'),jdecode(''),'/2022/index.html','true',[ 
		['PAGE','2043',jdecode('Address'),jdecode(''),'/2022/2043.html','true',[],'',''],
		['PAGE','25901',jdecode('Hours+of+Operation'),jdecode(''),'/2022/25901.html','true',[],'',''],
		['PAGE','2064',jdecode('How+to+find+us'),jdecode(''),'/2022/2064.html','true',[],'',''],
		['PAGE','6843',jdecode('Map'),jdecode(''),'/2022/6843.html','true',[],'','']
	],'',''],
	['PAGE','2085',jdecode('Programs+and+Tours'),jdecode(''),'/2085.html','true',[],'',''],
	['PAGE','2106',jdecode('Membership'),jdecode(''),'/2106/index.html','true',[ 
		['PAGE','8801',jdecode('Become+a+Member'),jdecode(''),'/2106/8801.html','true',[],'',''],
		['PAGE','8822',jdecode('Existing+Membership'),jdecode(''),'/2106/8822.html','true',[],'',''],
		['PAGE','8843',jdecode('Corporations+and+Foundations'),jdecode(''),'/2106/8843.html','true',[],'',''],
		['PAGE','8864',jdecode('Benefactor+Members'),jdecode(''),'/2106/8864.html','true',[],'',''],
		['PAGE','8885',jdecode('Patron+Members'),jdecode(''),'/2106/8885.html','true',[],'',''],
		['PAGE','8906',jdecode('Sustainer+Members'),jdecode(''),'/2106/8906.html','true',[],'',''],
		['PAGE','8927',jdecode('Donor+Members'),jdecode(''),'/2106/8927.html','true',[],'',''],
		['PAGE','8948',jdecode('Contributing+Members'),jdecode(''),'/2106/8948.html','true',[],'',''],
		['PAGE','8969',jdecode('Regular+Memberships'),jdecode(''),'/2106/8969.html','true',[],'','']
	],'',''],
	['PAGE','2127',jdecode('Artifacts+on+Display'),jdecode(''),'/2127/index.html','true',[ 
		['PAGE','8990',jdecode('Arrows'),jdecode(''),'/2127/8990.html','true',[],'',''],
		['PAGE','9011',jdecode('Fairport+Harbor+Collection'),jdecode(''),'/2127/9011.html','true',[],'',''],
		['PAGE','9032',jdecode('Petroglyphs'),jdecode(''),'/2127/9032.html','true',[],'',''],
		['PAGE','9053',jdecode('Pipes'),jdecode(''),'/2127/9053.html','true',[],'',''],
		['PAGE','9074',jdecode('Pettery+Shard+Samples'),jdecode(''),'/2127/9074.html','true',[],'',''],
		['PAGE','9095',jdecode('Reeve+Site+Collection'),jdecode(''),'/2127/9095.html','true',[],'','']
	],'',''],
	['PAGE','18822',jdecode('Upcoming+Events'),jdecode(''),'/18822/index.html','true',[ 
		['PAGE','25701',jdecode('Workshops'),jdecode(''),'/18822/25701.html','true',[],'','']
	],'',''],
	['PAGE','18106',jdecode('Guestbook'),jdecode(''),'/18106/index.html','true',[ 
		['PAGE','18101',jdecode('Read+Guestbook'),jdecode(''),'/18106/18101.html','false',[],'','']
	],'',''],
	['PAGE','20901',jdecode('Pictures+of+the+Museum'),jdecode(''),'/20901.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='430';
theSitetree.graphicsetId='479';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Card',
				paletteFamily: 	'990000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'430',
				graphicsetId: 	'479',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-18106ahw050ine1sc']={
webappId:    '1002',
documentId:  '18106',
internalId:  '18106ahw050ine1sc',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-5cf41beea86ba33b037cf9d337b83401']={
webappId:    '7060',
documentId:  '20901',
internalId:  '5cf41beea86ba33b037cf9d337b83401',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20080921-194426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2127',
internalId:  '',
customField: '20080928-203439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20080921-194522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20080924-214640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6822',
internalId:  '',
customField: '20081023-210143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2022',
internalId:  '',
customField: '20081023-205900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20080924-214056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20100523-121749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20100523-115238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2064',
internalId:  '',
customField: '20080921-202528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6843',
internalId:  '',
customField: '20080921-204309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2085',
internalId:  '',
customField: '20080928-170547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20080928-165740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20080928-170737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8822',
internalId:  '',
customField: '20080928-170814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8843',
internalId:  '',
customField: '20080928-202852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8864',
internalId:  '',
customField: '20080928-202939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8885',
internalId:  '',
customField: '20080928-203017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8906',
internalId:  '',
customField: '20080928-203051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8927',
internalId:  '',
customField: '20080928-203119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8948',
internalId:  '',
customField: '20080928-203153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8969',
internalId:  '',
customField: '20080928-203310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8990',
internalId:  '',
customField: '20080928-210540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9011',
internalId:  '',
customField: '20080928-212909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9032',
internalId:  '',
customField: '20080928-214057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9053',
internalId:  '',
customField: '20081023-211816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9074',
internalId:  '',
customField: '20081007-215002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9095',
internalId:  '',
customField: '20081007-221243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18822',
internalId:  '',
customField: '20081009-225628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18106',
internalId:  '',
customField: '20081007-221859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20081007-221700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20081010-220656'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE1SC';
var companyName   = 'Indian+Museum+of+Lake+County%2C+Ohio';
var htmlTitle	  = 'Indian+Museum+of+Lake+County%2C+OH';
var metaKeywords  = 'Native+Americans%2C+Northeast+Ohio%2C+Willoughby+OH%2C+Museum';
var metaContents  = 'The+Indian+Museum+of+Lake+County%2C+Ohio+was+established+by+the+Lake+County+Chapter+of+the+Archaeological+Society+of+Ohio+%28ASO%29+in+1980.++It+is+chartered+by+the+State+of+Ohio+as+a+non-profit+corporation+under+IRS+501%28c%29%283%29.++%0D%0A%0D%0AThe+objectives+of+the+Indian+Museum+and+the+Lake+County+Chapter+of+the+ASO+are+to+discover%2C+collect+and+preserve+archeaological+sites+and+material+related+to+the+history+and+antiquities+of+Native+Americans+of+Lake+County%2C+the+State+of+Ohio+and+the+North+American+Continent%3B+to+maintain+and+museum+and+library%3B+to+extend+knowledge+through+the+above+means+and+by+educational+meetings%2C+publications+and+other+proper+means.%0D%0A%0D%0AMany+interested+residents+of+Northeastern+Ohio+have+donated+artifacts+and+crafts.++Fourteen+volunteers+help+keep+the+museum+open+seven+days+a+week+except+for+major+holidays.%0D%0A%0D%0AThe+Indian+Museum+is+funded+entirely+through+memberships+and+donations+by+individuals%2C+families%2C+organizations%2C+businesses%2C+corporations+and+foundations.++The+museum+receives+no+county%2C+state+or+federal+funding.';
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();
};
