/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','107142',jdecode('Flint-Section+1'),jdecode(''),'/107142/index.html','true',[ 
		['PAGE','107163',jdecode('Flint-1%2C+Page+2'),jdecode(''),'/107142/107163.html','true',[],'',''],
		['PAGE','107184',jdecode('Flint-1%2C+Page+3'),jdecode(''),'/107142/107184.html','true',[],'',''],
		['PAGE','107205',jdecode('Flint-1%2C+Page+4'),jdecode(''),'/107142/107205.html','true',[],'',''],
		['PAGE','107226',jdecode('Flint-1%2C+Page+5'),jdecode(''),'/107142/107226.html','true',[],'','']
	],'',''],
	['PAGE','212',jdecode('Flint-Section+2'),jdecode(''),'/212/index.html','true',[ 
		['PAGE','9901',jdecode('Flint-2%2C+Page+2'),jdecode(''),'/212/9901.html','true',[],'',''],
		['PAGE','9906',jdecode('Flint-2%2C+Page+3'),jdecode(''),'/212/9906.html','true',[],'',''],
		['PAGE','9911',jdecode('Flint-2%2C+Page+4'),jdecode(''),'/212/9911.html','true',[],'',''],
		['PAGE','9916',jdecode('Flint-2%2C+Page+5'),jdecode(''),'/212/9916.html','true',[],'',''],
		['PAGE','9921',jdecode('Flint-2%2C+Page+6'),jdecode(''),'/212/9921.html','true',[],'',''],
		['PAGE','9926',jdecode('Flint-2%2C+Page+7'),jdecode(''),'/212/9926.html','true',[],'',''],
		['PAGE','9931',jdecode('Flint-2%2C+Page+8'),jdecode(''),'/212/9931.html','true',[],'',''],
		['PAGE','9936',jdecode('Flint-2%2C+Page+9'),jdecode(''),'/212/9936.html','true',[],'',''],
		['PAGE','9941',jdecode('Flint-2%2C+Page+10'),jdecode(''),'/212/9941.html','true',[],'',''],
		['PAGE','9946',jdecode('Flint-2%2C+Page+11'),jdecode(''),'/212/9946.html','true',[],'',''],
		['PAGE','9951',jdecode('Flint-2%2C+Page+12'),jdecode(''),'/212/9951.html','true',[],'',''],
		['PAGE','9956',jdecode('Flint-2%2C+Page+13'),jdecode(''),'/212/9956.html','true',[],'','']
	],'',''],
	['PAGE','25201',jdecode('Arrowpoints'),jdecode(''),'/25201/index.html','true',[ 
		['PAGE','25206',jdecode('Columbia+River'),jdecode(''),'/25201/25206.html','true',[],'',''],
		['PAGE','27901',jdecode('Col.+River+Pg+2'),jdecode(''),'/25201/27901.html','true',[],'',''],
		['PAGE','25211',jdecode('Southern+US'),jdecode(''),'/25201/25211.html','true',[],'',''],
		['PAGE','74701',jdecode('South.US+Pg+2'),jdecode(''),'/25201/74701.html','true',[],'',''],
		['PAGE','75001',jdecode('Other+Arrowpoints'),jdecode(''),'/25201/75001.html','true',[],'','']
	],'',''],
	['PAGE','217',jdecode('Slate%2FStone'),jdecode(''),'/217/index.html','true',[ 
		['PAGE','9996',jdecode('Slate%2FStone+2'),jdecode(''),'/217/9996.html','true',[],'',''],
		['PAGE','10001',jdecode('Slate%2FStone+3'),jdecode(''),'/217/10001.html','true',[],'',''],
		['PAGE','10006',jdecode('Slate%2FStone+4'),jdecode(''),'/217/10006.html','true',[],'',''],
		['PAGE','10011',jdecode('Slate%2FStone+5'),jdecode(''),'/217/10011.html','true',[],'',''],
		['PAGE','95301',jdecode('Slate%2FStone+6'),jdecode(''),'/217/95301.html','true',[],'',''],
		['PAGE','95322',jdecode('Slate%2FStone+7'),jdecode(''),'/217/95322.html','true',[],'',''],
		['PAGE','95343',jdecode('Slate%2FStone+8'),jdecode(''),'/217/95343.html','true',[],'','']
	],'',''],
	['PAGE','222',jdecode('Bone%2FMisc'),jdecode(''),'/222/index.html','true',[ 
		['PAGE','10016',jdecode('Bone%2FMisc+2'),jdecode(''),'/222/10016.html','true',[],'',''],
		['PAGE','10021',jdecode('Bone%2FMisc+3'),jdecode(''),'/222/10021.html','true',[],'',''],
		['PAGE','10026',jdecode('Bone%2FMisc+4'),jdecode(''),'/222/10026.html','true',[],'',''],
		['PAGE','10031',jdecode('Bone%2FMisc+5'),jdecode(''),'/222/10031.html','true',[],'','']
	],'',''],
	['PAGE','67701',jdecode('Tools%2FCores'),jdecode(''),'/67701/index.html','true',[ 
		['PAGE','67722',jdecode('Tools%2FCores+2'),jdecode(''),'/67701/67722.html','true',[],'',''],
		['PAGE','67743',jdecode('Tools%2FCores+3'),jdecode(''),'/67701/67743.html','true',[],'',''],
		['PAGE','67764',jdecode('Tools%2FCores+4'),jdecode(''),'/67701/67764.html','true',[],'',''],
		['PAGE','67785',jdecode('Tools%2FCores+5'),jdecode(''),'/67701/67785.html','true',[],'','']
	],'',''],
	['PAGE','5601',jdecode('Pottery'),jdecode(''),'/5601/index.html','true',[ 
		['PAGE','10036',jdecode('Pottery+2'),jdecode(''),'/5601/10036.html','true',[],'',''],
		['PAGE','10041',jdecode('Pottery+3'),jdecode(''),'/5601/10041.html','true',[],'',''],
		['PAGE','10046',jdecode('Pottery+4'),jdecode(''),'/5601/10046.html','true',[],'',''],
		['PAGE','10051',jdecode('Pottery+5'),jdecode(''),'/5601/10051.html','true',[],'','']
	],'',''],
	['PAGE','6601',jdecode('Beadwork'),jdecode(''),'/6601/index.html','true',[ 
		['PAGE','10056',jdecode('Beadwork+2'),jdecode(''),'/6601/10056.html','true',[],'',''],
		['PAGE','10061',jdecode('Beadwork+3'),jdecode(''),'/6601/10061.html','true',[],'',''],
		['PAGE','10066',jdecode('Beadwork+4'),jdecode(''),'/6601/10066.html','true',[],'',''],
		['PAGE','10071',jdecode('Beadwork+5'),jdecode(''),'/6601/10071.html','true',[],'','']
	],'',''],
	['PAGE','212056',jdecode('Trades'),jdecode(''),'/212056.html','true',[],'',''],
	['PAGE','88301',jdecode('Display+Cases'),jdecode(''),'/88301.html','true',[],'',''],
	['PAGE','89901',jdecode('BOOKSTORE'),jdecode(''),'/89901.html','true',[],'',''],
	['PAGE','92401',jdecode('Exam.Supplies'),jdecode(''),'/92401.html','true',[],'',''],
	['PAGE','21701',jdecode('Authentication'),jdecode(''),'/21701.html','true',[],'',''],
	['PAGE','297',jdecode('FAQ+Page'),jdecode(''),'/297.html','true',[],'',''],
	['PAGE','302',jdecode('Info+Request'),jdecode(''),'/302.html','true',[],'',''],
	['PAGE','307',jdecode('Contact+us'),jdecode(''),'/307.html','true',[],'',''],
	['PAGE','21706',jdecode('Layaways%2FMisc'),jdecode(''),'/21706.html','true',[],'',''],
	['PAGE','312',jdecode('Links'),jdecode(''),'/312.html','true',[],'','']];
