/* [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','1247',jdecode('Home'),jdecode(''), jdecode('%2F1247.html'), 'true',[],'',''],
	['PAGE','55823',jdecode('Programm+2011%2F12'),jdecode(''), jdecode('%2F55823%2Findex.html'), 'true',[ 
		['PAGE','216245',jdecode('Nachschau+2012'),jdecode(''), jdecode('%2F55823%2F216245.html'), 'true',[],'',''],
		['PAGE','129034',jdecode('Nachschau+2011'),jdecode(''), jdecode('%2F55823%2F129034.html'), 'true',[],'',''],
		['PAGE','43265',jdecode('Nachschau+2010'),jdecode(''), jdecode('%2F55823%2F43265.html'), 'true',[],'',''],
		['PAGE','43244',jdecode('Nachschau+2009'),jdecode(''), jdecode('%2F55823%2F43244.html'), 'true',[],'',''],
		['PAGE','43223',jdecode('Nachschau+2008'),jdecode(''), jdecode('%2F55823%2F43223.html'), 'true',[],'',''],
		['PAGE','10101',jdecode('Nachschau+2007'),jdecode(''), jdecode('%2F55823%2F10101.html'), 'true',[],'','']
	],'',''],
	['PAGE','70923',jdecode('Foto-Galerie+Night-Music'),jdecode(''), jdecode('%2F70923.html'), 'true',[],'',''],
	['PAGE','114834',jdecode('Presse+Night-Music+2011'),jdecode(''), jdecode('%2F114834%2Findex.html'), 'true',[ 
		['PAGE','213845',jdecode('Chamber+Soul+21.12.11'),jdecode(''), jdecode('%2F114834%2F213845.html'), 'true',[],'',''],
		['PAGE','210745',jdecode('Little+Ch%C3%A9vy+%26+The+Mojo+Swamp+30.11.11+'),jdecode(''), jdecode('%2F114834%2F210745.html'), 'true',[],'',''],
		['PAGE','159234',jdecode('offbeat-Trio+feat.+Lyambiko%2C+18.5.11'),jdecode(''), jdecode('%2F114834%2F159234.html'), 'true',[],'',''],
		['PAGE','157334',jdecode('Melch+D%C3%A4niker-Trio+25.4.11'),jdecode(''), jdecode('%2F114834%2F157334.html'), 'true',[],'',''],
		['PAGE','153934',jdecode('Stonedry+4.4.11'),jdecode(''), jdecode('%2F114834%2F153934.html'), 'true',[],'',''],
		['PAGE','148634',jdecode('Partyfactor+8.3.11'),jdecode(''), jdecode('%2F114834%2F148634.html'), 'true',[],'',''],
		['PAGE','150534',jdecode('Frenzee+Kay+4.3.11'),jdecode(''), jdecode('%2F114834%2F150534.html'), 'true',[],'',''],
		['PAGE','146434',jdecode('Markus+Bischof+Trio%2C+14.2.11'),jdecode(''), jdecode('%2F114834%2F146434.html'), 'true',[],'',''],
		['PAGE','143434',jdecode('Elias+Bernet+Band+9.1.11'),jdecode(''), jdecode('%2F114834%2F143434.html'), 'true',[],'',''],
		['PAGE','141134',jdecode('Pulluporchestra+31.1.11'),jdecode(''), jdecode('%2F114834%2F141134.html'), 'true',[],'',''],
		['PAGE','137334',jdecode('Lisa+Berg+-+Dave+Ruosch+%26+Band+24.1.11'),jdecode(''), jdecode('%2F114834%2F137334.html'), 'true',[],'',''],
		['PAGE','129434',jdecode('S.U.C.+%26+Co.+3.1.11'),jdecode(''), jdecode('%2F114834%2F129434.html'), 'true',[],'','']
	],'',''],
	['PAGE','195845',jdecode('jazzin+-+3.+Nat.+Festival+2012'),jdecode(''), jdecode('%2F195845.html'), 'true',[],'',''],
	['PAGE','167145',jdecode('Grafik%3A+Nina+Engeler'),jdecode(''), jdecode('%2F167145.html'), 'true',[],'',''],
	['PAGE','156134',jdecode('Schriftzug%3A+Jules+A.+Kaeser'),jdecode(''), jdecode('%2F156134.html'), 'true',[],'',''],
	['PAGE','80923',jdecode('jazzin-Komitee+%2F+Impressum+%2F+Staff+'),jdecode(''), jdecode('%2F80923.html'), 'true',[],'',''],
	['PAGE','50023',jdecode('Veranstalter'),jdecode(''), jdecode('%2F50023%2Findex.html'), 'true',[ 
		['PAGE','133334',jdecode('Unsere+Sponsoren'),jdecode(''), jdecode('%2F50023%2F133334.html'), 'true',[],'','']
	],'',''],
	['PAGE','82623',jdecode('jazzin+-+2.+Nat.+Festival+2011'),jdecode(''), jdecode('%2F82623.html'), 'true',[],'',''],
	['PAGE','150134',jdecode('Verein+Night-Music'),jdecode(''), jdecode('%2F150134.html'), 'true',[],'',''],
	['PAGE','3501',jdecode('Mitglied+werden%3F'),jdecode(''), jdecode('%2F3501.html'), 'true',[],'',''],
	['PAGE','3522',jdecode('Statuten'),jdecode(''), jdecode('%2F3522.html'), 'true',[],'',''],
	['PAGE','185845',jdecode('Presse+jazzin+2011'),jdecode(''), jdecode('%2F185845%2Findex.html'), 'true',[ 
		['PAGE','186445',jdecode('Zufrieden%2C+aber'),jdecode(''), jdecode('%2F185845%2F186445.html'), 'true',[],'',''],
		['PAGE','193245',jdecode('Laura+Boldo+-+New+Comer'),jdecode(''), jdecode('%2F185845%2F193245.html'), 'true',[],'',''],
		['PAGE','186466',jdecode('Die+Bewegung+%26+Musik+sp%C3%BCren'),jdecode(''), jdecode('%2F185845%2F186466.html'), 'true',[],'',''],
		['PAGE','178945',jdecode('W%C3%BCrdigung+des+Schaffens'),jdecode(''), jdecode('%2F185845%2F178945.html'), 'true',[],'',''],
		['PAGE','183445',jdecode('Eine+Art+Willisau'),jdecode(''), jdecode('%2F185845%2F183445.html'), 'true',[],'',''],
		['PAGE','178445',jdecode('Ein+Festival+-+zwei+Orte'),jdecode(''), jdecode('%2F185845%2F178445.html'), 'true',[],'',''],
		['PAGE','164434',jdecode('Hauptsponsor+UBS+Juli+11'),jdecode(''), jdecode('%2F185845%2F164434.html'), 'true',[],'',''],
		['PAGE','143734',jdecode('jazzin+erf%C3%A4hrt+eine+Neuauflage'),jdecode(''), jdecode('%2F185845%2F143734.html'), 'true',[],'','']
	],'',''],
	['PAGE','187645',jdecode('Foto-Galerie+jazzin+2011'),jdecode(''), jdecode('%2F187645.html'), 'true',[],'',''],
	['PAGE','147634',jdecode('Presse+Night-Music+2010'),jdecode(''), jdecode('%2F147634%2Findex.html'), 'true',[ 
		['PAGE','128034',jdecode('Claude+Diallo+Situation+27.12.10'),jdecode(''), jdecode('%2F147634%2F128034.html'), 'true',[],'',''],
		['PAGE','126234',jdecode('Gavin+James+13.12.10'),jdecode(''), jdecode('%2F147634%2F126234.html'), 'true',[],'',''],
		['PAGE','123434',jdecode('Bluesonix+29.11.10'),jdecode(''), jdecode('%2F147634%2F123434.html'), 'true',[],'',''],
		['PAGE','123455',jdecode('A+Touch+of+Swing+22.11.10'),jdecode(''), jdecode('%2F147634%2F123455.html'), 'true',[],'',''],
		['PAGE','113934',jdecode('Swing+Strings+15.11.10'),jdecode(''), jdecode('%2F147634%2F113934.html'), 'true',[],'',''],
		['PAGE','109234',jdecode('Michael+Hammer-Trio+8.11.10'),jdecode(''), jdecode('%2F147634%2F109234.html'), 'true',[],'',''],
		['PAGE','106534',jdecode('Altstadt+Ramblers+1.11.10'),jdecode(''), jdecode('%2F147634%2F106534.html'), 'true',[],'',''],
		['PAGE','1268',jdecode('Jazz-Ap%C3%A9ro+19.9.10'),jdecode(''), jdecode('%2F147634%2F1268.html'), 'true',[],'',''],
		['PAGE','74523',jdecode('Alexia+Gardner+%26+offbeat+Jazztrio+3.3.10'),jdecode(''), jdecode('%2F147634%2F74523.html'), 'true',[],'',''],
		['PAGE','68123',jdecode('Tango+Sensations+27.4.10'),jdecode(''), jdecode('%2F147634%2F68123.html'), 'true',[],'',''],
		['PAGE','66423',jdecode('Mat+Callahan%26%23x27%3Bs+San+Francisco'),jdecode(''), jdecode('%2F147634%2F66423.html'), 'true',[],'',''],
		['PAGE','63623',jdecode('Chamber+Soul+7.4.10'),jdecode(''), jdecode('%2F147634%2F63623.html'), 'true',[],'',''],
		['PAGE','60723',jdecode('X-elle+30.3.10'),jdecode(''), jdecode('%2F147634%2F60723.html'), 'true',[],'',''],
		['PAGE','59323',jdecode('Togg+Seven+22.3.10'),jdecode(''), jdecode('%2F147634%2F59323.html'), 'true',[],'',''],
		['PAGE','47623',jdecode('Aion+Quintett+28.1.10'),jdecode(''), jdecode('%2F147634%2F47623.html'), 'true',[],'',''],
		['PAGE','41823',jdecode('m%C3%BBr%2C+13.1.10'),jdecode(''), jdecode('%2F147634%2F41823.html'), 'true',[],'','']
	],'',''],
	['PAGE','61623',jdecode('Presse+Night-Music+2009'),jdecode(''), jdecode('%2F61623%2Findex.html'), 'true',[ 
		['PAGE','37923',jdecode('Sarda%2C+29.12.09.+iwp'),jdecode(''), jdecode('%2F61623%2F37923.html'), 'true',[],'',''],
		['PAGE','38923',jdecode('Sarda+30.12.09%2C+WZ'),jdecode(''), jdecode('%2F61623%2F38923.html'), 'true',[],'',''],
		['PAGE','36923',jdecode('Gossau+Gospel+Choir+16.12.09'),jdecode(''), jdecode('%2F61623%2F36923.html'), 'true',[],'',''],
		['PAGE','62323',jdecode('Stefano+Romerio+2.12.09'),jdecode(''), jdecode('%2F61623%2F62323.html'), 'true',[],'',''],
		['PAGE','32865',jdecode('Thomas+Scheytt+25.11.09'),jdecode(''), jdecode('%2F61623%2F32865.html'), 'true',[],'',''],
		['PAGE','32823',jdecode('voice+meets+piano+6.11.09'),jdecode(''), jdecode('%2F61623%2F32823.html'), 'true',[],'',''],
		['PAGE','29423',jdecode('Altstadt+Ramblers+4.11.09'),jdecode(''), jdecode('%2F61623%2F29423.html'), 'true',[],'',''],
		['PAGE','14322',jdecode('Dem+Fl%C3%BCgel+Fl%C3%BCgel+verliehen'),jdecode(''), jdecode('%2F61623%2F14322.html'), 'true',[],'',''],
		['PAGE','62023',jdecode('Der+Mut+hat+sich+ausbezahlt'),jdecode(''), jdecode('%2F61623%2F62023.html'), 'true',[],'','']
	],'',''],
	['PAGE','144934',jdecode('Flawil+TV'),jdecode(''), jdecode('%2F144934.html'), 'true',[],'',''],
	['PAGE','138034',jdecode('Back-Line'),jdecode(''), jdecode('%2F138034.html'), 'true',[],'',''],
	['PAGE','1342',jdecode('Kontakt'),jdecode(''), jdecode('%2F1342.html'), 'true',[],'',''],
	['PAGE','1321',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F1321.html'), 'true',[],'',''],
	['PAGE','3543',jdecode('Restaurant+Park'),jdecode(''), jdecode('%2F3543.html'), 'true',[],'',''],
	['PAGE','11201',jdecode('Unser+Pianoservice'),jdecode(''), jdecode('%2F11201.html'), 'true',[],'',''],
	['PAGE','83823',jdecode('Unser+Schlagzeugservice'),jdecode(''), jdecode('%2F83823.html'), 'true',[],'',''],
	['PAGE','219145',jdecode('Unser+Bl%C3%A4ser-Service'),jdecode(''), jdecode('%2F219145.html'), 'true',[],'',''],
	['PAGE','84123',jdecode('Unser+Electronicservice'),jdecode(''), jdecode('%2F84123.html'), 'true',[],'',''],
	['PAGE','84623',jdecode('Der+PC-Service+und+Verkauf'),jdecode(''), jdecode('%2F84623.html'), 'true',[],'',''],
	['PAGE','87123',jdecode('Unsere+Beleuchtung'),jdecode(''), jdecode('%2F87123.html'), 'true',[],'',''],
	['PAGE','3564',jdecode('Links'),jdecode(''), jdecode('%2F3564.html'), 'true',[],'',''],
	['PAGE','195866',jdecode('Schwarze+Liste'),jdecode(''), jdecode('%2F195866.html'), 'true',[],'','']];
var siteelementCount=82;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='580D02';
theSitetree.keyvisualId='11383';
theSitetree.keyvisualName='kv_11383.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13803';
theSitetree.contentColor='340800';
theSitetree.contentBGColor='FBE5C3';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'webland',
  product: 'WSCSYSSSSLY0XFFS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'580D02',
				keyvisualId: 	'11383',
				keyvisualName: 	'kv_11383.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:  '84123',
internalId:  '',
customField: '20100807-104659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3522',
internalId:  '',
customField: '20091015-111942'
};
webappMappings['7002']=webappMappings['7002-3561']={
webappId:    '7002',
documentId:  '1321',
internalId:  '3561',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-4036']={
webappId:    '7008',
documentId:  '1342',
internalId:  '4036',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1247',
internalId:  '',
customField: '20120118-094900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1268',
internalId:  '',
customField: '20100920-075113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83823',
internalId:  '',
customField: '20110127-112502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20091024-114224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1321',
internalId:  '',
customField: '20091015-012416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1342',
internalId:  '',
customField: '20110810-094854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3543',
internalId:  '',
customField: '20100428-091007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3564',
internalId:  '',
customField: '20120124-180308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178945',
internalId:  '',
customField: '20110916-090213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20100503-083213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20101119-074004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14322',
internalId:  '',
customField: '20100113-084104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150134',
internalId:  '',
customField: '20110313-104051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37923',
internalId:  '',
customField: '20100113-082709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36923',
internalId:  '',
customField: '20100113-081708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29423',
internalId:  '',
customField: '20100113-080938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32823',
internalId:  '',
customField: '20100113-081058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32865',
internalId:  '',
customField: '20100113-082257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38923',
internalId:  '',
customField: '20100113-082517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129434',
internalId:  '',
customField: '20110105-091137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41823',
internalId:  '',
customField: '20100113-083152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43223',
internalId:  '',
customField: '20100503-082936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43244',
internalId:  '',
customField: '20100503-082553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43265',
internalId:  '',
customField: '20110516-073701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47623',
internalId:  '',
customField: '20100128-083055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50023',
internalId:  '',
customField: '20110815-101119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55823',
internalId:  '',
customField: '20120131-004937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59323',
internalId:  '',
customField: '20100325-093228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60723',
internalId:  '',
customField: '20100407-104012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61623',
internalId:  '',
customField: '20100330-085914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62023',
internalId:  '',
customField: '20100330-091409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62323',
internalId:  '',
customField: '20100330-092445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63623',
internalId:  '',
customField: '20100418-181631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80923',
internalId:  '',
customField: '20120104-153331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82623',
internalId:  '',
customField: '20110919-110943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74523',
internalId:  '',
customField: '20100507-203543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66423',
internalId:  '',
customField: '20100418-182007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68123',
internalId:  '',
customField: '20100427-202340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84623',
internalId:  '',
customField: '20100808-104759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70923',
internalId:  '',
customField: '20120104-152149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87123',
internalId:  '',
customField: '20100811-091831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133334',
internalId:  '',
customField: '20110919-111829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109234',
internalId:  '',
customField: '20101110-010457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106534',
internalId:  '',
customField: '20101117-233449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113934',
internalId:  '',
customField: '20101119-072847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114834',
internalId:  '',
customField: '20111130-073647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123455',
internalId:  '',
customField: '20101201-081943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123434',
internalId:  '',
customField: '20101201-080152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126234',
internalId:  '',
customField: '20101216-011959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128034',
internalId:  '',
customField: '20101231-001902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129034',
internalId:  '',
customField: '20111227-181716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193245',
internalId:  '',
customField: '20111015-105524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187645',
internalId:  '',
customField: '20110919-105048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137334',
internalId:  '',
customField: '20110126-220450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138034',
internalId:  '',
customField: '20110301-113531'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1247',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141134',
internalId:  '',
customField: '20110202-104709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143434',
internalId:  '',
customField: '20110209-080807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143734',
internalId:  '',
customField: '20110209-081852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144934',
internalId:  '',
customField: '20110214-073658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146434',
internalId:  '',
customField: '20110215-105953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147634',
internalId:  '',
customField: '20110301-155936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148634',
internalId:  '',
customField: '20110308-140826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150534',
internalId:  '',
customField: '20110315-155730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153934',
internalId:  '',
customField: '20110405-112001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156134',
internalId:  '',
customField: '20110420-111254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157334',
internalId:  '',
customField: '20110427-084835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159234',
internalId:  '',
customField: '20110522-102017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210745',
internalId:  '',
customField: '20111130-073819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164434',
internalId:  '',
customField: '20110724-113829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167145',
internalId:  '',
customField: '20120104-110235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178445',
internalId:  '',
customField: '20110811-142255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195866',
internalId:  '',
customField: '20111101-110807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183445',
internalId:  '',
customField: '20110901-070726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185845',
internalId:  '',
customField: '20111231-110547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186445',
internalId:  '',
customField: '20111014-201201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186466',
internalId:  '',
customField: '20110919-091907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195845',
internalId:  '',
customField: '20111221-083431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213845',
internalId:  '',
customField: '20111221-082418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216245',
internalId:  '',
customField: '20120131-001504'
};
webappMappings['1501']=webappMappings['1501-12360465']={
webappId:    '1501',
documentId:  '1247',
internalId:  '12360465',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219145',
internalId:  '',
customField: '20120124-181745'
};
var webAppHostname = 'wsc-app.webland.ch:80';
var canonHostname = 'wsc02.webland.ch';
var accountId     = 'AWB010IN2K2X';
var companyName   = 'Herzlichst+willkommen%21';
var htmlTitle	  = 'Verein+NIGHT+MUSIC+ist+online%21';
var metaKeywords  = '';
var metaContents  = 'Restaurant+ParkMonday+Night+MusicUrs+C.+EigenmannJazz+in+Flawil';
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();
};

