/* [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','88009',jdecode('Wettbewerb'),jdecode(''),'/88009.html','false',[],'',''],
	['PAGE','25414',jdecode('Welcome'),jdecode(''),'/25414.html','true',[],'',''],
	['PAGE','92501',jdecode('Wie+bewerten+wir%3F'),jdecode(''),'/92501.html','true',[],'',''],
	['PAGE','78304',jdecode('Selber+bewerten'),jdecode(''),'/78304.html','false',[],'',''],
	['PAGE','90813',jdecode('Betriebe+mit+Kiddy%60s'),jdecode(''),'/90813/index.html','true',[ 
		['PAGE','4734',jdecode('Die+Regionen'),jdecode(''),'/90813/4734.html','false',[],'',''],
		['PAGE','4788',jdecode('Aargau'),jdecode(''),'/90813/4788.html','true',[],'',''],
		['PAGE','90756',jdecode('Neu+Aargau'),jdecode(''),'/90813/90756.html','false',[],'',''],
		['PAGE','4896',jdecode('Appenzell+Ausser-Innerrhoden'),jdecode(''),'/90813/4896.html','true',[],'',''],
		['PAGE','4815',jdecode('Basel+Land+und+Stadt'),jdecode(''),'/90813/4815.html','true',[],'',''],
		['PAGE','4761',jdecode('Bern'),jdecode(''),'/90813/4761.html','true',[],'',''],
		['PAGE','4869',jdecode('Freiburg'),jdecode(''),'/90813/4869.html','true',[],'',''],
		['PAGE','91622',jdecode('Genf'),jdecode(''),'/90813/91622.html','true',[],'',''],
		['PAGE','91685',jdecode('Glarus'),jdecode(''),'/90813/91685.html','true',[],'',''],
		['PAGE','7001',jdecode('Graub%C3%BCnden'),jdecode(''),'/90813/7001.html','true',[],'',''],
		['PAGE','91601',jdecode('Jura'),jdecode(''),'/90813/91601.html','true',[],'',''],
		['PAGE','4842',jdecode('Luzern'),jdecode(''),'/90813/4842.html','true',[],'',''],
		['PAGE','91643',jdecode('Neuenburg'),jdecode(''),'/90813/91643.html','true',[],'',''],
		['PAGE','91769',jdecode('Ob-+und+Nidwalden'),jdecode(''),'/90813/91769.html','true',[],'',''],
		['PAGE','91706',jdecode('Sankt+Gallen'),jdecode(''),'/90813/91706.html','true',[],'',''],
		['PAGE','91790',jdecode('Schaffhausen'),jdecode(''),'/90813/91790.html','true',[],'',''],
		['PAGE','4950',jdecode('Schwyz'),jdecode(''),'/90813/4950.html','true',[],'',''],
		['PAGE','90901',jdecode('Solothurn'),jdecode(''),'/90813/90901.html','true',[],'',''],
		['PAGE','22901',jdecode('Tessin'),jdecode(''),'/90813/22901.html','true',[],'',''],
		['PAGE','91727',jdecode('Thurgau'),jdecode(''),'/90813/91727.html','true',[],'',''],
		['PAGE','91748',jdecode('Uri'),jdecode(''),'/90813/91748.html','true',[],'',''],
		['PAGE','91664',jdecode('Waadt'),jdecode(''),'/90813/91664.html','true',[],'',''],
		['PAGE','4977',jdecode('Wallis'),jdecode(''),'/90813/4977.html','true',[],'',''],
		['PAGE','91811',jdecode('Zug'),jdecode(''),'/90813/91811.html','true',[],'',''],
		['PAGE','5004',jdecode('Z%C3%BCrich'),jdecode(''),'/90813/5004.html','true',[],'','']
	],'',''],
	['PAGE','121857',jdecode('G%C3%A4ste+Bewertung'),jdecode(''),'/121857.html','true',[],'',''],
	['PAGE','121878',jdecode('Besitzer+Bewertung'),jdecode(''),'/121878.html','true',[],'',''],
	['PAGE','76340',jdecode('News'),jdecode(''),'/76340/index.html','true',[ 
		['PAGE','26001',jdecode('Archiv'),jdecode(''),'/76340/26001.html','false',[],'','']
	],'',''],
	['PAGE','80399',jdecode('Forum'),jdecode(''),'/80399.html','false',[],'',''],
	['PAGE','88590',jdecode('R%C3%BCckblick'),jdecode(''),'/88590.html','false',[],'',''],
	['PAGE','4677',jdecode('Berichte'),jdecode(''),'/4677.html','false',[],'',''],
	['PAGE','106301',jdecode('Fotos'),jdecode(''),'/106301.html','true',[],'',''],
	['PAGE','80498',jdecode('Interviews'),jdecode(''),'/80498.html','false',[],'',''],
	['PAGE','88681',jdecode('Links'),jdecode(''),'/88681.html','true',[],'',''],
	['PAGE','88702',jdecode('Reka+-+Check'),jdecode(''),'/88702.html','true',[],'',''],
	['PAGE','113957',jdecode('G%C3%A4stebuch'),jdecode(''),'/113957.html','true',[],'',''],
	['PAGE','23152',jdecode('Kontakt'),jdecode(''),'/23152.html','true',[],'',''],
	['PAGE','130857',jdecode('Spenden+und+Links'),jdecode(''),'/130857.html','true',[],'',''],
	['PAGE','87988',jdecode('Redaktion'),jdecode(''),'/87988.html','true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Hotel';
theSitetree.paletteFamily='E7C76B';
theSitetree.keyvisualId='11680';
theSitetree.keyvisualName='kv_11680.jpg';
theSitetree.fontsetId='32961';
theSitetree.graphicsetId='13996';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E7C76B';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hotel',
				paletteFamily: 	'E7C76B',
				keyvisualId: 	'11680',
				keyvisualName: 	'kv_11680.jpg',
				fontsetId: 		'32961',
				graphicsetId: 	'13996',
				contentColor: 	'000000',
				contentBGColor: 'E7C76B',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1009']=webappMappings['1009-6054526']={
webappId:    '1009',
documentId:  '25535',
internalId:  '6054526',
customField: 'isFollowupPage:true;documentId:25414;'
};
webappMappings['1501']=webappMappings['1501-309649']={
webappId:    '1501',
documentId:  '25414',
internalId:  '309649',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1813']={
webappId:    '7008',
documentId:  '76340',
internalId:  '1813',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-1814']={
webappId:    '7008',
documentId:  '23152',
internalId:  '1814',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '25414',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4677',
internalId:  '',
customField: '20091021-091537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87988',
internalId:  '',
customField: '20091117-223908'
};
webappMappings['1003']=webappMappings['1003-abw0x0inxs3i1156a869598']={
webappId:    '1003',
documentId:  '80399',
internalId:  'abw0x0inxs3i1156a869598',
customField: 'de:CH:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80498',
internalId:  '',
customField: '20080605-121150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78304',
internalId:  '',
customField: '20091116-224635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76340',
internalId:  '',
customField: '20100421-230724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090430-225013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25414',
internalId:  '',
customField: '20091117-222604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25535',
internalId:  '',
customField: '20090430-220707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4734',
internalId:  '',
customField: '20091006-210252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4788',
internalId:  '',
customField: '20091124-003542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4761',
internalId:  '',
customField: '20091124-001436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4815',
internalId:  '',
customField: '20091117-224646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4869',
internalId:  '',
customField: '20100201-212321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20091124-001252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4842',
internalId:  '',
customField: '20100120-204931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4896',
internalId:  '',
customField: '20091117-224518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20091124-001850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4950',
internalId:  '',
customField: '20091117-230856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4977',
internalId:  '',
customField: '20100421-231249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5004',
internalId:  '',
customField: '20100120-220040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80399',
internalId:  '',
customField: '20090430-225551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23152',
internalId:  '',
customField: '20091023-143745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88009',
internalId:  '',
customField: '20090903-212003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113957',
internalId:  '',
customField: '20091117-223758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88590',
internalId:  '',
customField: '20090916-225055'
};
webappMappings['7008']=webappMappings['7008-5350']={
webappId:    '7008',
documentId:  '78304',
internalId:  '5350',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88681',
internalId:  '',
customField: '20091023-141101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88702',
internalId:  '',
customField: '20091023-141338'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '25414',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90813',
internalId:  '',
customField: '20091204-201839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90756',
internalId:  '',
customField: '20091012-211047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90901',
internalId:  '',
customField: '20091117-231254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91601',
internalId:  '',
customField: '20091117-225907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91622',
internalId:  '',
customField: '20091013-223942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91643',
internalId:  '',
customField: '20091013-224057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91664',
internalId:  '',
customField: '20091123-214200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91685',
internalId:  '',
customField: '20091116-231401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91706',
internalId:  '',
customField: '20091124-001145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91727',
internalId:  '',
customField: '20091113-151519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91748',
internalId:  '',
customField: '20091013-224405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91769',
internalId:  '',
customField: '20091117-230501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91790',
internalId:  '',
customField: '20091124-000944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91811',
internalId:  '',
customField: '20091013-224436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92501',
internalId:  '',
customField: '20091117-222659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106301',
internalId:  '',
customField: '20091022-221027'
};
webappMappings['1002']=webappMappings['1002-113957abw0x0inxs3i']={
webappId:    '1002',
documentId:  '113957',
internalId:  '113957abw0x0inxs3i',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121857',
internalId:  '',
customField: '20091117-223002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121878',
internalId:  '',
customField: '20091117-222950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130857',
internalId:  '',
customField: '20100421-230416'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXS3I';
var companyName   = 'Gastrof%C3%BChrer+f%C3%BCr+Kinder+%26+Familien';
var htmlTitle	  = 'Gastrokidzz+-+der+unabh%C3%A4ngige+schweizer+Gastrof%C3%BChrer+f%C3%BCr+Kinder+und+Familien';
var metaKeywords  = 'Hotel%2C+Restaurant%2C+Gastronomie%2C+Kinder%2C+Familien%2C+Schweiz%2C+Kantone%2C+Bern%2C+Luzern%2C+Z%C3%BCrich%2C+Jura%2C+Berner+Oberland%2C+Graub%C3%BCnden%2C+Uri%2C+Schwyz%2C+St.+Gallen%2C+Thunersee%2C+Vierwaldst%C3%A4ttersee%2C+kinderfreundlich%2C+Baby%2C+Abenteuer%2C+Veranstaltung%2C+Reiseland%2C+Ferienland%2C+';
var metaContents  = 'Erster+Schweizer+Gastro-F%C3%BChrer+f%C3%BCr+Kinder+und+Familien.+Liste+von+kinderfreundlichen+Hotels+und+Restaurants+in+der+Schweiz.';
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();
};