var siteelementCount=63;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-419272']={
webappId:    '1501',
documentId:  '201',
internalId:  '419272',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100717-183337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107142',
internalId:  '',
customField: '20100704-185134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107163',
internalId:  '',
customField: '20100704-190956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107184',
internalId:  '',
customField: '20100702-213301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107205',
internalId:  '',
customField: '20100704-191558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107226',
internalId:  '',
customField: '20100704-192918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20090715-203749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297',
internalId:  '',
customField: '20090715-203052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302',
internalId:  '',
customField: '20090210-153052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307',
internalId:  '',
customField: '20090715-203407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21706',
internalId:  '',
customField: '20091107-211627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312',
internalId:  '',
customField: '20090211-113531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20070122-105916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89901',
internalId:  '',
customField: '20070122-105025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92401',
internalId:  '',
customField: '20070122-023908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20100703-083733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100702-182834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9906',
internalId:  '',
customField: '20091222-113330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9911',
internalId:  '',
customField: '20091222-113649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9916',
internalId:  '',
customField: '20091222-113930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9921',
internalId:  '',
customField: '20091222-114459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9926',
internalId:  '',
customField: '20091222-115041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9931',
internalId:  '',
customField: '20091222-115651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9936',
internalId:  '',
customField: '20091222-115817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9941',
internalId:  '',
customField: '20091222-115945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9946',
internalId:  '',
customField: '20091222-120544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9951',
internalId:  '',
customField: '20091222-120503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9956',
internalId:  '',
customField: '20091222-120731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212056',
internalId:  '',
customField: '20091225-221733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20061226-200018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25206',
internalId:  '',
customField: '20080925-131442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20070808-221221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25211',
internalId:  '',
customField: '20071026-195144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74701',
internalId:  '',
customField: '20090720-115934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75001',
internalId:  '',
customField: '20071026-195251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20100717-200522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9996',
internalId:  '',
customField: '20100717-200424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20100717-200826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10006',
internalId:  '',
customField: '20100717-201100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10011',
internalId:  '',
customField: '20100717-201130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95301',
internalId:  '',
customField: '20100717-193252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95322',
internalId:  '',
customField: '20100717-192931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95343',
internalId:  '',
customField: '20100717-191754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20070126-210803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10016',
internalId:  '',
customField: '20050507-185554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10021',
internalId:  '',
customField: '20080729-202201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10026',
internalId:  '',
customField: '20080729-202242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10031',
internalId:  '',
customField: '20080128-105617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67701',
internalId:  '',
customField: '20061204-223335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67722',
internalId:  '',
customField: '20091222-120857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67743',
internalId:  '',
customField: '20061204-224638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67764',
internalId:  '',
customField: '20061226-202446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67785',
internalId:  '',
customField: '20091210-114406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20061201-223316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10036',
internalId:  '',
customField: '20061213-193503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10041',
internalId:  '',
customField: '20061201-224247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10046',
internalId:  '',
customField: '20061201-224344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10051',
internalId:  '',
customField: '20051003-192312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20080128-102413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10056',
internalId:  '',
customField: '20050507-194531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10061',
internalId:  '',
customField: '20050507-194945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10066',
internalId:  '',
customField: '20070203-122204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10071',
internalId:  '',
customField: '20050507-195930'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INX235';
var companyName   = 'EARTHWORKS+ARTIFACTS+online';
var htmlTitle	  = '';
var metaKeywords  = 'Indian+artifact%2C+artifacts%2C+flint%2C+collectables%2C+collectibles%2C+slate%2C+pendant%2C+stone+axe%2C+dovetail%2C+clovis%2C+lost+lake%2C+flint+ridge%2C+paleo%2C+spear%2C+lance%2C+prehistoric%2C+spear+point%2C+ancient+tools%2C+ancient+weaponry%2C+for+sale%2C+point+types%2C+north+american.+';
var metaContents  = 'Earthworks+Artifacts.+Specializing+in+investment-grade%2C+collectible+Indian+Artifacts+and+supplies+for+collectors.+';
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();
};
