/* [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','5101',jdecode('PENTA+Solutions%C2%AE+GmbH'),jdecode(''), jdecode('%2F5101%2Findex.html'), 'true',[ 
		['PAGE','5194',jdecode('Unsere+Philosophie'),jdecode(''), jdecode('%2F5101%2F5194.html'), 'true',[],'',''],
		['PAGE','5215',jdecode('Das+Management'),jdecode(''), jdecode('%2F5101%2F5215.html'), 'true',[],'',''],
		['PAGE','27601',jdecode('Unsere+HYBRID-Strategie'),jdecode(''), jdecode('%2F5101%2F27601.html'), 'true',[],'','']
	],'',''],
	['PAGE','5801',jdecode('PENTA+Security+GmbH%C2%AE'),jdecode(''), jdecode('%2F5801%2Findex.html'), 'true',[ 
		['PAGE','9201',jdecode('Firmenprofil%2C+Bewilligung'),jdecode(''), jdecode('%2F5801%2F9201.html'), 'true',[],'',''],
		['PAGE','9501',jdecode('Mitarbeiter%2C+Ausbildung'),jdecode(''), jdecode('%2F5801%2F9501.html'), 'true',[],'','']
	],'',''],
	['PAGE','5822',jdecode('PENTA+Medic+GmbH%C2%AE'),jdecode(''), jdecode('%2F5822%2Findex.html'), 'true',[ 
		['PAGE','9585',jdecode('Firmenprofil'),jdecode(''), jdecode('%2F5822%2F9585.html'), 'true',[],'',''],
		['PAGE','9606',jdecode('Kompetenzteam'),jdecode(''), jdecode('%2F5822%2F9606.html'), 'true',[],'',''],
		['PAGE','10164',jdecode('Dozenten+%2FZertifizierungen'),jdecode(''), jdecode('%2F5822%2F10164.html'), 'true',[],'','']
	],'',''],
	['PAGE','95901',jdecode('PENTA+WebShop%C2%AE'),jdecode(''), jdecode('%2F95901.html'), 'true',[],'',''],
	['PAGE','77601',jdecode('PENTA+Alert%C2%AE'),jdecode(''), jdecode('%2F77601%2Findex.html'), 'true',[ 
		['PAGE','78301',jdecode('Man-Down'),jdecode(''), jdecode('%2F77601%2F78301.html'), 'true',[],'',''],
		['PAGE','78322',jdecode('GPS+Ortung'),jdecode(''), jdecode('%2F77601%2F78322.html'), 'true',[],'','']
	],'',''],
	['PAGE','101901',jdecode('PENTA+Safety%C2%AE'),jdecode(''), jdecode('%2F101901.html'), 'true',[],'',''],
	['PAGE','5236',jdecode('Kontakt+%2F+So+finden+Sie+uns'),jdecode(''), jdecode('%2F5236%2Findex.html'), 'true',[ 
		['PAGE','99201',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F5236%2F99201.html'), 'true',[],'',''],
		['PAGE','25322',jdecode('Kontaktformular'),jdecode(''), jdecode('%2F5236%2F25322.html'), 'true',[],'',''],
		['PAGE','82601',jdecode('Bestellformulare'),jdecode(''), jdecode('%2F5236%2F82601.html'), 'true',[],'','']
	],'',''],
	['PAGE','54901',jdecode('SECURITY-Dienstleistungen'),jdecode(''), jdecode('%2F54901%2Findex.html'), 'true',[ 
		['PAGE','9522',jdecode('Revierschutz'),jdecode(''), jdecode('%2F54901%2F9522.html'), 'true',[],'',''],
		['PAGE','9543',jdecode('Logendienste'),jdecode(''), jdecode('%2F54901%2F9543.html'), 'true',[],'',''],
		['PAGE','38401',jdecode('Individualschutz'),jdecode(''), jdecode('%2F54901%2F38401.html'), 'true',[],'',''],
		['PAGE','9564',jdecode('Interventionsdienste'),jdecode(''), jdecode('%2F54901%2F9564.html'), 'true',[],'','']
	],'',''],
	['PAGE','57001',jdecode('MEDIC-Dienstleistungen'),jdecode(''), jdecode('%2F57001%2Findex.html'), 'true',[ 
		['PAGE','9627',jdecode('Betriebsanalysen'),jdecode(''), jdecode('%2F57001%2F9627.html'), 'true',[],'',''],
		['PAGE','9669',jdecode('Betriebssanit%C3%A4t'),jdecode(''), jdecode('%2F57001%2F9669.html'), 'true',[],'',''],
		['PAGE','9648',jdecode('Lehrgangsangebote'),jdecode(''), jdecode('%2F57001%2F9648.html'), 'true',[],'',''],
		['PAGE','9690',jdecode('Produkteservice'),jdecode(''), jdecode('%2F57001%2F9690.html'), 'true',[],'','']
	],'',''],
	['PAGE','81501',jdecode('FIRST+RESPONDER-+Facts'),jdecode(''), jdecode('%2F81501%2Findex.html'), 'true',[ 
		['PAGE','81901',jdecode('First+Responder+Facts'),jdecode(''), jdecode('%2F81501%2F81901.html'), 'true',[],'','']
	],'',''],
	['PAGE','11922',jdecode('News'),jdecode(''), jdecode('%2F11922%2Findex.html'), 'true',[ 
		['PAGE','112892',jdecode('Archiv+2011'),jdecode(''), jdecode('%2F11922%2F112892.html'), 'true',[],'',''],
		['PAGE','108192',jdecode('News+2010'),jdecode(''), jdecode('%2F11922%2F108192.html'), 'true',[],'',''],
		['PAGE','97901',jdecode('Archiv+2009'),jdecode(''), jdecode('%2F11922%2F97901.html'), 'true',[],'',''],
		['PAGE','28901',jdecode('Archiv+2008'),jdecode(''), jdecode('%2F11922%2F28901.html'), 'true',[],'','']
	],'',''],
	['PAGE','27101',jdecode('Referenzen'),jdecode(''), jdecode('%2F27101.html'), 'true',[],'',''],
	['PAGE','11901',jdecode('Jobs'),jdecode(''), jdecode('%2F11901%2Findex.html'), 'true',[ 
		['PAGE','20301',jdecode('Stellen+Security'),jdecode(''), jdecode('%2F11901%2F20301.html'), 'true',[],'',''],
		['PAGE','20322',jdecode('Stellen+Medic'),jdecode(''), jdecode('%2F11901%2F20322.html'), 'true',[],'',''],
		['PAGE','21001',jdecode('Stellen+Hybrid'),jdecode(''), jdecode('%2F11901%2F21001.html'), 'true',[],'','']
	],'',''],
	['PAGE','75701',jdecode('Gesch%C3%A4ftsbedingungen'),jdecode(''), jdecode('%2F75701.html'), 'true',[],'',''],
	['PAGE','48701',jdecode('%28%C2%A7%29+Disclaimer%2C+Haftung'),jdecode(''), jdecode('%2F48701.html'), 'true',[],'',''],
	['PAGE','16301',jdecode('+%C2%A9+PENTA+Solutions+2007-2011'),jdecode(''), jdecode('%2F16301.html'), 'true',[],'',''],
	['PAGE','110692',jdecode('Impressum'),jdecode(''), jdecode('%2F110692.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Layers';
theSitetree.paletteFamily='82B3CD';
theSitetree.keyvisualId='688';
theSitetree.keyvisualName='auge.jpg';
theSitetree.fontsetId='132';
theSitetree.graphicsetId='148';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='E6EAEF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21F'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Layers',
				paletteFamily: 	'82B3CD',
				keyvisualId: 	'688',
				keyvisualName: 	'auge.jpg',
				fontsetId: 		'132',
				graphicsetId: 	'148',
				contentColor: 	'666666',
				contentBGColor: 'E6EAEF',
				a_color: 		'006699',
				b_color: 		'CCCCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-13017712']={
webappId:    '1501',
documentId:  '5101',
internalId:  '13017712',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-959']={
webappId:    '7008',
documentId:  '27101',
internalId:  '959',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-960']={
webappId:    '7008',
documentId:  '11901',
internalId:  '960',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-961']={
webappId:    '7008',
documentId:  '75701',
internalId:  '961',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-962']={
webappId:    '7008',
documentId:  '82601',
internalId:  '962',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20110310-150731'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '99201',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['7008']=webappMappings['7008-958']={
webappId:    '7008',
documentId:  '25322',
internalId:  '958',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5194',
internalId:  '',
customField: '20080930-135709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5215',
internalId:  '',
customField: '20100908-205620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20080930-131446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20080102-110552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20080102-140045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20071231-103512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20091212-135355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9585',
internalId:  '',
customField: '20110112-095032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9606',
internalId:  '',
customField: '20080108-134455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10164',
internalId:  '',
customField: '20110402-105200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77601',
internalId:  '',
customField: '20081006-110947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78301',
internalId:  '',
customField: '20080413-121248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78322',
internalId:  '',
customField: '20080413-115309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20090331-203956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5236',
internalId:  '',
customField: '20100207-123135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99201',
internalId:  '',
customField: '20090331-143419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25322',
internalId:  '',
customField: '20071221-120707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82601',
internalId:  '',
customField: '20100326-122042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20080119-173919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9522',
internalId:  '',
customField: '20080108-012739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9543',
internalId:  '',
customField: '20080930-140648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20080930-132908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9564',
internalId:  '',
customField: '20080930-132919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20110112-095102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9627',
internalId:  '',
customField: '20080116-202815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9669',
internalId:  '',
customField: '20110205-083522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9648',
internalId:  '',
customField: '20110205-084422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9690',
internalId:  '',
customField: '20080119-161520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20090611-135649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81901',
internalId:  '',
customField: '20080905-225137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95901',
internalId:  '',
customField: '20090111-144118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11922',
internalId:  '',
customField: '20090111-151330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97901',
internalId:  '',
customField: '20101112-135935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20110201-154652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108192',
internalId:  '',
customField: '20110310-150153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112892',
internalId:  '',
customField: '20111216-115343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20080112-172807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20080206-090113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080206-090142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20322',
internalId:  '',
customField: '20080206-090234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20080206-090259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75701',
internalId:  '',
customField: '20080223-120556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20080112-165057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20080102-135256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110692',
internalId:  '',
customField: '20101112-140947'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN225N';
var companyName   = 'PENTA+Solutions%C2%AE';
var htmlTitle	  = 'PENTA+Solutions%C2%AE+GmbH+-+wir+machen+Risiken+kalkulierbar';
var metaKeywords  = 'Security++Sicherheit++Bewachung++Sanit%C3%A4t+Betriebssanit%C3%A4t++AED++First+Responder++Ersthelfer++Samariter++Sanarena++Tinovamed++Schweizerische+Vereinigung+f%C3%BCr+Betriebssanit%C3%A4t++Wickiund+Amb%C3%BChl++Medic+One++Laienausbildung++Sanit%C3%A4tsausbildung+Sanarena+samariter';
var metaContents  = 'Security++Sicherheit++Bewachung++Sanit%C3%A4t+Betriebssanit%C3%A4t++AED++First+Responder++Ersthelfer++++Defibrillator+Sanarena+samariter';
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();
};

