/* [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','4517',jdecode('Home'),jdecode(''), jdecode('%2F4517.html'), 'true',[],'',''],
	['PAGE','4574',jdecode('Hotel+%2F+Caf%C3%A9+Bar'),jdecode(''), jdecode('%2F4574%2Findex.html'), 'true',[ 
		['PAGE','4601',jdecode('Die+Zimmer'),jdecode(''), jdecode('%2F4574%2F4601.html'), 'true',[],'',''],
		['PAGE','4628',jdecode('Speisesaal+%2F+Caf%C3%A9+Bar'),jdecode(''), jdecode('%2F4574%2F4628.html'), 'true',[],'',''],
		['PAGE','23101',jdecode('Mezcalito'),jdecode(''), jdecode('%2F4574%2F23101.html'), 'true',[],'','']
	],'',''],
	['PAGE','5603',jdecode('Unsere+Ferienwohnungen'),jdecode(''), jdecode('%2F5603%2Findex.html'), 'true',[ 
		['PAGE','4682',jdecode('Die+Lage'),jdecode(''), jdecode('%2F5603%2F4682.html'), 'true',[],'',''],
		['PAGE','20700',jdecode('1-ZI+Ferienwohnung'),jdecode(''), jdecode('%2F5603%2F20700.html'), 'true',[],'',''],
		['PAGE','20797',jdecode('2-ZI+Ferienwohnung'),jdecode(''), jdecode('%2F5603%2F20797.html'), 'true',[],'',''],
		['PAGE','21001',jdecode('3-ZI+Ferienwohnung'),jdecode(''), jdecode('%2F5603%2F21001.html'), 'true',[],'','']
	],'',''],
	['PAGE','20249',jdecode('Billard'),jdecode(''), jdecode('%2F20249.html'), 'true',[],'',''],
	['PAGE','4861',jdecode('Anfahrt'),jdecode(''), jdecode('%2F4861.html'), 'true',[],'',''],
	['PAGE','4896',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F4896.html'), 'true',[],'',''],
	['PAGE','7804',jdecode('Unsere+Ausfl%C3%BCge'),jdecode(''), jdecode('%2F7804%2Findex.html'), 'true',[ 
		['PAGE','8365',jdecode('Sommer'),jdecode(''), jdecode('%2F7804%2F8365.html'), 'true',[],'',''],
		['PAGE','7831',jdecode('Winter'),jdecode(''), jdecode('%2F7804%2F7831.html'), 'true',[],'','']
	],'',''],
	['PAGE','4763',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F4763.html'), 'true',[],'',''],
	['PAGE','5684',jdecode('Kontakt'),jdecode(''), jdecode('%2F5684.html'), 'true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Speed';
theSitetree.paletteFamily='CC0000';
theSitetree.keyvisualId='2342';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='375';
theSitetree.graphicsetId='423';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='CC0000';
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: 			'Speed',
				paletteFamily: 	'CC0000',
				keyvisualId: 	'2342',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'375',
				graphicsetId: 	'423',
				contentColor: 	'FFFFFF',
				contentBGColor: 'CC0000',
				a_color: 		'CC0000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '4861',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '4896',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4517',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4517',
internalId:  '',
customField: '20111112-150047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4574',
internalId:  '',
customField: '20110521-065133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4628',
internalId:  '',
customField: '20110514-115146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20110521-062824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4861',
internalId:  '',
customField: '20110521-065938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4896',
internalId:  '',
customField: '20060203-131415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20249',
internalId:  '',
customField: '20110514-121319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4763',
internalId:  '',
customField: '20110521-064729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20110521-065433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5603',
internalId:  '',
customField: '20110521-065741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20070129-104104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20700',
internalId:  '',
customField: '20070129-102454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20797',
internalId:  '',
customField: '20070129-103015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20070129-103507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7804',
internalId:  '',
customField: '20070502-210158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8365',
internalId:  '',
customField: '20070502-210222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7831',
internalId:  '',
customField: '20060906-181721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5684',
internalId:  '',
customField: '20110521-070052'
};
webappMappings['1501']=webappMappings['1501-3203305']={
webappId:    '1501',
documentId:  '4517',
internalId:  '3203305',
customField: '1501'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2CY7';
var companyName   = 'Hotel+Eden+au+Lac%2C+Brunnen+SCHWEIZ';
var htmlTitle	  = 'Hotel+Eden+au+Lac%2C+Brunnen+SCHWEIZ.';
var metaKeywords  = 'Hotel%2C+Appartement%2C+Zimmer%2C+Ferienwohnungen%2C+FEWO%2C+Snack-bar%2C+See%2C+Berge%2C+g%C3%BCnstig%2C+Ferienwohnung%2C++Aktionspreise%2C+Zentralschweiz%2C+Brunnen%2C+Luzern%2C+Schwyz%2C+Schweiz%2C+Ausfl%C3%BCge%2C+Wanderungen%2C+Wassersport%2C++Hotel+Eden%2C++Brunnen%2C++Zentralschweiz%2C+***%2C+dreisterne%2C+Vierwaldst%C3%A4ttersee%2C+Alpicana%2C+Metropol%2C+Appartementhaus%2C+Appartements%2C+Balkon%2C+Urlaub%2C++Ferien%2C+%C3%9Cbernachtung%2C++Schwyz%2C+Schweiz%2C+Zimmer%2C+Room%2C+Tourismus%2C++Urnersee%2C+Innerschweiz%2C++Axenstrasse%2C++Weg+der+Schweiz%2C+Janser%2C+Erholung%2C+Ferien%2C+Urmiberg%2C+Rigi%2C+Wandern%2C+Wanderungen%2C+Fronalpstock%2C+Stoos%2C+Mythen%2C+Schifffahrt%2C+Motorradfahrer%2C+Motorrad%2C+Bike%2C+apartment%2C+appartement%2C+studio%2C+zimmer%2C+vermieten%2C+miete%2C+vierwaldst%23228%3Bttersee%2C+urnersee%2C+luzernersee%2C+%23252%3Bbernachtung%2C+g%23228%3Bste%2C+urlaub%2C+unterkunft%2C+swiss+knife+valley%2C+tourist+information+brunnen%2C+zentralschweiz%2C+weg-der-schweiz%2C+voralpen%2C+mythen%2C+wandern%2C+segeln%2C+surfen%2C+gleitschirmfliegen%2C+biken%2C+velofahren%2C+radeln%2C+klettern%2C+dampfschiff%2C+dampfschifffahrt%2C+dampfschiffahrt%2C+schiff%2C+naturschutzgebiet%2C+seilbahn%2C+urmiberg%2C+timpel%2C+holiday+flat%2C+flat%2C+apartment%2C+rent%2C+room+rent%2C+room%2C+accomodation%2C+lodging%2C+vacation%2C+swiss+knife+valley%2C+alpes%2C+mythen%2C+hike%2C+hiking%2C+sailing%2C+windsurfing%2C+paragliding%2C+biking%2C+cycling%2C+riding%2C+climbing%2C+steamship%2C+steamer%2C+steam+navigation%2C+ship%2C+nature+reserve%2C+cable+railway%2C+urmiberg%2C+hotels%2C+unterkunft%2C+unterkuuml%3Bnfte%2C+accomodation%2C+accomodation%2C+frei%2C+see%2C+seehotel%2C+see-hotel%2C+***hotel%2C+dreistern%2C+dreistern-hotel%2C+komfort%2C+komfortabel%2C+comfort%2C+gepflegt%2C+atmosphauml%3Bre%2C+privacy%2C+privatsphaere%2C+familienhotel%2C+familie%2C+ingenbohl%2C+ingenbohl-brunnen%2C+schwyz%2C+kt.+schwyz%2C+kanton%2C+urkanton%2C+urkantone%2C+uri%2C+nidwalden%2C+obwalden%2C+goldau%2C+treib%2C+seelisberg%2C+morschach%2C+steinen%2C+gersau%2C+fluuml%3Belen%2C+altdorf%2C+weggis%2C+vitznau%2C+kuuml%3Bssnacht%2C+muotathal%2C+muotatal%2C+luzern%2C+lucerne%2C+lucerna%2C+zentralschweiz%2C+zentral-schweiz%2C+central+switzerland%2C+central-switzerland%2C+centralswitzerland%2C+suisse+centrale%2C+suisse-centrale%2C+svizzera+centrale%2C+svizzera-centrale%2C+urschweiz%2C+ur-schweiz%2C+innerschweiz%2C+inner-schweiz%2C+suisse+primitive%2C+gotthardraststauml%3Btte%2C+gotthard%2C+st.+gotthard%2C+san+gottardo%2C+schweiz%2C+switzerland%2C+suisse%2C+swiss%2C+zwitserland%2C+svizzera%2C+vierwaldstauml%3Btter-see%2C+vierwaldstauml%3Bttersee%2C+vierwaldstauml%3Btter%2C+lac+au+quatre+cantons%2C+lake+of+lucerne%2C+lake+lucerne%2C+lake-lucerne%2C+lakelucerne%2C+urnersee%2C+urner+see%2C+axenstrasse%2C+fronalpstock%2C+mythen%2C+rigi%2C+stoos%2C+klewenalp%2C+pilatus%2C+uri+rotstock%2C+weg+der+schweiz%2C+voie+suisse%2C+alpen%2C+alps%2C+berg%2C+berge%2C+mountain%2C+mountains%2C+montagnes%2C+panorama%2C+aussicht%2C+view%2C+houml%3Blloch%2C+segeln%2C+biken%2C+surfen%2C+swiss+holiday+park%2C+schweiz+tourismus%2C+tourismus%2C+tourism%2C+tourisme%2C+tourismo%2C+ferien%2C+reisen%2C+erholung%2C+vacation%2C+holiday%2C+holidays%2C+vacanze%2C+vacances%2C+ausfluuml%3Bge%2C+wandern%2C+bergsteigen%2C+hiking%2C+mythenforum%2C+tellsplatte%2C+tell%2C+schiller%2C+goethe%2C+schillerstein%2C+ruuml%3Btli%2C+rutli%2C+gruuml%3Btli%2C+grutli%2C+speiserestaurant%2C+gaststauml%3Btte%2C+restaurant%2C++essen%2C+trinken%2C+motorradfahrer+treff%2C+caf%C3%A9%2C+billard%2C+dart%2C+Fr%C3%BChbuchung%2C+fr%C3%BChbuchung%2C+aktionspreise%2C+aktion%2C+internet';
var metaContents  = 'Hotel+Eden+au+Lac%2C+Brunnen%2C+Vierwaldst%C3%A4ttersee%2C+Schweiz%2C+Zimmer%2C+Ferienwohnungen%2C+FEWO%2C+Sicht+auf+See+und+Berge';
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();
};

