/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40555',jdecode('Der+Verein'),jdecode(''),'/40555/home.html','true',[ 
		['PAGE','40564',jdecode('Geschichte'),jdecode(''),'/40555/40564.html','true',[],''],
		['PAGE','40573',jdecode('Der+Vorstand'),jdecode(''),'/40555/40573.html','true',[],''],
		['PAGE','40582',jdecode('Sportst%C3%A4tte'),jdecode(''),'/40555/40582.html','true',[],''],
		['PAGE','40591',jdecode('Sportlerkneipe'),jdecode(''),'/40555/40591.html','true',[],''],
		['PAGE','172301',jdecode('Geburtstagsliste'),jdecode(''),'/40555/172301.html','true',[],''],
		['PAGE','42645',jdecode('Trainingszeiten'),jdecode(''),'/40555/42645.html','true',[],''],
		['PAGE','172901',jdecode('Anfahrt'),jdecode(''),'/40555/172901.html','true',[],''],
		['PAGE','173001',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/40555/173001.html','true',[],'']
	],''],
	['PAGE','40652',jdecode('I.Mannschaft'),jdecode(''),'/40652/home.html','true',[ 
		['PAGE','40670',jdecode('Der+Kader'),jdecode(''),'/40652/40670.html','true',[],''],
		['PAGE','40679',jdecode('Spieltag%2FTabelle'),jdecode(''),'/40652/40679.html','true',[],''],
		['PAGE','40688',jdecode('Spielplan'),jdecode(''),'/40652/40688.html','true',[],''],
		['PAGE','40697',jdecode('Statistik'),jdecode(''),'/40652/40697.html','true',[],''],
		['PAGE','41226',jdecode('Pokal'),jdecode(''),'/40652/41226.html','true',[],''],
		['PAGE','158801',jdecode('Hallenturniere'),jdecode(''),'/40652/158801.html','true',[],''],
		['PAGE','41966',jdecode('Transfers'),jdecode(''),'/40652/41966.html','true',[],'']
	],''],
	['PAGE','40706',jdecode('II.Mannschaft'),jdecode(''),'/40706/home.html','true',[ 
		['PAGE','40724',jdecode('Der+Kader'),jdecode(''),'/40706/40724.html','true',[],''],
		['PAGE','40733',jdecode('Spieltag%2FTabelle'),jdecode(''),'/40706/40733.html','true',[],''],
		['PAGE','40742',jdecode('Spielplan'),jdecode(''),'/40706/40742.html','true',[],''],
		['PAGE','40751',jdecode('Statistik'),jdecode(''),'/40706/40751.html','true',[],''],
		['PAGE','165601',jdecode('Hallenturnier'),jdecode(''),'/40706/165601.html','true',[],''],
		['PAGE','41975',jdecode('Transfers'),jdecode(''),'/40706/41975.html','true',[],'']
	],''],
	['PAGE','40991',jdecode('Altherren'),jdecode(''),'/40991/home.html','true',[ 
		['PAGE','41000',jdecode('Der+Kader'),jdecode(''),'/40991/41000.html','true',[],''],
		['PAGE','41009',jdecode('Spieltag%2FTabelle'),jdecode(''),'/40991/41009.html','true',[],''],
		['PAGE','41018',jdecode('Spielplan'),jdecode(''),'/40991/41018.html','true',[],''],
		['PAGE','41984',jdecode('Statistik'),jdecode(''),'/40991/41984.html','true',[],''],
		['PAGE','41993',jdecode('Pokal'),jdecode(''),'/40991/41993.html','true',[],''],
		['PAGE','165622',jdecode('Hallenturnier'),jdecode(''),'/40991/165622.html','true',[],''],
		['PAGE','42002',jdecode('Transfers'),jdecode(''),'/40991/42002.html','true',[],'']
	],''],
	['PAGE','41036',jdecode('E-Jugend'),jdecode(''),'/41036/home.html','true',[ 
		['PAGE','165643',jdecode('Hallenturniere'),jdecode(''),'/41036/165643.html','true',[],'']
	],''],
	['PAGE','41045',jdecode('F-Jugend'),jdecode(''),'/41045/home.html','true',[ 
		['PAGE','165664',jdecode('Hallenturniere'),jdecode(''),'/41045/165664.html','true',[],'']
	],''],
	['PAGE','176701',jdecode('G-Junioren+'),jdecode(''),'/176701.html','true',[],''],
	['PAGE','259501',jdecode('andere+Abteilungen'),jdecode(''),'/259501/home.html','true',[ 
		['PAGE','259522',jdecode('Leichtathletik'),jdecode(''),'/259501/259522.html','true',[],''],
		['PAGE','259543',jdecode('Schach'),jdecode(''),'/259501/259543.html','true',[],''],
		['PAGE','259564',jdecode('Kegeln'),jdecode(''),'/259501/259564.html','true',[],''],
		['PAGE','259585',jdecode('Allgemeiner+Sport'),jdecode(''),'/259501/259585.html','true',[],'']
	],''],
	['PAGE','157101',jdecode('Termine'),jdecode(''),'/157101.html','true',[],''],
	['PAGE','75301',jdecode('G%C3%A4stebuch'),jdecode(''),'/75301.html','true',[],''],
	['PAGE','41282',jdecode('Forum'),jdecode(''),'/41282/home.html','true',[ 
		['PAGE','85301',jdecode('Voting'),jdecode(''),'/41282/85301.html','true',[],''],
		['PAGE','264501',jdecode('Ergebnisse'),jdecode(''),'/41282/264501.html','true',[],'']
	],''],
	['PAGE','41434',jdecode('Bilder'),jdecode(''),'/41434/home.html','true',[ 
		['PAGE','66101',jdecode('Mannschaftsbilder'),jdecode(''),'/41434/66101.html','true',[],'']
	],''],
	['PAGE','41906',jdecode('Videos'),jdecode(''),'/41906.html','true',[],''],
	['PAGE','287001',jdecode('Presse'),jdecode(''),'/287001.html','true',[],''],
	['PAGE','172322',jdecode('Spiele'),jdecode(''),'/172322.html','true',[],''],
	['PAGE','98001',jdecode('Archiv'),jdecode(''),'/98001/home.html','true',[ 
		['PAGE','285101',jdecode('Ewigentabellen+Tore'),jdecode(''),'/98001/285101.html','true',[],''],
		['PAGE','286001',jdecode('Ewigentabelle+Spiele'),jdecode(''),'/98001/286001.html','true',[],''],
		['PAGE','281801',jdecode('Saison+1994%2F1995'),jdecode(''),'/98001/281801.html','true',[],''],
		['PAGE','282201',jdecode('Saison+1995%2F1996'),jdecode(''),'/98001/282201.html','true',[],''],
		['PAGE','282601',jdecode('Saison+1996%2F1997'),jdecode(''),'/98001/282601.html','true',[],''],
		['PAGE','283201',jdecode('Saison+1997%2F1998'),jdecode(''),'/98001/283201.html','true',[],''],
		['PAGE','283501',jdecode('Saison+1998%2F1999'),jdecode(''),'/98001/283501.html','true',[],''],
		['PAGE','286401',jdecode('Saison+1999%2F2000'),jdecode(''),'/98001/286401.html','true',[],''],
		['PAGE','288801',jdecode('Saison+2000%2F2001'),jdecode(''),'/98001/288801.html','true',[],''],
		['PAGE','289101',jdecode('Saison+2001%2F2002'),jdecode(''),'/98001/289101.html','true',[],''],
		['PAGE','289401',jdecode('Saison+2004%2F2005'),jdecode(''),'/98001/289401.html','true',[],''],
		['PAGE','290001',jdecode('Saison+2005%2F2006'),jdecode(''),'/98001/290001.html','true',[],''],
		['PAGE','290301',jdecode('Saison+2006%2F2007'),jdecode(''),'/98001/290301.html','true',[],''],
		['PAGE','290601',jdecode('Saison+2007%2F2008'),jdecode(''),'/98001/290601.html','true',[],''],
		['PAGE','291301',jdecode('Saison+2008%2F2009'),jdecode(''),'/98001/291301.html','true',[],''],
		['PAGE','98022',jdecode('Spielerarchiv'),jdecode(''),'/98001/98022.html','true',[],''],
		['PAGE','98043',jdecode('Spielarchiv'),jdecode(''),'/98001/98043.html','true',[],''],
		['PAGE','102601',jdecode('Interview'),jdecode(''),'/98001/102601.html','true',[],'']
	],''],
	['PAGE','43013',jdecode('Links'),jdecode(''),'/43013/home.html','true',[ 
		['PAGE','43022',jdecode('Sponsoren'),jdecode(''),'/43013/43022.html','true',[],'']
	],''],
	['PAGE','260301',jdecode('Impressum'),jdecode(''),'/260301.html','true',[],'']];
