/* [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','6601',jdecode('Home'),jdecode(''), jdecode('%2F6601.html'), 'true',[],'',''],
	['PAGE','68112',jdecode('ALAA+Newsletters'),jdecode(''), jdecode('%2F68112.html'), 'true',[],'',''],
	['PAGE','27112',jdecode('News+%2F+Press+Release'),jdecode(''), jdecode('%2F27112%2Findex.html'), 'true',[ 
		['PAGE','56812',jdecode('US+BLM'),jdecode(''), jdecode('%2F27112%2F56812.html'), 'true',[],'',''],
		['PAGE','56833',jdecode('USDA+Forest+Service'),jdecode(''), jdecode('%2F27112%2F56833.html'), 'true',[],'','']
	],'',''],
	['PAGE','6652',jdecode('Active+Legislation'),jdecode(''), jdecode('%2F6652%2Findex.html'), 'true',[ 
		['PAGE','132534',jdecode('Alaska'),jdecode(''), jdecode('%2F6652%2F132534.html'), 'true',[],'',''],
		['PAGE','128034',jdecode('Arizona'),jdecode(''), jdecode('%2F6652%2F128034.html'), 'true',[],'',''],
		['PAGE','67112',jdecode('California'),jdecode(''), jdecode('%2F6652%2F67112.html'), 'true',[],'',''],
		['PAGE','112034',jdecode('D+R+C+P'),jdecode(''), jdecode('%2F6652%2F112034.html'), 'false',[],'',''],
		['PAGE','102212',jdecode('Solar+Projects'),jdecode(''), jdecode('%2F6652%2F102212.html'), 'false',[],'',''],
		['PAGE','100212',jdecode('Colorado'),jdecode(''), jdecode('%2F6652%2F100212.html'), 'true',[],'',''],
		['PAGE','132734',jdecode('Delaware'),jdecode(''), jdecode('%2F6652%2F132734.html'), 'true',[],'',''],
		['PAGE','125434',jdecode('Idaho'),jdecode(''), jdecode('%2F6652%2F125434.html'), 'true',[],'',''],
		['PAGE','109734',jdecode('Massachusetts+'),jdecode(''), jdecode('%2F6652%2F109734.html'), 'true',[],'',''],
		['PAGE','132934',jdecode('Montana'),jdecode(''), jdecode('%2F6652%2F132934.html'), 'true',[],'',''],
		['PAGE','161634',jdecode('Nevada'),jdecode(''), jdecode('%2F6652%2F161634.html'), 'true',[],'',''],
		['PAGE','73212',jdecode('New+Mexico'),jdecode(''), jdecode('%2F6652%2F73212.html'), 'true',[],'',''],
		['PAGE','83212',jdecode('Oregon'),jdecode(''), jdecode('%2F6652%2F83212.html'), 'true',[],'',''],
		['PAGE','115734',jdecode('South+Dakota'),jdecode(''), jdecode('%2F6652%2F115734.html'), 'true',[],'',''],
		['PAGE','85212',jdecode('Tennessee'),jdecode(''), jdecode('%2F6652%2F85212.html'), 'true',[],'',''],
		['PAGE','117634',jdecode('Utah'),jdecode(''), jdecode('%2F6652%2F117634.html'), 'true',[],'',''],
		['PAGE','158234',jdecode('Virginia'),jdecode(''), jdecode('%2F6652%2F158234.html'), 'true',[],'',''],
		['PAGE','92612',jdecode('Washington+State'),jdecode(''), jdecode('%2F6652%2F92612.html'), 'true',[],'',''],
		['PAGE','96212',jdecode('Wyoming'),jdecode(''), jdecode('%2F6652%2F96212.html'), 'true',[],'',''],
		['PAGE','77112',jdecode('HR+5580+Position'),jdecode(''), jdecode('%2F6652%2F77112.html'), 'false',[],'','']
	],'',''],
	['PAGE','6673',jdecode('History'),jdecode(''), jdecode('%2F6673.html'), 'true',[],'',''],
	['PAGE','9112',jdecode('Links'),jdecode(''), jdecode('%2F9112%2Findex.html'), 'true',[ 
		['PAGE','60312',jdecode('California+Access+Support'),jdecode(''), jdecode('%2F9112%2F60312.html'), 'true',[],'','']
	],'',''],
	['PAGE','6694',jdecode('Officers'),jdecode(''), jdecode('%2F6694.html'), 'true',[],'',''],
	['PAGE','6715',jdecode('State+Reps'),jdecode(''), jdecode('%2F6715.html'), 'true',[],'',''],
	['PAGE','6736',jdecode('Join+-+Application'),jdecode(''), jdecode('%2F6736.html'), 'true',[],'',''],
	['PAGE','6757',jdecode('Contacts+'),jdecode(''), jdecode('%2F6757.html'), 'true',[],'',''],
	['PAGE','166734',jdecode('ALAA+Guestbook'),jdecode(''), jdecode('%2F166734.html'), 'true',[],'',''],
	['PAGE','36612',jdecode('ALAA+Archives'),jdecode(''), jdecode('%2F36612%2Findex.html'), 'true',[ 
		['PAGE','70512',jdecode('GAOI+2010'),jdecode(''), jdecode('%2F36612%2F70512.html'), 'true',[],'',''],
		['PAGE','131334',jdecode('Archive+Press+Release'),jdecode(''), jdecode('%2F36612%2F131334.html'), 'false',[],'','']
	],'',''],
	['PAGE','52112',jdecode('ALAA+Forum%2FBlog'),jdecode(''), jdecode('%2F52112%2Findex.html'), 'true',[ 
		['PAGE','65012',jdecode('Lapidairy+Info'),jdecode(''), jdecode('%2F52112%2F65012.html'), 'true',[],'','']
	],'',''],
	['PAGE','94312',jdecode('Speak+Your+Mind'),jdecode(''), jdecode('%2F94312%2Findex.html'), 'false',[ 
		['PAGE','94512',jdecode('Land+Use+Policy'),jdecode(''), jdecode('%2F94312%2F94512.html'), 'false',[],'',''],
		['PAGE','94533',jdecode('Code+of+Ethics'),jdecode(''), jdecode('%2F94312%2F94533.html'), 'false',[],'','']
	],'',''],
	['PAGE','123134',jdecode('Editorials'),jdecode(''), jdecode('%2F123134.html'), 'false',[],'',''],
	['PAGE','142334',jdecode('New+Legislation'),jdecode(''), jdecode('%2F142334.html'), 'false',[],'',''],
	['PAGE','152334',jdecode('Gov+Websites'),jdecode(''), jdecode('%2F152334.html'), 'false',[],'',''],
	['PAGE','154934',jdecode('California+Reference+'),jdecode(''), jdecode('%2F154934.html'), 'false',[],'',''],
	['PAGE','156534',jdecode('Your+State'),jdecode(''), jdecode('%2F156534.html'), 'false',[],'',''],
	['PAGE','168534',jdecode('Affect+or+No+Affect'),jdecode(''), jdecode('%2F168534.html'), 'false',[],'','']];
var siteelementCount=48;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10349';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10349',
				graphicsetId: 	'10469',
				contentColor: 	'000000',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20120121-215935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6736',
internalId:  '',
customField: '20111108-170606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6694',
internalId:  '',
customField: '20111208-104922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6715',
internalId:  '',
customField: '20111220-143238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6652',
internalId:  '',
customField: '20111130-205729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6757',
internalId:  '',
customField: '20111015-115812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9112',
internalId:  '',
customField: '20110920-115056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6673',
internalId:  '',
customField: '20110811-121844'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-7122153']={
webappId:    '1501',
documentId:  '6601',
internalId:  '7122153',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27112',
internalId:  '',
customField: '20120109-213319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36612',
internalId:  '',
customField: '20120115-132211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56812',
internalId:  '',
customField: '20120113-090151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52112',
internalId:  '',
customField: '20100707-225521'
};
webappMappings['1003']=webappMappings['1003-ahw050ine1d112979becb53']={
webappId:    '1003',
documentId:  '52112',
internalId:  'ahw050ine1d112979becb53',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56833',
internalId:  '',
customField: '20111023-133054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60312',
internalId:  '',
customField: '20110915-152758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65012',
internalId:  '',
customField: '20111218-160937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67112',
internalId:  '',
customField: '20120114-205605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68112',
internalId:  '',
customField: '20120115-133007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70512',
internalId:  '',
customField: '20110520-173155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73212',
internalId:  '',
customField: '20110915-155326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77112',
internalId:  '',
customField: '20100803-184853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83212',
internalId:  '',
customField: '20120131-104242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85212',
internalId:  '',
customField: '20110128-133620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92612',
internalId:  '',
customField: '20120131-103154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94312',
internalId:  '',
customField: '20100913-114832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94512',
internalId:  '',
customField: '20100913-105043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94533',
internalId:  '',
customField: '20100913-104917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96212',
internalId:  '',
customField: '20111208-132937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100212',
internalId:  '',
customField: '20111101-095733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102212',
internalId:  '',
customField: '20101111-125640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109734',
internalId:  '',
customField: '20110211-215959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112034',
internalId:  '',
customField: '20101129-214706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115734',
internalId:  '',
customField: '20110128-133503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117634',
internalId:  '',
customField: '20111219-144422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123134',
internalId:  '',
customField: '20111123-182357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125434',
internalId:  '',
customField: '20111127-101029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128034',
internalId:  '',
customField: '20120121-222239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131334',
internalId:  '',
customField: '20110302-063108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132534',
internalId:  '',
customField: '20110302-133703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132734',
internalId:  '',
customField: '20110302-133802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132934',
internalId:  '',
customField: '20111127-094243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142334',
internalId:  '',
customField: '20110418-171507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152334',
internalId:  '',
customField: '20110728-103351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154934',
internalId:  '',
customField: '20110811-094715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156534',
internalId:  '',
customField: '20110830-222811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158234',
internalId:  '',
customField: '20110904-135159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161634',
internalId:  '',
customField: '20110915-160455'
};
webappMappings['1002']=webappMappings['1002-166734ahw050ine1d1']={
webappId:    '1002',
documentId:  '166734',
internalId:  '166734ahw050ine1d1',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166734',
internalId:  '',
customField: '20111025-121010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168534',
internalId:  '',
customField: '20111029-094215'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE1D1';
var companyName   = 'American+Lands+Access+Association+';
var htmlTitle	  = 'American+Lands+Access+Association%2C+Inc.';
var metaKeywords  = 'Rockhound%2C+Lapidary%2C+Environmental%2C+Recreation%2C+BLM%2C+USFS%2C+Public+Land+Use%2C+AFMS%2C+CFMS%2C+Off+Road%2C+Trails%2C+Hiking%2C+4x4%2C+hiking%2C+Access%2C+Action%2C+PAC%2C+PGMC%2C+ALAA%2C+MInerals%2C+Minning%2C+Rocks%2C+Hobby%2C+Gems%2C+Gemology%2C+Geology%2C+Paleotology%2C+Paloentology%2C+Activist%2C+Rockhound+Activist%2C+Voice+of+the+Rockhound%2C+VOR%2C+environmentalist%2C+environazi%2C+extreimist%2C+Fossils%2C+Lobbyist%2C+OHV%2C+AFMS%2C+CFMS.+Pick%2C+Hardrock%2C';
var metaContents  = '+ALAA+-+American+Lands+Access+Association+-+Public+Lands+Access+Advocates+www.amlands.org%0D%0A%0D%0AVoice+of+the+Rockhound+%28VOR%29+www.amlands.org%0D%0A%0D%0ARockhound+Activist+www.amlands.org%0D%0A%0D%0ARock%2C+Mineral%2C+Fossil+Collecting+www.amlands.org%0D%0A%0D%0ALapidary+Arts++www.amlands.org';
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();
};

