/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','47401',jdecode('About+Us'),jdecode(''),'/47401.html','true',[],''],
	['PAGE','545013',jdecode('Weekly+News'),jdecode(''),'/545013.html','true',[],''],
	['PAGE','452501',jdecode('ARRA'),jdecode(''),'/452501/index.html','true',[ 
		['PAGE','497113',jdecode('Allocations'),jdecode(''),'/452501/497113.html','true',[],''],
		['PAGE','497155',jdecode('Reporting%2FCompliance'),jdecode(''),'/452501/497155.html','true',[],''],
		['PAGE','497176',jdecode('Links%2FResources'),jdecode(''),'/452501/497176.html','true',[],''],
		['PAGE','585613',jdecode('Materials+by+Program+Area'),jdecode(''),'/452501/585613.html','true',[],''],
		['PAGE','483801',jdecode('ARRA+Competitive+Grants'),jdecode(''),'/452501/483801.html','true',[],''],
		['PAGE','453722',jdecode('ARRA+Commerce'),jdecode(''),'/452501/453722.html','true',[],''],
		['PAGE','453743',jdecode('ARRA+Education'),jdecode(''),'/452501/453743.html','true',[],''],
		['PAGE','453764',jdecode('ARRA+Energy%2FInterior'),jdecode(''),'/452501/453764.html','true',[],''],
		['PAGE','453785',jdecode('ARRA+Environment'),jdecode(''),'/452501/453785.html','true',[],''],
		['PAGE','453827',jdecode('ARRA+Homeland+Security'),jdecode(''),'/452501/453827.html','true',[],''],
		['PAGE','453848',jdecode('ARRA+Housing%2FCom.+Dev.'),jdecode(''),'/452501/453848.html','true',[],''],
		['PAGE','453869',jdecode('ARRA+Human+Services'),jdecode(''),'/452501/453869.html','true',[],''],
		['PAGE','453890',jdecode('ARRA+Justice'),jdecode(''),'/452501/453890.html','true',[],''],
		['PAGE','453911',jdecode('ARRA+Labor'),jdecode(''),'/452501/453911.html','true',[],''],
		['PAGE','455501',jdecode('ARRA+Medicaid'),jdecode(''),'/452501/455501.html','true',[],''],
		['PAGE','453701',jdecode('ARRA+Nutrition%2FAgriculture'),jdecode(''),'/452501/453701.html','true',[],''],
		['PAGE','453806',jdecode('ARRA+Public+Health'),jdecode(''),'/452501/453806.html','true',[],''],
		['PAGE','453953',jdecode('ARRA+Transportation'),jdecode(''),'/452501/453953.html','true',[],''],
		['PAGE','562513',jdecode('ARRA+Treasury'),jdecode(''),'/452501/562513.html','true',[],''],
		['PAGE','453974',jdecode('ARRA+Add%26%23x27%3Bl.+Programs'),jdecode(''),'/452501/453974.html','true',[],'']
	],''],
	['PAGE','1801',jdecode('FFIS+Publications'),jdecode(''),'/1801/index.html','true',[ 
		['PAGE','24201',jdecode('Budget+Briefs'),jdecode(''),'/1801/24201.html','true',[],''],
		['PAGE','6001',jdecode('Issue+Briefs'),jdecode(''),'/1801/6001.html','true',[],''],
		['PAGE','35801',jdecode('Competitive+Grants+'),jdecode(''),'/1801/35801.html','true',[],''],
		['PAGE','113201',jdecode('The+VIP+Series'),jdecode(''),'/1801/113201.html','true',[],''],
		['PAGE','46501',jdecode('Special+Analyses+'),jdecode(''),'/1801/46501.html','true',[],''],
		['PAGE','40021',jdecode('FFIS+Presentations'),jdecode(''),'/1801/40021.html','true',[],'']
	],''],
	['PAGE','76401',jdecode('Grants+Database'),jdecode(''),'/76401.html','true',[],''],
	['PAGE','603013',jdecode('Health+Care+Reform'),jdecode(''),'/603013.html','true',[],''],
	['PAGE','1822',jdecode('Issues+We+Cover'),jdecode(''),'/1822/index.html','true',[ 
		['PAGE','273501',jdecode('Competitive+Grants'),jdecode(''),'/1822/273501.html','true',[],''],
		['PAGE','39769',jdecode('CHIP'),jdecode(''),'/1822/39769.html','true',[],''],
		['PAGE','39916',jdecode('Criminal+Justice'),jdecode(''),'/1822/39916.html','true',[],''],
		['PAGE','260001',jdecode('Decennial+Census'),jdecode(''),'/1822/260001.html','true',[],''],
		['PAGE','39706',jdecode('Education'),jdecode(''),'/1822/39706.html','true',[],''],
		['PAGE','39958',jdecode('Energy%2FEnvironment'),jdecode(''),'/1822/39958.html','true',[],''],
		['PAGE','174201',jdecode('Federal+Spending'),jdecode(''),'/1822/174201.html','true',[],''],
		['PAGE','39685',jdecode('Homeland+Security'),jdecode(''),'/1822/39685.html','true',[],''],
		['PAGE','39895',jdecode('Housing+and+Comm.+Dev.'),jdecode(''),'/1822/39895.html','true',[],''],
		['PAGE','39832',jdecode('Human+Services'),jdecode(''),'/1822/39832.html','true',[],''],
		['PAGE','39979',jdecode('Labor'),jdecode(''),'/1822/39979.html','true',[],''],
		['PAGE','39727',jdecode('Medicaid%2FClawback'),jdecode(''),'/1822/39727.html','true',[],''],
		['PAGE','39853',jdecode('Nutrition%2FAgriculture'),jdecode(''),'/1822/39853.html','true',[],''],
		['PAGE','39790',jdecode('Public+Health'),jdecode(''),'/1822/39790.html','true',[],''],
		['PAGE','39874',jdecode('Transportation'),jdecode(''),'/1822/39874.html','true',[],''],
		['PAGE','39811',jdecode('Welfare'),jdecode(''),'/1822/39811.html','true',[],'']
	],''],
	['PAGE','38301',jdecode('Program+Descriptions'),jdecode(''),'/38301.html','true',[],''],
	['PAGE','1906',jdecode('State+Policy+Reports'),jdecode(''),'/1906.html','true',[],''],
	['PAGE','112401',jdecode('Subscription+Options'),jdecode(''),'/112401.html','true',[],''],
	['PAGE','172101',jdecode('Archives'),jdecode(''),'/172101/index.html','true',[ 
		['PAGE','71101',jdecode('News'),jdecode(''),'/172101/71101.html','true',[],''],
		['PAGE','98401',jdecode('Budget+Briefs'),jdecode(''),'/172101/98401.html','true',[],''],
		['PAGE','98422',jdecode('Issue+Briefs'),jdecode(''),'/172101/98422.html','true',[],''],
		['PAGE','98443',jdecode('Competitive+Grants'),jdecode(''),'/172101/98443.html','true',[],''],
		['PAGE','114201',jdecode('The+VIP+Series'),jdecode(''),'/172101/114201.html','true',[],''],
		['PAGE','98464',jdecode('Special+Analyses'),jdecode(''),'/172101/98464.html','true',[],''],
		['PAGE','98485',jdecode('FFIS+Presentations'),jdecode(''),'/172101/98485.html','true',[],''],
		['PAGE','185043',jdecode('CHIP'),jdecode(''),'/172101/185043.html','true',[],''],
		['PAGE','174801',jdecode('Criminal+Justice'),jdecode(''),'/172101/174801.html','true',[],''],
		['PAGE','174822',jdecode('Education'),jdecode(''),'/172101/174822.html','true',[],''],
		['PAGE','39937',jdecode('Election+Reform'),jdecode(''),'/172101/39937.html','true',[],''],
		['PAGE','177201',jdecode('Energy%2FEnvironment'),jdecode(''),'/172101/177201.html','true',[],''],
		['PAGE','124201',jdecode('Federal+Spending'),jdecode(''),'/172101/124201.html','true',[],''],
		['PAGE','165501',jdecode('Homeland+Security'),jdecode(''),'/172101/165501.html','true',[],''],
		['PAGE','186201',jdecode('Housing+and+Comm.+Dev.'),jdecode(''),'/172101/186201.html','true',[],''],
		['PAGE','185064',jdecode('Human+Services'),jdecode(''),'/172101/185064.html','true',[],''],
		['PAGE','185001',jdecode('Labor'),jdecode(''),'/172101/185001.html','true',[],''],
		['PAGE','185022',jdecode('Medicaid%2FClawback'),jdecode(''),'/172101/185022.html','true',[],''],
		['PAGE','180901',jdecode('Nutrition%2FAgriculture'),jdecode(''),'/172101/180901.html','true',[],''],
		['PAGE','182401',jdecode('Public+Health'),jdecode(''),'/172101/182401.html','true',[],''],
		['PAGE','185085',jdecode('Transportation'),jdecode(''),'/172101/185085.html','true',[],''],
		['PAGE','185106',jdecode('Welfare'),jdecode(''),'/172101/185106.html','true',[],'']
	],''],
	['PAGE','1843',jdecode('Staff'),jdecode(''),'/1843.html','true',[],''],
	['PAGE','249201',jdecode('Search'),jdecode(''),'/249201.html','true',[],'']];
