/* [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','301',jdecode('Home'),jdecode(''), jdecode('%2F301.html'), 'true',[],'',''],
	['PAGE','143623',jdecode('PAGE-NEWS'),jdecode(''), jdecode('%2F143623.html'), 'true',[],'',''],
	['PAGE','50401',jdecode('SISACH.ch+GmbH'),jdecode(''), jdecode('%2F50401%2Findex.html'), 'true',[ 
		['PAGE','91301',jdecode('Finanzen'),jdecode(''), jdecode('%2F50401%2F91301.html'), 'true',[],'',''],
		['PAGE','91322',jdecode('Human+Resource+HR'),jdecode(''), jdecode('%2F50401%2F91322.html'), 'true',[],'',''],
		['PAGE','91343',jdecode('Administration'),jdecode(''), jdecode('%2F50401%2F91343.html'), 'true',[],'',''],
		['PAGE','91364',jdecode('Liegenschaften'),jdecode(''), jdecode('%2F50401%2F91364.html'), 'true',[],'',''],
		['PAGE','93401',jdecode('%C3%B6ffentliche+Mandate'),jdecode(''), jdecode('%2F50401%2F93401.html'), 'true',[],'',''],
		['PAGE','91385',jdecode('Mitarbeiter'),jdecode(''), jdecode('%2F50401%2F91385.html'), 'true',[],'',''],
		['PAGE','91406',jdecode('Infrastruktur'),jdecode(''), jdecode('%2F50401%2F91406.html'), 'true',[],'',''],
		['PAGE','101701',jdecode('Webmaster'),jdecode(''), jdecode('%2F50401%2F101701.html'), 'true',[],'',''],
		['PAGE','131723',jdecode('Gewerbeausstellung+2011'),jdecode(''), jdecode('%2F50401%2F131723.html'), 'true',[],'','']
	],'',''],
	['PAGE','129923',jdecode('FERIENDOMIZIL+ADLER'),jdecode(''), jdecode('%2F129923%2Findex.html'), 'true',[ 
		['PAGE','51101',jdecode('R%C3%A4umlichkeiten%2FFotos'),jdecode(''), jdecode('%2F129923%2F51101.html'), 'true',[],'',''],
		['PAGE','52601',jdecode('Preise%2C+Belegung%2C+AGB'),jdecode(''), jdecode('%2F129923%2F52601.html'), 'true',[],'',''],
		['PAGE','111301',jdecode('Internet'),jdecode(''), jdecode('%2F129923%2F111301.html'), 'true',[],'',''],
		['PAGE','109901',jdecode('Flyer+-+Flugblatt'),jdecode(''), jdecode('%2F129923%2F109901.html'), 'true',[],'',''],
		['PAGE','112201',jdecode('Projekt+Linthal+2015'),jdecode(''), jdecode('%2F129923%2F112201.html'), 'true',[],'',''],
		['PAGE','101001',jdecode('Dorf+Betschwanden'),jdecode(''), jdecode('%2F129923%2F101001.html'), 'true',[],'',''],
		['PAGE','78901',jdecode('Spiele-+und+Erlebnisweg'),jdecode(''), jdecode('%2F129923%2F78901.html'), 'true',[],'',''],
		['PAGE','52622',jdecode('Aktivit%C3%A4ten'),jdecode(''), jdecode('%2F129923%2F52622.html'), 'true',[],'',''],
		['PAGE','52643',jdecode('Verschiedenes'),jdecode(''), jdecode('%2F129923%2F52643.html'), 'true',[],'',''],
		['PAGE','75401',jdecode('Seminare%2FAusstellungen'),jdecode(''), jdecode('%2F129923%2F75401.html'), 'true',[],'',''],
		['PAGE','75801',jdecode('Firmen%2FVereine'),jdecode(''), jdecode('%2F129923%2F75801.html'), 'true',[],'','']
	],'',''],
	['PAGE','130023',jdecode('FERIENDOMIZIL+M%C3%9CHLE'),jdecode(''), jdecode('%2F130023.html'), 'true',[],'',''],
	['PAGE','126523',jdecode('BnB'),jdecode(''), jdecode('%2F126523.html'), 'true',[],'',''],
	['PAGE','136723',jdecode('LANDVERKAUF+'),jdecode(''), jdecode('%2F136723%2Findex.html'), 'true',[ 
		['PAGE','136823',jdecode('Beschrieb%2FKontakt'),jdecode(''), jdecode('%2F136723%2F136823.html'), 'true',[],'',''],
		['PAGE','136923',jdecode('Parzellen-%2FZonenplan'),jdecode(''), jdecode('%2F136723%2F136923.html'), 'true',[],'',''],
		['PAGE','136944',jdecode('Nutzungsplan'),jdecode(''), jdecode('%2F136723%2F136944.html'), 'true',[],'',''],
		['PAGE','136965',jdecode('Bilder'),jdecode(''), jdecode('%2F136723%2F136965.html'), 'true',[],'','']
	],'',''],
	['PAGE','37001',jdecode('WELLNESS'),jdecode(''), jdecode('%2F37001%2Findex.html'), 'true',[ 
		['PAGE','56501',jdecode('Angebot'),jdecode(''), jdecode('%2F37001%2F56501.html'), 'true',[],'',''],
		['PAGE','56801',jdecode('Gutscheine'),jdecode(''), jdecode('%2F37001%2F56801.html'), 'true',[],'',''],
		['PAGE','57201',jdecode('Raumduft'),jdecode(''), jdecode('%2F37001%2F57201.html'), 'true',[],'',''],
		['PAGE','68001',jdecode('Wellness+f%C3%BCr+1.55%2FTag'),jdecode(''), jdecode('%2F37001%2F68001.html'), 'true',[],'','']
	],'',''],
	['PAGE','37022',jdecode('JEMAKO+und+JEMOTION'),jdecode(''), jdecode('%2F37022.html'), 'true',[],'',''],
	['PAGE','114701',jdecode('INSERATE-PORTAL'),jdecode(''), jdecode('%2F114701%2Findex.html'), 'true',[ 
		['PAGE','117101',jdecode('Stellen'),jdecode(''), jdecode('%2F114701%2F117101.html'), 'true',[],'',''],
		['PAGE','117122',jdecode('Vermietungen'),jdecode(''), jdecode('%2F114701%2F117122.html'), 'true',[],'',''],
		['PAGE','117143',jdecode('Sie+suchen...'),jdecode(''), jdecode('%2F114701%2F117143.html'), 'true',[],'','']
	],'',''],
	['PAGE','77722',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F77722.html'), 'false',[],'',''],
	['PAGE','118801',jdecode('KONTAKT'),jdecode(''), jdecode('%2F118801.html'), 'true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Keyboard';
theSitetree.paletteFamily='A88E6E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10451';
theSitetree.graphicsetId='10846';
theSitetree.contentColor='493318';
theSitetree.contentBGColor='E1D3C2';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Keyboard',
				paletteFamily: 	'A88E6E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10451',
				graphicsetId: 	'10846',
				contentColor: 	'493318',
				contentBGColor: 'E1D3C2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'90785B',
				e_color: 		'948F89',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52643',
internalId:  '',
customField: '20100504-093650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52622',
internalId:  '',
customField: '20100821-175634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20120107-220233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20110526-163714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20110322-104104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20110104-144135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37022',
internalId:  '',
customField: '20110220-172723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129923',
internalId:  '',
customField: '20111211-205016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126523',
internalId:  '',
customField: '20110315-175308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20111211-205241'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '136723',
internalId:  '-',
customField: '20111215-132335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20100621-195954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56801',
internalId:  '',
customField: '20100120-171609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20100104-174418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20091130-100545'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20100621-195110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91406',
internalId:  '',
customField: '20110214-160132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68001',
internalId:  '',
customField: '20090923-104600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131723',
internalId:  '',
customField: '20110404-094658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75801',
internalId:  '',
customField: '20091114-111300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91385',
internalId:  '',
customField: '20120107-221647'
};
webappMappings['1002']=webappMappings['1002-77722abw1x0inenad']={
webappId:    '1002',
documentId:  '77722',
internalId:  '77722abw1x0inenad',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77722',
internalId:  '',
customField: '20091119-082700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130023',
internalId:  '',
customField: '20110309-154010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91301',
internalId:  '',
customField: '20100730-142932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91322',
internalId:  '',
customField: '20100730-142956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91343',
internalId:  '',
customField: '20100730-143008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91364',
internalId:  '',
customField: '20100730-143017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93401',
internalId:  '',
customField: '20100730-143027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101001',
internalId:  '',
customField: '20100628-212848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101701',
internalId:  '',
customField: '20110104-142901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20100901-201233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114701',
internalId:  '',
customField: '20110104-144115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111301',
internalId:  '',
customField: '20101209-221846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112201',
internalId:  '',
customField: '20100912-213502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117101',
internalId:  '',
customField: '20111221-145358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117122',
internalId:  '',
customField: '20111207-141036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117143',
internalId:  '',
customField: '20101126-105859'
};
webappMappings['7008']=webappMappings['7008-11123']={
webappId:    '7008',
documentId:  '118801',
internalId:  '11123',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118801',
internalId:  '',
customField: '20110104-152322'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '136823',
internalId:  '-',
customField: '20111215-095130'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '136923',
internalId:  '-',
customField: '20111215-095527'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '136944',
internalId:  '-',
customField: '20111215-132836'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '136965',
internalId:  '-',
customField: '20111215-132430'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '143623',
internalId:  '-',
customField: '20120107-220643'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW1X0INENAD';
var companyName   = '';
var htmlTitle	  = 'SISACH.ch+GmbH';
var metaKeywords  = 'Debitorenmanagement%2C+Mahnwesen%2C+Kreditorenmanagement%2C+Buchhaltung%2C+Kontenplan%2C+Kostenstellen%2C+Cashmanagement%2C+IT-Betreuung%2C+Kundendatei%2C+Datenbanken%2C+Adressdateien%2C+Adresskartei%2C+Kommunikationsdienst%2C+Homepage+erstellen%2C+Kurse+Office-Programme%2C+Ferienabl%C3%B6sung%2C+Ausstellungen%2C+Inventar%2C+Anlagebuchhaltung%2C+Organisation%2C+Firmenjubil%C3%A4um%2C+Firmenanl%C3%A4sse+organisieren%2C+Expressdienst%2C+Marketing+und+Verkaufsunterst%C3%BCtzung%2C+Abnahme+von+Wohnungen%2C+Vermietungen%2C+Koordination+von+Handwerkern%2C+Ansprechperson+f%C3%BCr+Mieter%2C+Hauswartfunktion%2C+Pikettdienst%2C+Personalrecht%2C+Personalmarketing%2C+Verantwortung+Lehrlingswesen%2C+Arbeitssicherheit%2C+Einkaufskoordinationen%2C+Microunternehmen%2C+KMU%2C+%C3%B6ffentliche+Hand%2C+Vereine%2C+Genossenschaften%2C+Stiftungen%2C+Private%2C+Synergien%2C+Innovation%2C+System%2C+Autonom%2C+Handel%2C+Chancen%2C+B%C3%A4chtiger%2C+Christoph%2C+Sandra%2C+H%C3%A4tzingen%2C+Unterst%C3%BCtzung%2C+Support%2C+Engpass%2C+Ressourcenmangel%2C+Erg%C3%A4nzend%2C+Entlastung+f%C3%BCr+Kunden%2C+Freiraum+f%C3%BCr+Kernkompetenz%2C+Projektmanagement%2C+Dirigieren%2C+Blasmusikkurs%2C+Ausbildung%2C+Trompete%2C+Tenorhorn%2C+Cornet%2C+Glarnerland%2C+Linthgebiet%2C+Obersee%2C+B%C3%BCrohilfe%2C+B%C3%BCrounterst%C3%BCtzung%2C+99284599%2C+Ferienhaus%2C+JEMAKO%2C+JEMOTION%2C+Gesichts-Wellness%2C+Massagen%2C+Gutschein%2C+Familienferien%2C+freipass%2C+Klausenpass%2C+Velopass%2C+Elektrovelo%2C+Flyer%2C+';
var metaContents  = 'SISACH.ch+GmbH%2C+Zentrum+HAZZO%2C+Hauptstrasse+70%2C+8775+H%C3%A4tzingen';
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();
};