var siteelementCount=75;
theSitetree.topTemplateName='Fussball09';
theSitetree.paletteFamily='C52020';
theSitetree.keyvisualId='10494';
theSitetree.keyvisualName='kv_10494.jpg';
theSitetree.fontsetId='26590';
theSitetree.graphicsetId='13439';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='C52020';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fussball09',
				paletteFamily: 	'C52020',
				keyvisualId: 	'10494',
				keyvisualName: 	'kv_10494.jpg',
				fontsetId: 		'26590',
				graphicsetId: 	'13439',
				contentColor: 	'FFFFFF',
				contentBGColor: 'C52020',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20101024-125939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20100821-141346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20090330-202046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98022',
internalId:  '',
customField: '20101009-183110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85301',
internalId:  '',
customField: '20100916-235820'
};
webappMappings['1501']=webappMappings['1501-55780825']={
webappId:    '1501',
documentId:  '39994',
internalId:  '55780825',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40573',
internalId:  '',
customField: '20100226-235334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20090611-134620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40591',
internalId:  '',
customField: '20090611-134906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75301',
internalId:  '',
customField: '20090601-182913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98001',
internalId:  '',
customField: '20100116-151615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40706',
internalId:  '',
customField: '20101024-132131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40724',
internalId:  '',
customField: '20101105-154339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40652',
internalId:  '',
customField: '20101020-142627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41984',
internalId:  '',
customField: '20101024-131627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40670',
internalId:  '',
customField: '20101108-231221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40679',
internalId:  '',
customField: '20101020-142210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40688',
internalId:  '',
customField: '20101018-172112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40697',
internalId:  '',
customField: '20101018-170615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41975',
internalId:  '',
customField: '20101014-230150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40733',
internalId:  '',
customField: '20101024-132212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40742',
internalId:  '',
customField: '20101024-132351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40751',
internalId:  '',
customField: '20101024-132647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40991',
internalId:  '',
customField: '20101024-130910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41000',
internalId:  '',
customField: '20101009-181932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41009',
internalId:  '',
customField: '20101024-130959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41018',
internalId:  '',
customField: '20101024-131221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282601',
internalId:  '',
customField: '20101002-150239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41036',
internalId:  '',
customField: '20101024-130313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41045',
internalId:  '',
customField: '20101003-193216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41226',
internalId:  '',
customField: '20101018-171851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158801',
internalId:  '',
customField: '20100103-204916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41282',
internalId:  '',
customField: '20090611-143608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41966',
internalId:  '',
customField: '20100928-121521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41906',
internalId:  '',
customField: '20100423-121141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41993',
internalId:  '',
customField: '20100828-174720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41434',
internalId:  '',
customField: '20101016-160400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42002',
internalId:  '',
customField: '20101009-182234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259564',
internalId:  '',
customField: '20101017-214412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42645',
internalId:  '',
customField: '20101014-225408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260301',
internalId:  '',
customField: '20100812-131344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282201',
internalId:  '',
customField: '20101002-014510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43013',
internalId:  '',
customField: '20100103-220255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43022',
internalId:  '',
customField: '20090611-230517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259501',
internalId:  '',
customField: '20100812-124045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259522',
internalId:  '',
customField: '20100812-133707'
};
webappMappings['1007']=webappMappings['1007-12117b09a38']={
webappId:    '1007',
documentId:  '66101',
internalId:  '12117b09a38',
customField: 'g.144bpnhvl.12f0mgce7sug.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66101',
internalId:  '',
customField: '20090507-162734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98043',
internalId:  '',
customField: '20090915-225741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172322',
internalId:  '',
customField: '20100116-152209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172301',
internalId:  '',
customField: '20100923-132544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102601',
internalId:  '',
customField: '20100821-234201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157101',
internalId:  '',
customField: '20101020-145057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165622',
internalId:  '',
customField: '20100314-010230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165601',
internalId:  '',
customField: '20100124-191825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165643',
internalId:  '',
customField: '20100124-214413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165664',
internalId:  '',
customField: '20100118-235329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259543',
internalId:  '',
customField: '20101018-165538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259585',
internalId:  '',
customField: '20100812-124951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264501',
internalId:  '',
customField: '20100917-000011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176701',
internalId:  '',
customField: '20100118-234704'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '172901',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '173001',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173001',
internalId:  '',
customField: '20100116-155608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172901',
internalId:  '',
customField: '20100116-155526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281801',
internalId:  '',
customField: '20101001-173422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283201',
internalId:  '',
customField: '20101002-171515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283501',
internalId:  '',
customField: '20101003-235416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285101',
internalId:  '',
customField: '20101017-203807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286001',
internalId:  '',
customField: '20101017-204126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286401',
internalId:  '',
customField: '20101004-200700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287001',
internalId:  '',
customField: '20101004-224600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288801',
internalId:  '',
customField: '20101005-170645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289101',
internalId:  '',
customField: '20101006-215424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289401',
internalId:  '',
customField: '20101007-223624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290001',
internalId:  '',
customField: '20101007-221953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290301',
internalId:  '',
customField: '20101007-222412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290601',
internalId:  '',
customField: '20101007-223424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291301',
internalId:  '',
customField: '20101008-170552'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IRNMNN';
var companyName   = 'SG+Neukirchen%2F+Erzgebirge';
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) {														 
    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();
}
/* EOF */					                                                            

