/* [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','4901',jdecode('Home'),jdecode(''), jdecode('%2F4901.html'), 'true',[],'',''],
	['PAGE','4952',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F4952.html'), 'true',[],'',''],
	['PAGE','4973',jdecode('Mitglieder'),jdecode(''), jdecode('%2F4973%2Findex.html'), 'true',[ 
		['PAGE','19201',jdecode('Max+Bachmann'),jdecode(''), jdecode('%2F4973%2F19201.html'), 'false',[],'',''],
		['PAGE','19222',jdecode('Stefan+Bachmann'),jdecode(''), jdecode('%2F4973%2F19222.html'), 'false',[],'',''],
		['PAGE','19243',jdecode('Werner+Bachmann'),jdecode(''), jdecode('%2F4973%2F19243.html'), 'false',[],'',''],
		['PAGE','19264',jdecode('Karl+B%C3%B6ni'),jdecode(''), jdecode('%2F4973%2F19264.html'), 'false',[],'',''],
		['PAGE','19285',jdecode('Willi+B%C3%B6ni'),jdecode(''), jdecode('%2F4973%2F19285.html'), 'false',[],'',''],
		['PAGE','19306',jdecode('Markus+Boos'),jdecode(''), jdecode('%2F4973%2F19306.html'), 'false',[],'',''],
		['PAGE','19327',jdecode('Rene+Boos'),jdecode(''), jdecode('%2F4973%2F19327.html'), 'false',[],'',''],
		['PAGE','19348',jdecode('Beat+B%C3%BCsser'),jdecode(''), jdecode('%2F4973%2F19348.html'), 'false',[],'',''],
		['PAGE','19369',jdecode('Lorenz+B%C3%BCsser'),jdecode(''), jdecode('%2F4973%2F19369.html'), 'false',[],'',''],
		['PAGE','19390',jdecode('Paul+B%C3%BCsser'),jdecode(''), jdecode('%2F4973%2F19390.html'), 'false',[],'',''],
		['PAGE','19411',jdecode('Rolf+B%C3%BCsser'),jdecode(''), jdecode('%2F4973%2F19411.html'), 'false',[],'',''],
		['PAGE','19432',jdecode('Ueli+B%C3%BCsser'),jdecode(''), jdecode('%2F4973%2F19432.html'), 'false',[],'',''],
		['PAGE','19453',jdecode('R%C3%B6bi+F%C3%A4h'),jdecode(''), jdecode('%2F4973%2F19453.html'), 'false',[],'',''],
		['PAGE','19474',jdecode('Toni+F%C3%A4h'),jdecode(''), jdecode('%2F4973%2F19474.html'), 'false',[],'',''],
		['PAGE','19495',jdecode('Andreas+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19495.html'), 'false',[],'',''],
		['PAGE','19516',jdecode('Kaspar+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19516.html'), 'false',[],'',''],
		['PAGE','20322',jdecode('Martin+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F20322.html'), 'false',[],'',''],
		['PAGE','30801',jdecode('Patrick+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F30801.html'), 'false',[],'',''],
		['PAGE','19537',jdecode('Rico+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19537.html'), 'false',[],'',''],
		['PAGE','19558',jdecode('Roland+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19558.html'), 'false',[],'',''],
		['PAGE','19579',jdecode('Rolf+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19579.html'), 'false',[],'',''],
		['PAGE','19600',jdecode('Roman+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19600.html'), 'false',[],'',''],
		['PAGE','19621',jdecode('Willi+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F19621.html'), 'false',[],'',''],
		['PAGE','19642',jdecode('Wolf+Golser'),jdecode(''), jdecode('%2F4973%2F19642.html'), 'false',[],'',''],
		['PAGE','19663',jdecode('Stefan+J%C3%B6hl'),jdecode(''), jdecode('%2F4973%2F19663.html'), 'false',[],'',''],
		['PAGE','19684',jdecode('Franz+R%C3%BCdis%C3%BCli'),jdecode(''), jdecode('%2F4973%2F19684.html'), 'false',[],'',''],
		['PAGE','19705',jdecode('Roger+R%C3%BCdis%C3%BCli'),jdecode(''), jdecode('%2F4973%2F19705.html'), 'false',[],'',''],
		['PAGE','20385',jdecode('Bernhard+Thoma'),jdecode(''), jdecode('%2F4973%2F20385.html'), 'false',[],'',''],
		['PAGE','19726',jdecode('Franz+Thoma%2C+junior'),jdecode(''), jdecode('%2F4973%2F19726.html'), 'false',[],'',''],
		['PAGE','19747',jdecode('Franz+Thoma%2C+senior'),jdecode(''), jdecode('%2F4973%2F19747.html'), 'false',[],'',''],
		['PAGE','19768',jdecode('Marco+Thoma'),jdecode(''), jdecode('%2F4973%2F19768.html'), 'false',[],'',''],
		['PAGE','19789',jdecode('Stefan+Thoma'),jdecode(''), jdecode('%2F4973%2F19789.html'), 'false',[],'',''],
		['PAGE','19810',jdecode('Werner+Thoma'),jdecode(''), jdecode('%2F4973%2F19810.html'), 'false',[],'',''],
		['PAGE','20343',jdecode('Roland+Gm%C3%BCr'),jdecode(''), jdecode('%2F4973%2F20343.html'), 'false',[],'',''],
		['PAGE','20364',jdecode('Fridolin+J%C3%B6hl'),jdecode(''), jdecode('%2F4973%2F20364.html'), 'false',[],'','']
	],'',''],
	['PAGE','4994',jdecode('Fleisspott'),jdecode(''), jdecode('%2F4994.html'), 'true',[],'',''],
	['PAGE','5015',jdecode('Album'),jdecode(''), jdecode('%2F5015%2Findex.html'), 'true',[ 
		['PAGE','13001',jdecode('2009'),jdecode(''), jdecode('%2F5015%2F13001.html'), 'false',[],'',''],
		['PAGE','13802',jdecode('Gadenfest+Amden'),jdecode(''), jdecode('%2F5015%2F13802.html'), 'false',[],'',''],
		['PAGE','13501',jdecode('Ausflug+Zillertal'),jdecode(''), jdecode('%2F5015%2F13501.html'), 'false',[],'',''],
		['PAGE','13022',jdecode('2010'),jdecode(''), jdecode('%2F5015%2F13022.html'), 'false',[],'',''],
		['PAGE','13064',jdecode('Gadenfest+Amden'),jdecode(''), jdecode('%2F5015%2F13064.html'), 'false',[],'',''],
		['PAGE','16201',jdecode('Freitag'),jdecode(''), jdecode('%2F5015%2F16201.html'), 'false',[],'',''],
		['PAGE','34101',jdecode('Samstag'),jdecode(''), jdecode('%2F5015%2F34101.html'), 'false',[],'',''],
		['PAGE','13106',jdecode('2011'),jdecode(''), jdecode('%2F5015%2F13106.html'), 'false',[],'',''],
		['PAGE','13823',jdecode('Gadenfest+Amden'),jdecode(''), jdecode('%2F5015%2F13823.html'), 'false',[],'',''],
		['PAGE','34122',jdecode('Samstag'),jdecode(''), jdecode('%2F5015%2F34122.html'), 'false',[],'',''],
		['PAGE','48101',jdecode('Ausflug+Wallis'),jdecode(''), jdecode('%2F5015%2F48101.html'), 'false',[],'','']
	],'',''],
	['PAGE','5036',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F5036.html'), 'true',[],'',''],
	['PAGE','5057',jdecode('Kontakt'),jdecode(''), jdecode('%2F5057.html'), 'true',[],'',''],
	['PAGE','5501',jdecode('Links'),jdecode(''), jdecode('%2F5501.html'), 'true',[],'','']];
var siteelementCount=54;
theSitetree.topTemplateName='Roadsign';
theSitetree.paletteFamily='CFD5F7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10741';
theSitetree.graphicsetId='10496';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
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: 			'Roadsign',
				paletteFamily: 	'CFD5F7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10741',
				graphicsetId: 	'10496',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'666666',
				e_color: 		'999999',
				f_color: 		'663300',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5036abw330ine2cz']={
webappId:    '1002',
documentId:  '5036',
internalId:  '5036abw330ine2cz',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20120105-144842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4952',
internalId:  '',
customField: '20111014-214300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4973',
internalId:  '',
customField: '20110825-215732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4994',
internalId:  '',
customField: '20110807-130245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20110807-135720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5036',
internalId:  '',
customField: '20110804-114109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5057',
internalId:  '',
customField: '20110807-125909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20110804-115933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19222',
internalId:  '',
customField: '20110925-210847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20110807-135937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13022',
internalId:  '',
customField: '20110807-140039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20110804-134612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13064',
internalId:  '',
customField: '20111014-213735'
};
webappMappings['7060']=webappMappings['7060-fa110bb9b0b42f6aef586418504f26a7']={
webappId:    '7060',
documentId:  '16201',
internalId:  'fa110bb9b0b42f6aef586418504f26a7',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13106',
internalId:  '',
customField: '20111014-212933'
};
webappMappings['7060']=webappMappings['7060-4ac8fc77deb5f8e3643371fe94281e05']={
webappId:    '7060',
documentId:  '13501',
internalId:  '4ac8fc77deb5f8e3643371fe94281e05',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20110925-211014'
};
webappMappings['7060']=webappMappings['7060-bc3373306aa48863f2ead962976d0623']={
webappId:    '7060',
documentId:  '34122',
internalId:  'bc3373306aa48863f2ead962976d0623',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13802',
internalId:  '',
customField: '20110804-134905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13823',
internalId:  '',
customField: '20111014-213647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20111014-213911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20111014-213754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20111014-213824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19243',
internalId:  '',
customField: '20110925-212342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19264',
internalId:  '',
customField: '20110925-211115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19285',
internalId:  '',
customField: '20110925-211141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19306',
internalId:  '',
customField: '20110925-214035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19327',
internalId:  '',
customField: '20110925-211848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19348',
internalId:  '',
customField: '20111016-130544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19369',
internalId:  '',
customField: '20111016-172911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19390',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19411',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19432',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19453',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19474',
internalId:  '',
customField: '20111002-173000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19495',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19516',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19537',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19558',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19579',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19600',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19621',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19642',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19663',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19684',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19705',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19726',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19747',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19768',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19789',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19810',
internalId:  '',
customField: '20110718-193743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20110725-185444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20322',
internalId:  '',
customField: '20110718-194116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20343',
internalId:  '',
customField: '20110718-194116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20364',
internalId:  '',
customField: '20110718-194116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20385',
internalId:  '',
customField: '20110718-194116'
};
webappMappings['7060']=webappMappings['7060-da77f854f9e2e82bc7ef08eeeab87c9d']={
webappId:    '7060',
documentId:  '34101',
internalId:  'da77f854f9e2e82bc7ef08eeeab87c9d',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-418c7832f0245883ee1f56b61de727bf']={
webappId:    '7060',
documentId:  '48101',
internalId:  '418c7832f0245883ee1f56b61de727bf',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20111014-215215'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INE2CZ';
var companyName   = 'Trychlergruppe+Leistkamm';
var htmlTitle	  = 'Trychlergruppe+Leistkamm';
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();
};

