/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','48201',jdecode('News'),jdecode(''),'/48201.html','true',[],'',''],
	['PAGE','184601',jdecode('%22Robi-Aesch+stellt+sich+vor%22'),jdecode(''),'/184601.html','true',[],'',''],
	['PAGE','169401',jdecode('Robi+Tagebuch'),jdecode(''),'/169401.html','true',[],'',''],
	['PAGE','196701',jdecode('Bau+Gemeinschaftshaus'),jdecode(''),'/196701.html','true',[],'',''],
	['PAGE','185901',jdecode('Presseartikel'),jdecode(''),'/185901.html','true',[],'',''],
	['PAGE','452',jdecode('Es+war+einmal...'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','24801',jdecode('Jahresbericht+06'),jdecode(''),'/452/24801.html','true',[],'',''],
		['PAGE','110401',jdecode('Jahresbericht+07'),jdecode(''),'/452/110401.html','true',[],'',''],
		['PAGE','164401',jdecode('Jahresbericht+08'),jdecode(''),'/452/164401.html','true',[],'',''],
		['PAGE','193001',jdecode('Jahresbericht+09'),jdecode(''),'/452/193001.html','true',[],'',''],
		['PAGE','26701',jdecode('..von+Anfang+an'),jdecode(''),'/452/26701.html','true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','21801',jdecode('Kontakt'),jdecode(''),'/473/21801.html','true',[],'',''],
		['PAGE','494',jdecode('Vorstand'),jdecode(''),'/473/494.html','true',[],'',''],
		['PAGE','12601',jdecode('unsere+Betreuer%2Finnen'),jdecode(''),'/473/12601.html','true',[],'',''],
		['PAGE','51901',jdecode('offene+Betreuertage'),jdecode(''),'/473/51901.html','true',[],'','']
	],'',''],
	['PAGE','515',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','194001',jdecode('Robi-Saison+10'),jdecode(''),'/194001.html','true',[],'',''],
	['PAGE','30301',jdecode('Mitgliedschaft'),jdecode(''),'/30301.html','true',[],'',''],
	['PAGE','1901',jdecode('Robiplatz+mieten'),jdecode(''),'/1901/index.html','true',[ 
		['PAGE','1922',jdecode('Regeln%2C+Preise+und+Infos'),jdecode(''),'/1901/1922.html','true',[],'','']
	],'',''],
	['PAGE','2206',jdecode('G%C3%A4stebuch'),jdecode(''),'/2206/index.html','true',[ 
		['PAGE','2201',jdecode('Eintr%C3%A4ge'),jdecode(''),'/2206/2201.html','false',[],'','']
	],'',''],
	['PAGE','3022',jdecode('Links'),jdecode(''),'/3022.html','true',[],'',''],
	['PAGE','13401',jdecode('Anfahrt'),jdecode(''),'/13401.html','true',[],'',''],
	['PAGE','36801',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/36801.html','true',[],'',''],
	['PAGE','14201',jdecode('Spiele'),jdecode(''),'/14201/index.html','true',[ 
		['PAGE','19101',jdecode('Football'),jdecode(''),'/14201/19101.html','true',[],'',''],
		['PAGE','19122',jdecode('Speartoss'),jdecode(''),'/14201/19122.html','true',[],'',''],
		['PAGE','31601',jdecode('Diamonds'),jdecode(''),'/14201/31601.html','true',[],'','']
	],'',''],
	['PAGE','168701',jdecode('Archiv'),jdecode(''),'/168701/index.html','true',[ 
		['PAGE','163501',jdecode('Aktivit%C3%A4ten+Saison+09'),jdecode(''),'/168701/163501.html','true',[],'',''],
		['PAGE','163543',jdecode('Photos+Saison+09'),jdecode(''),'/168701/163543.html','true',[],'',''],
		['PAGE','66201',jdecode('Container'),jdecode(''),'/168701/66201.html','true',[],'',''],
		['PAGE','62001',jdecode('Er%C3%B6ffnung'),jdecode(''),'/168701/62001.html','true',[],'',''],
		['PAGE','82101',jdecode('OpenAir-Kino'),jdecode(''),'/168701/82101.html','true',[],'',''],
		['PAGE','75801',jdecode('Allgemein'),jdecode(''),'/168701/75801.html','true',[],'',''],
		['PAGE','89201',jdecode('betonieren'),jdecode(''),'/168701/89201.html','true',[],'',''],
		['PAGE','91001',jdecode('Robifest'),jdecode(''),'/168701/91001.html','true',[],'',''],
		['PAGE','94901',jdecode('Kerzen+ziehen'),jdecode(''),'/168701/94901.html','true',[],'',''],
		['PAGE','98201',jdecode('Brotbacken'),jdecode(''),'/168701/98201.html','true',[],'',''],
		['PAGE','100001',jdecode('Halloween'),jdecode(''),'/168701/100001.html','true',[],'',''],
		['PAGE','102601',jdecode('Zivilschutz'),jdecode(''),'/168701/102601.html','true',[],'',''],
		['PAGE','112001',jdecode('Photos+Saison+08'),jdecode(''),'/168701/112001.html','true',[],'',''],
		['PAGE','151001',jdecode('Open-Air+Kino+23.08.08'),jdecode(''),'/168701/151001.html','true',[],'',''],
		['PAGE','122201',jdecode('+neue+H%C3%BCtten+%28Teil+1%2F3%29'),jdecode(''),'/168701/122201.html','true',[],'',''],
		['PAGE','128301',jdecode('neue+H%C3%BCtten+%28Teil+2%2F3%29'),jdecode(''),'/168701/128301.html','true',[],'',''],
		['PAGE','139201',jdecode('neue+H%C3%BCtten+%28Teil+3%2F3%29'),jdecode(''),'/168701/139201.html','true',[],'',''],
		['PAGE','128322',jdecode('Er%C3%B6ffnung+am+30.04.'),jdecode(''),'/168701/128322.html','true',[],'',''],
		['PAGE','134401',jdecode('Bastelnachmittag+vom+7.5.'),jdecode(''),'/168701/134401.html','true',[],'',''],
		['PAGE','137301',jdecode('Vatertag+vom+17.05.'),jdecode(''),'/168701/137301.html','true',[],'',''],
		['PAGE','143101',jdecode('Zivilschutz+am+28.+Mai'),jdecode(''),'/168701/143101.html','true',[],'',''],
		['PAGE','144901',jdecode('Brotbacken+vom+28.+Mai'),jdecode(''),'/168701/144901.html','true',[],'',''],
		['PAGE','157801',jdecode('Halloween+08'),jdecode(''),'/168701/157801.html','true',[],'',''],
		['PAGE','108801',jdecode('Aktivit%C3%A4ten+Saison+08'),jdecode(''),'/168701/108801.html','true',[],'',''],
		['PAGE','536',jdecode('Aktivit%C3%A4ten+Saison+07'),jdecode(''),'/168701/536.html','true',[],'',''],
		['PAGE','69822',jdecode('Photos+Saison+07'),jdecode(''),'/168701/69822.html','true',[],'',''],
		['PAGE','188701',jdecode('Robifest+2009'),jdecode(''),'/168701/188701.html','true',[],'',''],
		['PAGE','174101',jdecode('Tag+der+Partnerschaft'),jdecode(''),'/168701/174101.html','true',[],'',''],
		['PAGE','174220',jdecode('Der+%22Bohrer%22'),jdecode(''),'/168701/174220.html','true',[],'',''],
		['PAGE','174601',jdecode('erster+Tag+der+Saison+09'),jdecode(''),'/168701/174601.html','true',[],'',''],
		['PAGE','180701',jdecode('Vatertag+2009'),jdecode(''),'/168701/180701.html','true',[],'','']
	],'','']];
var siteelementCount=63;
theSitetree.topTemplateName='Seasons_fall';
theSitetree.paletteFamily='ECE1CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21083';
theSitetree.graphicsetId='13182';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='ECE1CC';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_fall',
				paletteFamily: 	'ECE1CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21083',
				graphicsetId: 	'13182',
				contentColor: 	'2E2E2E',
				contentBGColor: 'ECE1CC',
				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['1002']=webappMappings['1002-2206abw0x0in2g0p']={
webappId:    '1002',
documentId:  '2206',
internalId:  '2206abw0x0in2g0p',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100904-182828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180701',
internalId:  '',
customField: '20090601-215620'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '13401',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '36801',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['7008']=webappMappings['7008-712']={
webappId:    '7008',
documentId:  '21801',
internalId:  '712',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48201',
internalId:  '',
customField: '20100808-201525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163501',
internalId:  '',
customField: '20090421-203039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174101',
internalId:  '',
customField: '20090504-195858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163543',
internalId:  '',
customField: '20090504-190052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20070430-142803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100412-192454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20090509-170730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20100418-115608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100410-115853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100202-205820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20070202-221112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164401',
internalId:  '',
customField: '20090305-220532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20070207-220322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110401',
internalId:  '',
customField: '20080126-132641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20070210-123742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20070202-202837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20080126-125529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1922',
internalId:  '',
customField: '20090316-214616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20070131-172658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20070131-172134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20070330-184424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100412-192824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20070206-211521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20070201-211356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20070201-211415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19122',
internalId:  '',
customField: '20070201-211620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20070203-190811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108801',
internalId:  '',
customField: '20080811-232703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174601',
internalId:  '',
customField: '20090510-124215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174220',
internalId:  '',
customField: '20090504-185831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169401',
internalId:  '',
customField: '20100904-183439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112001',
internalId:  '',
customField: '20080501-115843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151001',
internalId:  '',
customField: '20080825-234223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122201',
internalId:  '',
customField: '20080430-214217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128301',
internalId:  '',
customField: '20080517-222420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139201',
internalId:  '',
customField: '20080525-111756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128322',
internalId:  '',
customField: '20080501-120421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134401',
internalId:  '',
customField: '20080507-205752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137301',
internalId:  '',
customField: '20080517-224211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143101',
internalId:  '',
customField: '20080608-180743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144901',
internalId:  '',
customField: '20080609-201940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157801',
internalId:  '',
customField: '20081103-220131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69822',
internalId:  '',
customField: '20070430-144542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20070430-145741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62001',
internalId:  '',
customField: '20070426-212118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82101',
internalId:  '',
customField: '20070629-190116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75801',
internalId:  '',
customField: '20071023-084258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20070902-111726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91001',
internalId:  '',
customField: '20070902-113522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94901',
internalId:  '',
customField: '20071023-093453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98201',
internalId:  '',
customField: '20071030-133329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100001',
internalId:  '',
customField: '20071030-161407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102601',
internalId:  '',
customField: '20071102-164340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090421-200819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188701',
internalId:  '',
customField: '20091003-130040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193001',
internalId:  '',
customField: '20100418-114847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194001',
internalId:  '',
customField: '20100726-041444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196701',
internalId:  '',
customField: '20100904-183748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184601',
internalId:  '',
customField: '20090903-204032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185901',
internalId:  '',
customField: '20100904-184442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168701',
internalId:  '',
customField: '20090421-195234'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2G0P';
var companyName   = 'Robiverein+Aesch';
var htmlTitle	  = 'Robiverein+Aesch';
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();
};
