/* [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.html','true',[],'',''],
	['PAGE','3001',jdecode('Verkaufswagen'),jdecode(''),'/3001/index.html','true',[ 
		['PAGE','12557',jdecode('Team+Verkaufswagen'),jdecode(''),'/3001/12557.html','true',[],'',''],
		['PAGE','12578',jdecode('Einsiedeln+SZ'),jdecode(''),'/3001/12578.html','true',[],'',''],
		['PAGE','12599',jdecode('Gossau+ZH'),jdecode(''),'/3001/12599.html','true',[],'',''],
		['PAGE','12620',jdecode('Wald+ZH'),jdecode(''),'/3001/12620.html','true',[],'',''],
		['PAGE','12641',jdecode('B%C3%BClach+ZH'),jdecode(''),'/3001/12641.html','true',[],'',''],
		['PAGE','12662',jdecode('Horgen+ZH'),jdecode(''),'/3001/12662.html','true',[],'',''],
		['PAGE','12683',jdecode('Reichenburg+SZ'),jdecode(''),'/3001/12683.html','true',[],'',''],
		['PAGE','12704',jdecode('Siebnen+SZ'),jdecode(''),'/3001/12704.html','true',[],'',''],
		['PAGE','12725',jdecode('Lachen+SZ'),jdecode(''),'/3001/12725.html','true',[],'',''],
		['PAGE','12746',jdecode('Uznach+SG'),jdecode(''),'/3001/12746.html','true',[],'',''],
		['PAGE','12767',jdecode('Richterswil+ZH'),jdecode(''),'/3001/12767.html','true',[],'',''],
		['PAGE','12788',jdecode('W%C3%A4denswil+ZH'),jdecode(''),'/3001/12788.html','true',[],'',''],
		['PAGE','22736',jdecode('Sortiment'),jdecode(''),'/3001/22736.html','true',[],'','']
	],'',''],
	['PAGE','12872',jdecode('Hausspezialit%C3%A4ten'),jdecode(''),'/12872/index.html','true',[ 
		['PAGE','12893',jdecode('Fischknusperli'),jdecode(''),'/12872/12893.html','true',[],'',''],
		['PAGE','12914',jdecode('Backteig-Mehl'),jdecode(''),'/12872/12914.html','true',[],'',''],
		['PAGE','12935',jdecode('Saucen'),jdecode(''),'/12872/12935.html','true',[],'',''],
		['PAGE','12956',jdecode('Rauchlachs'),jdecode(''),'/12872/12956.html','true',[],'',''],
		['PAGE','12977',jdecode('Graved-Lachs'),jdecode(''),'/12872/12977.html','true',[],'',''],
		['PAGE','12998',jdecode('Lachsburger+%2F+Lachstartar'),jdecode(''),'/12872/12998.html','true',[],'',''],
		['PAGE','13019',jdecode('Lachsweggen'),jdecode(''),'/12872/13019.html','true',[],'',''],
		['PAGE','37036',jdecode('Felchen-Mousse'),jdecode(''),'/12872/37036.html','true',[],'','']
	],'',''],
	['PAGE','20936',jdecode('Onlineshop'),jdecode(''),'/20936/index.html','false',[ 
		['PAGE','12399',jdecode('zum+Onlineshop'),jdecode(''),'/20936/12399.html','true',[],'','']
	],'',''],
	['PAGE','12357',jdecode('Gastronomie%2FDetailhandel'),jdecode(''),'/12357/index.html','true',[ 
		['PAGE','22757',jdecode('Sortimentslisten'),jdecode(''),'/12357/22757.html','true',[],'',''],
		['PAGE','30436',jdecode('Wildsortiment'),jdecode(''),'/12357/30436.html','false',[],'','']
	],'',''],
	['PAGE','12336',jdecode('Rezepte'),jdecode(''),'/12336/index.html','true',[ 
		['PAGE','12378',jdecode('Bildergallerie'),jdecode(''),'/12336/12378.html','true',[],'','']
	],'',''],
	['PAGE','13061',jdecode('Kontakt'),jdecode(''),'/13061/index.html','true',[ 
		['PAGE','13082',jdecode('%C3%9Cber+uns'),jdecode(''),'/13061/13082.html','true',[],'',''],
		['PAGE','13103',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/13061/13103.html','true',[],'',''],
		['PAGE','14636',jdecode('Kontaktformular'),jdecode(''),'/13061/14636.html','true',[],'',''],
		['PAGE','14657',jdecode('Stellenangebote'),jdecode(''),'/13061/14657.html','true',[],'',''],
		['PAGE','13124',jdecode('Newsletter'),jdecode(''),'/13061/13124.html','true',[],'',''],
		['PAGE','13145',jdecode('Lageplan+%2F+Routenplaner'),jdecode(''),'/13061/13145.html','true',[],'','']
	],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='555454';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'555454',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20100514-162717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100901-194707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30436',
internalId:  '',
customField: '20090930-070001'
};
webappMappings['7008']=webappMappings['7008-852']={
webappId:    '7008',
documentId:  '13124',
internalId:  '852',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-5a9f9339552c38562e504bd3104f6c30']={
webappId:    '7060',
documentId:  '12378',
internalId:  '5a9f9339552c38562e504bd3104f6c30',
customField: 'language:de;country:CH;'
};
webappMappings['4001']=webappMappings['4001-21813381']={
webappId:    '4001',
documentId:  '12399',
internalId:  '21813381',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22757',
internalId:  '',
customField: '20100228-113514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12557',
internalId:  '',
customField: '20100226-230503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12578',
internalId:  '',
customField: '20100225-191315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12599',
internalId:  '',
customField: '20100225-191327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12620',
internalId:  '',
customField: '20100225-191335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12641',
internalId:  '',
customField: '20100225-191405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12662',
internalId:  '',
customField: '20100225-191419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12683',
internalId:  '',
customField: '20100514-162738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12704',
internalId:  '',
customField: '20090918-154818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12725',
internalId:  '',
customField: '20090920-115755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12746',
internalId:  '',
customField: '20090920-121337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12767',
internalId:  '',
customField: '20090920-121658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12788',
internalId:  '',
customField: '20100225-191447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20936',
internalId:  '',
customField: '20091001-221532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22736',
internalId:  '',
customField: '20090920-133942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12872',
internalId:  '',
customField: '20100121-191940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12893',
internalId:  '',
customField: '20090927-140249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12914',
internalId:  '',
customField: '20090927-140240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12935',
internalId:  '',
customField: '20090927-135642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12956',
internalId:  '',
customField: '20090927-140220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12977',
internalId:  '',
customField: '20090927-140226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12998',
internalId:  '',
customField: '20090927-140212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13019',
internalId:  '',
customField: '20090927-140204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12399',
internalId:  '',
customField: '20091001-221452'
};
webappMappings['7008']=webappMappings['7008-1167']={
webappId:    '7008',
documentId:  '14636',
internalId:  '1167',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12357',
internalId:  '',
customField: '20090928-230443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12336',
internalId:  '',
customField: '20100103-160230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12378',
internalId:  '',
customField: '20090928-224900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13061',
internalId:  '',
customField: '20100225-191913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13082',
internalId:  '',
customField: '20100226-230832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13103',
internalId:  '',
customField: '20090905-154221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13124',
internalId:  '',
customField: '20090905-153701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13145',
internalId:  '',
customField: '20090916-225519'
};
webappMappings['7008']=webappMappings['7008-1274']={
webappId:    '7008',
documentId:  '20936',
internalId:  '1274',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14636',
internalId:  '',
customField: '20090905-155006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14657',
internalId:  '',
customField: '20091201-000726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37036',
internalId:  '',
customField: '20100121-191957'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3LKU';
var companyName   = 'Zahner+Fischhandel+AG+Gommiswald';
var htmlTitle	  = 'Zahner+Fischhandel+AG+Gommiswald+-+Ihr+Frisch-Fisch+Spezialist';
var metaKeywords  = 'Fischhandel+Eugen+Zahner+Gommiswald+Knusperli+Chnusperli+Fisch+Frische+Fischmarkt+Forelle+Egli+Rotzungen+Poisson+Peche+Seezungen+Comestibles+Delikatessen+Hecht+Meerfische+S%C3%BCsswasserfisch+Seefisch+Z%C3%BCrichsee+Z%C3%BCrisee+Felchen+Zander+Verkaufswagen+Horgen+Einsiedeln+Gossau+Wald+B%C3%BClach+Reichenburg+Siebnen+Lachen+Uznach+Richterswil+W%C3%A4denswil+Graved+Lachs+Saucen+Rauchlachs+Bernhard+Zahner+Junge+SVP+JSVP++Manhard+Messer+Lachs+Burger+Lachs+Tartar+Sauce+Tatar+Cocktail+Merlan+Pangasius+Backteig+Mehl+Lachs+Weggen+Filetieren+Filetiermesser+Lachsmesser+Rezepte+Zahner+Fischhandel+AG';
var metaContents  = 'Zahner+Fischhandel+AG+Gommiswald+-+Ihr+Frisch-Fisch-Spezialist+-+Fischknusperli+aus+eigener+Produktion+-+Backteigmehl+-+Rauchlachs+und+Gravedlachs';
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();
};
