/* [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','1701',jdecode('Home'),jdecode(''),'/1701/index.html','true',[ 
		['PAGE','47901',jdecode('Mission'),jdecode(''),'/1701/47901.html','true',[],'',''],
		['PAGE','34201',jdecode('Guest+Book'),jdecode(''),'/1701/34201.html','true',[],'',''],
		['PAGE','36401',jdecode('AFMS+Code+of+Ethics'),jdecode(''),'/1701/36401.html','true',[],'',''],
		['PAGE','145701',jdecode('Local+Weather'),jdecode(''),'/1701/145701.html','true',[],'','']
	],'',''],
	['PAGE','11001',jdecode('About+Us'),jdecode(''),'/11001/index.html','true',[ 
		['PAGE','95401',jdecode('Become+a+New+Member'),jdecode(''),'/11001/95401.html','true',[],'',''],
		['PAGE','28101',jdecode('Club+Officers+%26+Committees'),jdecode(''),'/11001/28101.html','true',[],'',''],
		['PAGE','62301',jdecode('Life+Members'),jdecode(''),'/11001/62301.html','true',[],'',''],
		['PAGE','46301',jdecode('Constitution'),jdecode(''),'/11001/46301.html','true',[],'','']
	],'',''],
	['PAGE','166501',jdecode('2010+All-American+Project'),jdecode(''),'/166501.html','true',[],'',''],
	['PAGE','102922',jdecode('Buy+Sell+or+Trade'),jdecode(''),'/102922.html','true',[],'',''],
	['PAGE','30901',jdecode('Classes+%26+Shop+Schedule'),jdecode(''),'/30901.html','true',[],'',''],
	['PAGE','6343',jdecode('Field+Trips'),jdecode(''),'/6343.html','true',[],'',''],
	['PAGE','6322',jdecode('2011+Gem+%26+Mineral+Show'),jdecode(''),'/6322/index.html','true',[ 
		['PAGE','134801',jdecode('Show+Map'),jdecode(''),'/6322/134801.html','true',[],'',''],
		['PAGE','151701',jdecode('Demonstrations'),jdecode(''),'/6322/151701.html','true',[],'',''],
		['PAGE','154501',jdecode('Show+Vendors'),jdecode(''),'/6322/154501.html','true',[],'',''],
		['PAGE','135301',jdecode('Local+Links'),jdecode(''),'/6322/135301.html','true',[],'',''],
		['PAGE','10801',jdecode('Member+Info'),jdecode(''),'/6322/10801.html','true',[],'',''],
		['PAGE','48801',jdecode('Committees'),jdecode(''),'/6322/48801.html','true',[],'',''],
		['PAGE','163601',jdecode('2010+Highlights'),jdecode(''),'/6322/163601.html','true',[],'',''],
		['PAGE','166001',jdecode('Fresno+Bee+2010'),jdecode(''),'/6322/166001.html','true',[],'',''],
		['PAGE','82901',jdecode('2009+Highlights'),jdecode(''),'/6322/82901.html','true',[],'',''],
		['PAGE','39001',jdecode('2008+Highlights'),jdecode(''),'/6322/39001.html','true',[],'',''],
		['PAGE','140522',jdecode('2007+Highlights'),jdecode(''),'/6322/140522.html','true',[],'',''],
		['PAGE','140501',jdecode('2006+Highlights'),jdecode(''),'/6322/140501.html','true',[],'','']
	],'',''],
	['PAGE','45901',jdecode('Historical+Info'),jdecode(''),'/45901/index.html','true',[ 
		['PAGE','43101',jdecode('Past+Presidents'),jdecode(''),'/45901/43101.html','true',[],'','']
	],'',''],
	['PAGE','107901',jdecode('Jewelry+Making'),jdecode(''),'/107901.html','true',[],'',''],
	['PAGE','19501',jdecode('Meeting+%26+Event'),jdecode(''),'/19501/index.html','true',[ 
		['PAGE','37001',jdecode('Meeting+Map'),jdecode(''),'/19501/37001.html','true',[],'',''],
		['PAGE','45501',jdecode('Board+Meetings'),jdecode(''),'/19501/45501.html','true',[],'','']
	],'',''],
	['PAGE','102901',jdecode('Member+Only+Page'),jdecode(''),'/102901.html','false',[],'',''],
	['PAGE','10843',jdecode('Newsletter'),jdecode(''),'/10843.html','true',[],'',''],
	['PAGE','26701',jdecode('Photo+Gallery'),jdecode(''),'/26701/index.html','true',[ 
		['PAGE','160401',jdecode('Ant+Hill+2010'),jdecode(''),'/26701/160401.html','true',[],'',''],
		['PAGE','143001',jdecode('Panamint+2009'),jdecode(''),'/26701/143001.html','true',[],'',''],
		['PAGE','109601',jdecode('Ransburg+5-09'),jdecode(''),'/26701/109601.html','true',[],'',''],
		['PAGE','111101',jdecode('Bakersfield+Ant+Hill+2009'),jdecode(''),'/26701/111101.html','true',[],'',''],
		['PAGE','71501',jdecode('Panamint+Valley+10-2008'),jdecode(''),'/26701/71501.html','true',[],'',''],
		['PAGE','55301',jdecode('Rose+Quartz+6-08'),jdecode(''),'/26701/55301.html','true',[],'',''],
		['PAGE','53701',jdecode('BBQ+at+Pat%26%23x27%3Bs+6-08'),jdecode(''),'/26701/53701.html','true',[],'','']
	],'',''],
	['PAGE','82922',jdecode('Presentations+%26+Demonstrations'),jdecode(''),'/82922/index.html','true',[ 
		['PAGE','82943',jdecode('Three+Rivers+1-09'),jdecode(''),'/82922/82943.html','true',[],'','']
	],'',''],
	['PAGE','18801',jdecode('Related+Links'),jdecode(''),'/18801.html','true',[],'',''],
	['PAGE','159201',jdecode('Site+Map'),jdecode(''),'/159201.html','true',[],'',''],
	['PAGE','63501',jdecode('Federal+Bill+Watch'),jdecode(''),'/63501.html','false',[],'',''],
	['PAGE','81901',jdecode('Christmas+Cheer+2008'),jdecode(''),'/81901.html','false',[],'',''],
	['PAGE','32901',jdecode('Hiley'),jdecode(''),'/32901.html','false',[],'',''],
	['PAGE','168401',jdecode('Janet'),jdecode(''),'/168401.html','false',[],'',''],
	['PAGE','33501',jdecode('Retta'),jdecode(''),'/33501.html','false',[],'',''],
	['PAGE','89501',jdecode('Don'),jdecode(''),'/89501.html','false',[],'',''],
	['PAGE','94701',jdecode('Marshel'),jdecode(''),'/94701.html','false',[],'',''],
	['PAGE','96901',jdecode('Laura'),jdecode(''),'/96901.html','false',[],'','']];
var siteelementCount=55;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='580D02';
theSitetree.keyvisualId='11384';
theSitetree.keyvisualName='kv_11384.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13803';
theSitetree.contentColor='340800';
theSitetree.contentBGColor='FBE5C3';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'580D02',
				keyvisualId: 	'11384',
				keyvisualName: 	'kv_11384.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13803',
				contentColor: 	'340800',
				contentBGColor: 'FBE5C3',
				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:  '1701',
internalId:  '',
customField: '20100718-224539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6343',
internalId:  '',
customField: '20100610-212241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20100330-103501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20091208-013443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20100321-154006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47901',
internalId:  '',
customField: '20100207-145855'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100228-150807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20100610-005610'
};
webappMappings['7060']=webappMappings['7060-6e9c2f2524f79a77cf6ff68b26da1140']={
webappId:    '7060',
documentId:  '53701',
internalId:  '6e9c2f2524f79a77cf6ff68b26da1140',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10843',
internalId:  '',
customField: '20100718-224500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82901',
internalId:  '',
customField: '20100223-214041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20091108-193702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82922',
internalId:  '',
customField: '20091111-083132'
};
webappMappings['7060']=webappMappings['7060-64b72034578379b3e95ec374f9181152']={
webappId:    '7060',
documentId:  '55301',
internalId:  '64b72034578379b3e95ec374f9181152',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20100321-154753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20100116-224048'
};
webappMappings['7008']=webappMappings['7008-2480']={
webappId:    '7008',
documentId:  '32901',
internalId:  '2480',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20080414-213754'
};
webappMappings['7008']=webappMappings['7008-2498']={
webappId:    '7008',
documentId:  '33501',
internalId:  '2498',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-14638']={
webappId:    '7008',
documentId:  '94701',
internalId:  '14638',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20080414-213953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89501',
internalId:  '',
customField: '20090315-212801'
};
webappMappings['1002']=webappMappings['1002-34201aendu0in2o7w']={
webappId:    '1002',
documentId:  '34201',
internalId:  '34201aendu0in2o7w',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20080414-214602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20090315-153054'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '37001',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20080423-004454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20090315-155031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20090309-000539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20090315-154316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20080621-015332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20091208-005312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20090315-155802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20100317-225811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81901',
internalId:  '',
customField: '20081221-004624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20080623-220948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145701',
internalId:  '',
customField: '20091108-195159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20100105-010257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63501',
internalId:  '',
customField: '20080805-165230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71501',
internalId:  '',
customField: '20081019-122819'
};
webappMappings['7060']=webappMappings['7060-b8cc19d42910efd896e36ba0a2222b64']={
webappId:    '7060',
documentId:  '71501',
internalId:  'b8cc19d42910efd896e36ba0a2222b64',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82943',
internalId:  '',
customField: '20090131-221231'
};
webappMappings['7008']=webappMappings['7008-14399']={
webappId:    '7008',
documentId:  '89501',
internalId:  '14399',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95401',
internalId:  '',
customField: '20100416-001225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94701',
internalId:  '',
customField: '20090315-212721'
};
webappMappings['7008']=webappMappings['7008-14648']={
webappId:    '7008',
documentId:  '96901',
internalId:  '14648',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96901',
internalId:  '',
customField: '20090315-212645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102901',
internalId:  '',
customField: '20090706-205253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102922',
internalId:  '',
customField: '20100610-212306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107901',
internalId:  '',
customField: '20090814-103334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109601',
internalId:  '',
customField: '20090612-003904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111101',
internalId:  '',
customField: '20090612-001451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135301',
internalId:  '',
customField: '20090918-225201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134801',
internalId:  '',
customField: '20090918-223240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159201',
internalId:  '',
customField: '20100205-201547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140501',
internalId:  '',
customField: '20091108-183356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140522',
internalId:  '',
customField: '20091108-182408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143001',
internalId:  '',
customField: '20091108-192640'
};
webappMappings['7080']=webappMappings['7080-651']={
webappId:    '7080',
documentId:  '145701',
internalId:  '651',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151701',
internalId:  '',
customField: '20091111-075411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154501',
internalId:  '',
customField: '20091208-011255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160401',
internalId:  '',
customField: '20100215-180854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163601',
internalId:  '',
customField: '20100228-141343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166001',
internalId:  '',
customField: '20100228-150056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166501',
internalId:  '',
customField: '20100228-144244'
};
webappMappings['7008']=webappMappings['7008-26790']={
webappId:    '7008',
documentId:  '168401',
internalId:  '26790',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168401',
internalId:  '',
customField: '20100321-153741'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2O7W';
var companyName   = 'TULE+GEM+%26+MINERAL+SOCIETY+Visalia%2C+CA';
var htmlTitle	  = 'Tule+Gem+and+Mineral+Society';
var metaKeywords  = '';
var metaContents  = '';
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();
};
