/* [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','501',jdecode('Home'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','9801',jdecode('%C3%9Cber+uns...'),jdecode(''),'/501/9801.html','true',[],'','']
	],'',''],
	['PAGE','4901',jdecode('Unsere+Produkte'),jdecode(''),'/4901/index.html','true',[ 
		['PAGE','5901',jdecode('RHINO'),jdecode(''),'/4901/5901.html','true',[],'',''],
		['PAGE','7301',jdecode('ZEBCO'),jdecode(''),'/4901/7301.html','true',[],'',''],
		['PAGE','8201',jdecode('QUANTUM'),jdecode(''),'/4901/8201.html','true',[],'',''],
		['PAGE','8222',jdecode('BROWNING'),jdecode(''),'/4901/8222.html','true',[],'',''],
		['PAGE','100426',jdecode('ECHOLOT'),jdecode(''),'/4901/100426.html','true',[],'',''],
		['PAGE','101626',jdecode('PERLMUTT'),jdecode(''),'/4901/101626.html','true',[],'','']
	],'',''],
	['PAGE','17101',jdecode('Neuheiten+%2F+Events'),jdecode(''),'/17101/index.html','true',[ 
		['PAGE','62001',jdecode('Neue+Produkte'),jdecode(''),'/17101/62001.html','true',[],'','']
	],'',''],
	['PAGE','55501',jdecode('ALASKA-Lachs'),jdecode(''),'/55501.html','true',[],'',''],
	['PAGE','14101',jdecode('Reparatur+Service'),jdecode(''),'/14101.html','true',[],'',''],
	['PAGE','11701',jdecode('Angler-Reisen'),jdecode(''),'/11701/index.html','true',[ 
		['PAGE','12401',jdecode('ALASKA'),jdecode(''),'/11701/12401.html','true',[],'',''],
		['PAGE','66601',jdecode('MADEIRA'),jdecode(''),'/11701/66601.html','true',[],'',''],
		['PAGE','16101',jdecode('MALOJA'),jdecode(''),'/11701/16101.html','true',[],'',''],
		['PAGE','26601',jdecode('Wallerfischen+mit+Pius+F.'),jdecode(''),'/11701/26601.html','true',[],'','']
	],'',''],
	['PAGE','19601',jdecode('KURSE'),jdecode(''),'/19601/index.html','true',[ 
		['PAGE','144726',jdecode('Filetierkurs'),jdecode(''),'/19601/144726.html','true',[],'',''],
		['PAGE','30401',jdecode('Jungfischerkurs'),jdecode(''),'/19601/30401.html','true',[],'',''],
		['PAGE','31801',jdecode('Fliegenfischerkurs'),jdecode(''),'/19601/31801.html','true',[],'',''],
		['PAGE','64601',jdecode('SaNa-Brevet+KURS'),jdecode(''),'/19601/64601.html','true',[],'',''],
		['PAGE','73301',jdecode('PRAXIS-KURS'),jdecode(''),'/19601/73301.html','true',[],'',''],
		['PAGE','31822',jdecode('Bergesee-Kurs'),jdecode(''),'/19601/31822.html','true',[],'','']
	],'',''],
	['PAGE','132426',jdecode('Fangmeldungen+2010'),jdecode(''),'/132426/index.html','true',[ 
		['PAGE','74901',jdecode('Fangmeldungen+2009'),jdecode(''),'/132426/74901.html','true',[],'',''],
		['PAGE','20101',jdecode('Fangmeldungen+2008'),jdecode(''),'/132426/20101.html','true',[],'',''],
		['PAGE','21001',jdecode('Fangmeldungen+%28alt%29'),jdecode(''),'/132426/21001.html','true',[],'','']
	],'',''],
	['PAGE','39601',jdecode('PATENTE'),jdecode(''),'/39601/index.html','true',[ 
		['PAGE','39622',jdecode('Korporation+Luzern'),jdecode(''),'/39601/39622.html','true',[],'',''],
		['PAGE','39664',jdecode('Fischereiverein+REUSS'),jdecode(''),'/39601/39664.html','true',[],'','']
	],'',''],
	['PAGE','68201',jdecode('FISCHEREI-VEREINE'),jdecode(''),'/68201.html','true',[],'',''],
	['PAGE','101526',jdecode('FOTOS'),jdecode(''),'/101526/index.html','true',[ 
		['PAGE','152126',jdecode('Fliegenfischerkurs+2010-1'),jdecode(''),'/101526/152126.html','true',[],'',''],
		['PAGE','149926',jdecode('Filetierkurs+2010'),jdecode(''),'/101526/149926.html','true',[],'',''],
		['PAGE','141326',jdecode('Eisfischen+30.01.2010'),jdecode(''),'/101526/141326.html','true',[],'',''],
		['PAGE','137326',jdecode('Neuheitentag+2010'),jdecode(''),'/101526/137326.html','true',[],'',''],
		['PAGE','134626',jdecode('Fliegenbindekurs+2010'),jdecode(''),'/101526/134626.html','true',[],'',''],
		['PAGE','129826',jdecode('Perlmuttertag+2009'),jdecode(''),'/101526/129826.html','true',[],'',''],
		['PAGE','112926',jdecode('Fliegenfischerk.+2009-2'),jdecode(''),'/101526/112926.html','true',[],'',''],
		['PAGE','104526',jdecode('Fliegenfischerk.+2009-1'),jdecode(''),'/101526/104526.html','true',[],'',''],
		['PAGE','103126',jdecode('Ausstellung+Bucher+%2B+Schmid'),jdecode(''),'/101526/103126.html','true',[],'',''],
		['PAGE','89326',jdecode('Eisfischen+M%C3%A4rz+2009'),jdecode(''),'/101526/89326.html','true',[],'',''],
		['PAGE','80915',jdecode('Neuheitentag+2009'),jdecode(''),'/101526/80915.html','true',[],'',''],
		['PAGE','36401',jdecode('Fliegenfischer+K.+2008+1'),jdecode(''),'/101526/36401.html','true',[],'',''],
		['PAGE','51401',jdecode('Sbirolinokurs+BERICHT'),jdecode(''),'/101526/51401.html','true',[],'',''],
		['PAGE','35201',jdecode('Jerkbait-Demo+2008'),jdecode(''),'/101526/35201.html','true',[],'','']
	],'',''],
	['PAGE','3306',jdecode('G%C3%A4stebuch'),jdecode(''),'/3306/index.html','true',[ 
		['PAGE','3301',jdecode('Eintr%C3%A4ge'),jdecode(''),'/3306/3301.html','false',[],'','']
	],'',''],
	['PAGE','2701',jdecode('Kontakt'),jdecode(''),'/2701/index.html','true',[ 
		['PAGE','2501',jdecode('Lageplan'),jdecode(''),'/2701/2501.html','true',[],'',''],
		['PAGE','2601',jdecode('Routenplaner'),jdecode(''),'/2701/2601.html','true',[],'','']
	],'','']];
var siteelementCount=53;
theSitetree.topTemplateName='Outdoor';
theSitetree.paletteFamily='3A4E32';
theSitetree.keyvisualId='3914';
theSitetree.keyvisualName='kv_3914.jpg';
theSitetree.fontsetId='10504';
theSitetree.graphicsetId='11080';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C7D1C7';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Outdoor',
				paletteFamily: 	'3A4E32',
				keyvisualId: 	'3914',
				keyvisualName: 	'kv_3914.jpg',
				fontsetId: 		'10504',
				graphicsetId: 	'11080',
				contentColor: 	'000000',
				contentBGColor: 'C7D1C7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4A6E41',
				e_color: 		'4A6E41',
				f_color: 		'4A6E41',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2501',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '2601',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1002']=webappMappings['1002-3306abw0x0in279k']={
webappId:    '1002',
documentId:  '3306',
internalId:  '3306abw0x0in279k',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100818-085644'
};
webappMappings['1501']=webappMappings['1501-10717725']={
webappId:    '1501',
documentId:  '501',
internalId:  '10717725',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74901',
internalId:  '',
customField: '20100106-132409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100818-084551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20100413-171109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20100708-145714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20100818-084722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20070212-090209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20070130-112851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20070129-151149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20070130-101322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20070130-112308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8222',
internalId:  '',
customField: '20070130-112802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62001',
internalId:  '',
customField: '20090122-091741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20091215-134848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20100201-013039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20080227-123603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20070206-223530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66601',
internalId:  '',
customField: '20081128-132211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20070530-155537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20090401-130217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20100708-145651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20100729-122255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20080505-182943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31822',
internalId:  '',
customField: '20100729-122341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51401',
internalId:  '',
customField: '20080709-122244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20080518-105859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20090323-131753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20080325-131751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20100729-122653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39622',
internalId:  '',
customField: '20091215-135313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39664',
internalId:  '',
customField: '20080528-084755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20100729-122003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20100209-171127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20061120-100012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20061120-100027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3306',
internalId:  '',
customField: '20061120-100121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20061120-100121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80915',
internalId:  '',
customField: '20090304-130820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89326',
internalId:  '',
customField: '20090315-221103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100426',
internalId:  '',
customField: '20090415-121102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101626',
internalId:  '',
customField: '20090505-125255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101526',
internalId:  '',
customField: '20100527-122303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103126',
internalId:  '',
customField: '20090428-094652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104526',
internalId:  '',
customField: '20090507-124823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112926',
internalId:  '',
customField: '20090625-103731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129826',
internalId:  '',
customField: '20091130-144104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132426',
internalId:  '',
customField: '20100818-085636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134626',
internalId:  '',
customField: '20100126-174550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137326',
internalId:  '',
customField: '20100209-223920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141326',
internalId:  '',
customField: '20100223-101033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144726',
internalId:  '',
customField: '20100520-124158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149926',
internalId:  '',
customField: '20100520-132413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152126',
internalId:  '',
customField: '20100527-121458'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN279K';
var companyName   = 'EMMER+Fischerei-Fachcenter+++++++++++++++++Marco+H%C3%A4fliger';
var htmlTitle	  = 'Emmer++Fischerei-Fachcenter+Marco+H%C3%A4fliger';
var metaKeywords  = 'Browning+Quantum+Rhino+Zebco+angeln+fischen+Rollen+Ruten+Fischereizubeh%EF%BF%BDr+Emmer+Fischerei-Fachcenter+Emmenbr%EF%BF%BDcke++Angelshop+Angelfachgesch%EF%BF%BDft+Angelzubeh%EF%BF%BDr+Angeln+Fischen+Fischereibedarf+Fischereizubeh%EF%BF%BDr+Fangen+Fische';
var metaContents  = 'Emmer+Fischerei-Fachcenter+Emmenbr%EF%BF%BDckeAngelshop+Angelfachgesch%EF%BF%BDft+Angelzubeh%EF%BF%BDr+Angeln+Fischen+Fischereibedarf+Fischereizubeh%EF%BF%BDr+Fangen+Fische';
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();
};