var siteelementCount=78;
theSitetree.topTemplateName='Dots';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='403';
theSitetree.keyvisualName='gericht.jpg';
theSitetree.fontsetId='46';
theSitetree.graphicsetId='43';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFCC66';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Dots',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'403',
				keyvisualName: 	'gericht.jpg',
				fontsetId: 		'46',
				graphicsetId: 	'43',
				contentColor: 	'666666',
				contentBGColor: 'FFCC66',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFCC66',
				b_color: 		'FF9933',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091112-112044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20091118-075513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090902-120527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1822',
internalId:  '',
customField: '20091015-085506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172101',
internalId:  '',
customField: '20091103-122622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98401',
internalId:  '',
customField: '20090902-132538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174201',
internalId:  '',
customField: '20091112-112237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124201',
internalId:  '',
customField: '20091112-112920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452501',
internalId:  '',
customField: '20091112-124049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453890',
internalId:  '',
customField: '20091118-093542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453701',
internalId:  '',
customField: '20091118-130044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453869',
internalId:  '',
customField: '20091118-080429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453764',
internalId:  '',
customField: '20091118-092220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453785',
internalId:  '',
customField: '20091118-092349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453848',
internalId:  '',
customField: '20091118-145926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453827',
internalId:  '',
customField: '20091118-092454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76401',
internalId:  '',
customField: '20090625-072336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113201',
internalId:  '',
customField: '20091105-112313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114201',
internalId:  '',
customField: '20091105-112355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453806',
internalId:  '',
customField: '20091118-094509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20091110-092004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453722',
internalId:  '',
customField: '20091118-130255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453743',
internalId:  '',
customField: '20091118-091942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '603013',
internalId:  '',
customField: '20091118-084343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453911',
internalId:  '',
customField: '20091118-093736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '455501',
internalId:  '',
customField: '20091118-093828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453953',
internalId:  '',
customField: '20091118-090223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '453974',
internalId:  '',
customField: '20091027-115618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20091106-141604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20091118-151130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46501',
internalId:  '',
customField: '20091112-112114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40021',
internalId:  '',
customField: '20091105-123626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273501',
internalId:  '',
customField: '20091118-151233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39916',
internalId:  '',
customField: '20091022-114211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260001',
internalId:  '',
customField: '20091105-113334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39706',
internalId:  '',
customField: '20091106-135816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39958',
internalId:  '',
customField: '20091022-120651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39685',
internalId:  '',
customField: '20090915-140933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39895',
internalId:  '',
customField: '20090526-133604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39832',
internalId:  '',
customField: '20091106-141727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39979',
internalId:  '',
customField: '20090930-120425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39727',
internalId:  '',
customField: '20091106-141802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39853',
internalId:  '',
customField: '20091105-113803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39790',
internalId:  '',
customField: '20090603-130205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39769',
internalId:  '',
customField: '20091103-122611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39874',
internalId:  '',
customField: '20091103-122801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39811',
internalId:  '',
customField: '20090813-123937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20091109-090816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1906',
internalId:  '',
customField: '20091027-120041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112401',
internalId:  '',
customField: '20090428-095947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20091104-150620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98422',
internalId:  '',
customField: '20091106-141843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98443',
internalId:  '',
customField: '20091118-151318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98464',
internalId:  '',
customField: '20091112-112217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98485',
internalId:  '',
customField: '20090729-152031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174801',
internalId:  '',
customField: '20091022-121817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174822',
internalId:  '',
customField: '20091106-135700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39937',
internalId:  '',
customField: '20090528-092827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177201',
internalId:  '',
customField: '20091022-121956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165501',
internalId:  '',
customField: '20090915-140957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186201',
internalId:  '',
customField: '20090528-144614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185064',
internalId:  '',
customField: '20091106-141924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185001',
internalId:  '',
customField: '20090930-120552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185022',
internalId:  '',
customField: '20091106-141958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180901',
internalId:  '',
customField: '20091105-113717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182401',
internalId:  '',
customField: '20090603-130103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185043',
internalId:  '',
customField: '20091103-122658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185085',
internalId:  '',
customField: '20091103-122859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185106',
internalId:  '',
customField: '20091022-122154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1843',
internalId:  '',
customField: '20091022-121716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249201',
internalId:  '',
customField: '20070327-095222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '483801',
internalId:  '',
customField: '20091118-151002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '497113',
internalId:  '',
customField: '20091118-090837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '497176',
internalId:  '',
customField: '20091118-091603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '497155',
internalId:  '',
customField: '20091118-091508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '545013',
internalId:  '',
customField: '20091118-063303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '562513',
internalId:  '',
customField: '20091103-144201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '585613',
internalId:  '',
customField: '20090922-093936'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN2SX4';
var companyName   = 'Federal+Funds+Information+for+States';
var htmlTitle	  = '';
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();
};
