/* [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','4556',jdecode('Home'),jdecode(''), jdecode('%2F4556.html'), 'true',[],'',''],
	['PAGE','4613',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F4613%2Findex.html'), 'true',[ 
		['PAGE','4640',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F4613%2F4640.html'), 'true',[],'',''],
		['PAGE','28301',jdecode('St%C3%B6rkoch'),jdecode(''), jdecode('%2F4613%2F28301.html'), 'true',[],'',''],
		['PAGE','42809',jdecode('Catering'),jdecode(''), jdecode('%2F4613%2F42809.html'), 'true',[],'',''],
		['PAGE','284601',jdecode('Flying+Dinner'),jdecode(''), jdecode('%2F4613%2F284601.html'), 'true',[],'',''],
		['PAGE','272001',jdecode('Hauslieferdienst'),jdecode(''), jdecode('%2F4613%2F272001.html'), 'true',[],'',''],
		['PAGE','288701',jdecode('Materialmiete'),jdecode(''), jdecode('%2F4613%2F288701.html'), 'true',[],'',''],
		['PAGE','274201',jdecode('Preise'),jdecode(''), jdecode('%2F4613%2F274201.html'), 'true',[],'',''],
		['PAGE','78501',jdecode('Referenzen'),jdecode(''), jdecode('%2F4613%2F78501.html'), 'true',[],'',''],
		['PAGE','193701',jdecode('Was+unsere+Kunden+denken'),jdecode(''), jdecode('%2F4613%2F193701.html'), 'true',[],'',''],
		['PAGE','131801',jdecode('Umwelt'),jdecode(''), jdecode('%2F4613%2F131801.html'), 'true',[],'',''],
		['PAGE','90561',jdecode('Impressum'),jdecode(''), jdecode('%2F4613%2F90561.html'), 'true',[],'','']
	],'',''],
	['PAGE','28436',jdecode('Kochkurse'),jdecode(''), jdecode('%2F28436%2Findex.html'), 'true',[ 
		['PAGE','28463',jdecode('Outdoorchef+Grill'),jdecode(''), jdecode('%2F28436%2F28463.html'), 'true',[],'',''],
		['PAGE','345501',jdecode('Vine+%26+Chill+%26+Grill'),jdecode(''), jdecode('%2F28436%2F345501.html'), 'true',[],'',''],
		['PAGE','133201',jdecode('Plausch+Kochkurse'),jdecode(''), jdecode('%2F28436%2F133201.html'), 'true',[],'',''],
		['PAGE','331501',jdecode('Teambildung+Kochkurse'),jdecode(''), jdecode('%2F28436%2F331501.html'), 'true',[],'','']
	],'',''],
	['PAGE','14414',jdecode('Weine'),jdecode(''), jdecode('%2F14414%2Findex.html'), 'true',[ 
		['PAGE','259422',jdecode('Spanien'),jdecode(''), jdecode('%2F14414%2F259422.html'), 'true',[],'',''],
		['PAGE','268201',jdecode('Portugal'),jdecode(''), jdecode('%2F14414%2F268201.html'), 'true',[],'',''],
		['PAGE','298001',jdecode('Schweiz'),jdecode(''), jdecode('%2F14414%2F298001.html'), 'true',[],'',''],
		['PAGE','268901',jdecode('Elsass'),jdecode(''), jdecode('%2F14414%2F268901.html'), 'true',[],'',''],
		['PAGE','259506',jdecode('Portwein'),jdecode(''), jdecode('%2F14414%2F259506.html'), 'true',[],'',''],
		['PAGE','269301',jdecode('AGB'),jdecode(''), jdecode('%2F14414%2F269301.html'), 'true',[],'','']
	],'',''],
	['PAGE','258901',jdecode('Rezepte'),jdecode(''), jdecode('%2F258901%2Findex.html'), 'true',[ 
		['PAGE','298401',jdecode('Monatsrezept'),jdecode(''), jdecode('%2F258901%2F298401.html'), 'true',[],'',''],
		['PAGE','94260',jdecode('Archiv'),jdecode(''), jdecode('%2F258901%2F94260.html'), 'true',[],'','']
	],'',''],
	['PAGE','4748',jdecode('Handel'),jdecode(''), jdecode('%2F4748%2Findex.html'), 'true',[ 
		['PAGE','389301',jdecode('Cuca'),jdecode(''), jdecode('%2F4748%2F389301.html'), 'true',[],'',''],
		['PAGE','128801',jdecode('K%C3%A4se'),jdecode(''), jdecode('%2F4748%2F128801.html'), 'true',[],'',''],
		['PAGE','292101',jdecode('Outdoorchef+Grill'),jdecode(''), jdecode('%2F4748%2F292101.html'), 'true',[],'',''],
		['PAGE','343801',jdecode('Der+Decanter'),jdecode(''), jdecode('%2F4748%2F343801.html'), 'true',[],'',''],
		['PAGE','358501',jdecode('Mypressi'),jdecode(''), jdecode('%2F4748%2F358501.html'), 'true',[],'',''],
		['PAGE','102001',jdecode('Der+Austern%C3%B6ffner'),jdecode(''), jdecode('%2F4748%2F102001.html'), 'true',[],'',''],
		['PAGE','215401',jdecode('Das+Schneidebrett'),jdecode(''), jdecode('%2F4748%2F215401.html'), 'true',[],'',''],
		['PAGE','90127',jdecode('Der+Wurlitzer'),jdecode(''), jdecode('%2F4748%2F90127.html'), 'true',[],'',''],
		['PAGE','279401',jdecode('Der+Crazy+Quilt'),jdecode(''), jdecode('%2F4748%2F279401.html'), 'true',[],'','']
	],'',''],
	['PAGE','53401',jdecode('Interessante+Links'),jdecode(''), jdecode('%2F53401.html'), 'true',[],'',''],
	['PAGE','63001',jdecode('Anl%C3%A4sse'),jdecode(''), jdecode('%2F63001%2Findex.html'), 'true',[ 
		['PAGE','338201',jdecode('Outdoorchef'),jdecode(''), jdecode('%2F63001%2F338201.html'), 'true',[],'',''],
		['PAGE','310601',jdecode('Anl%C3%A4sse+1'),jdecode(''), jdecode('%2F63001%2F310601.html'), 'true',[],'',''],
		['PAGE','243201',jdecode('Anl%C3%A4sse+2'),jdecode(''), jdecode('%2F63001%2F243201.html'), 'true',[],'',''],
		['PAGE','93677',jdecode('Anl%C3%A4sse+3'),jdecode(''), jdecode('%2F63001%2F93677.html'), 'true',[],'',''],
		['PAGE','236901',jdecode('Kochkurse'),jdecode(''), jdecode('%2F63001%2F236901.html'), 'true',[],'','']
	],'',''],
	['PAGE','53428',jdecode('Kontakt'),jdecode(''), jdecode('%2F53428%2Findex.html'), 'true',[ 
		['PAGE','74704',jdecode('Kontakt+%28Form+followup+page%29'),jdecode(''), jdecode('%2F53428%2F74704.html'), 'false',[],'','']
	],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Lunch';
theSitetree.paletteFamily='426062';
theSitetree.keyvisualId='3846';
theSitetree.keyvisualName='kv_3846.jpg';
theSitetree.fontsetId='10697';
theSitetree.graphicsetId='11063';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='758A86';
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: 			'Lunch',
				paletteFamily: 	'426062',
				keyvisualId: 	'3846',
				keyvisualName: 	'kv_3846.jpg',
				fontsetId: 		'10697',
				graphicsetId: 	'11063',
				contentColor: 	'FFFFFF',
				contentBGColor: '758A86',
				a_color: 		'426062',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'426062',
				e_color: 		'426062',
				f_color: 		'426062',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-443']={
webappId:    '7008',
documentId:  '53428',
internalId:  '443',
customField: 'language:de;country:CH;'
};
webappMappings['1501']=webappMappings['1501-90910']={
webappId:    '1501',
documentId:  '4556',
internalId:  '90910',
customField: '1501'
};
webappMappings['1009']=webappMappings['1009-6567324']={
webappId:    '1009',
documentId:  '74704',
internalId:  '6567324',
customField: 'isFollowupPage:true;documentId:53428;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20111210-091316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4613',
internalId:  '',
customField: '20100730-095040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20101112-071510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131801',
internalId:  '',
customField: '20080425-073236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20111210-090739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90561',
internalId:  '',
customField: '20060717-104518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259422',
internalId:  '',
customField: '20111210-090920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20101112-072117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42809',
internalId:  '',
customField: '20060516-150627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '331501',
internalId:  '',
customField: '20100728-063259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '338201',
internalId:  '',
customField: '20111210-091105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193701',
internalId:  '',
customField: '20101121-085644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4748',
internalId:  '',
customField: '20110527-073620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128801',
internalId:  '',
customField: '20100610-185045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '298001',
internalId:  '',
customField: '20111210-090954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '298401',
internalId:  '',
customField: '20110620-071319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14414',
internalId:  '',
customField: '20111210-090911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94260',
internalId:  '',
customField: '20110115-085554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343801',
internalId:  '',
customField: '20100805-212102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28436',
internalId:  '',
customField: '20110602-132802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28463',
internalId:  '',
customField: '20110602-132852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133201',
internalId:  '',
customField: '20110602-132921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '310601',
internalId:  '',
customField: '20101217-082322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292101',
internalId:  '',
customField: '20110527-072638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259506',
internalId:  '',
customField: '20100728-071405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63001',
internalId:  '',
customField: '20100906-174922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93677',
internalId:  '',
customField: '20090410-123305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '345501',
internalId:  '',
customField: '20110815-112650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20110427-180234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '358501',
internalId:  '',
customField: '20101017-124623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102001',
internalId:  '',
customField: '20090728-222444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215401',
internalId:  '',
customField: '20090521-120330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90127',
internalId:  '',
customField: '20081116-122145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53428',
internalId:  '',
customField: '20070822-044440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74704',
internalId:  '',
customField: '20060430-140555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258901',
internalId:  '',
customField: '20110602-133205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236901',
internalId:  '',
customField: '20100730-090659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '243201',
internalId:  '',
customField: '20100825-032610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288701',
internalId:  '',
customField: '20111210-090553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268201',
internalId:  '',
customField: '20110801-093106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268901',
internalId:  '',
customField: '20100728-070541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '269301',
internalId:  '',
customField: '20110427-180857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '389301',
internalId:  '',
customField: '20110427-180824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272001',
internalId:  '',
customField: '20090812-122650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274201',
internalId:  '',
customField: '20090829-141346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279401',
internalId:  '',
customField: '20091018-143501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284601',
internalId:  '',
customField: '20100619-064546'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXST0';
var companyName   = 'der+gastrofreelancer';
var htmlTitle	  = 'Der+Gastrofreelancer';
var metaKeywords  = 'Partyservice%2C+Catering%2C+Anlass%2C+gastrofreelancer%2C+Konzepte%2C+Gastronomie%2C+Luzern%2C+Basel%2C+Wurlitzer%2C+Weine%2C+Weinhandel%2C+Rezepte%2C+Portweine%2C+Porto%2C+Callejo%2C+el+alba%2C+Piedro+Lagar%2C+Mietw%C3%A4sche%2C+St%C3%B6rkoch%2C+Flying+Dinner%2C+Matsu%2C+El+Albar%2C+Gaba+do+Xil%2C+Wine%26Dine%2C+unicat%2C+Kochkurse%2C+KOchgrillkurse%2C+Outdoorchef%2C+Grillieren%2C+';
var metaContents  = 'Catering%2C+Partyservice%2C+St%C3%B6rkoch%2C+Kochkurse%2C+Wein%2C+K%C3%A4se%2C+Mietw%C3%A4sche%2C+Flying+Dinner%2C+Wine%26Dine%2C+Kochen%2C+Unicat%2C+';
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();
};

