/* [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','4607',jdecode('Home'),jdecode(''),'/4607.html','true',[],'',''],
	['PAGE','142500',jdecode('Aktuell'),jdecode(''),'/142500.html','true',[],'',''],
	['PAGE','22001',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/22001.html','true',[],'',''],
	['PAGE','22109',jdecode('Das+Ferienhaus'),jdecode(''),'/22109.html','true',[],'',''],
	['PAGE','142700',jdecode('Grundrisspl%C3%A4ne'),jdecode(''),'/142700.html','true',[],'',''],
	['PAGE','22136',jdecode('Preis+%26+Leistung'),jdecode(''),'/22136.html','true',[],'',''],
	['PAGE','22163',jdecode('Belegungsdaten'),jdecode(''),'/22163.html','true',[],'',''],
	['PAGE','103200',jdecode('Anreise'),jdecode(''),'/103200.html','true',[],'',''],
	['PAGE','22298',jdecode('Kontakt'),jdecode(''),'/22298/index.html','true',[ 
		['PAGE','94016',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/22298/94016.html','false',[],'','']
	],'',''],
	['PAGE','22698',jdecode('G%C3%A4stebuch'),jdecode(''),'/22698/index.html','true',[ 
		['PAGE','22699',jdecode('Eintr%C3%A4ge'),jdecode(''),'/22698/22699.html','false',[],'','']
	],'',''],
	['PAGE','100000',jdecode('Fotoalbum'),jdecode(''),'/100000.html','true',[],'',''],
	['PAGE','104800',jdecode('Last+Minute'),jdecode(''),'/104800.html','true',[],'',''],
	['PAGE','108500',jdecode('Links'),jdecode(''),'/108500.html','true',[],'',''],
	['PAGE','118800',jdecode('Fotoimpressionen+'),jdecode(''),'/118800.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='EBF2FF';
theSitetree.keyvisualId='2733';
theSitetree.keyvisualName='eimer.jpg';
theSitetree.fontsetId='10412';
theSitetree.graphicsetId='10675';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Finance',
				paletteFamily: 	'EBF2FF',
				keyvisualId: 	'2733',
				keyvisualName: 	'eimer.jpg',
				fontsetId: 		'10412',
				graphicsetId: 	'10675',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-22698ahp010inejd7']={
webappId:    '1002',
documentId:  '22698',
internalId:  '22698ahp010inejd7',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142500',
internalId:  '',
customField: '20090615-164916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20090528-173117'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-2d9bc6c3933a2fca34af467671824287']={
webappId:    '7060',
documentId:  '142500',
internalId:  '2d9bc6c3933a2fca34af467671824287',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-fe549a0b33caedbe96a5e6be0c32cf6c']={
webappId:    '7060',
documentId:  '100000',
internalId:  'fe549a0b33caedbe96a5e6be0c32cf6c',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-2e73d9efc5f1659f0db4a69f002a10f2']={
webappId:    '7060',
documentId:  '118800',
internalId:  '2e73d9efc5f1659f0db4a69f002a10f2',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-3824f1843419aa8358e0ace32c5f53f9']={
webappId:    '7060',
documentId:  '142700',
internalId:  '3824f1843419aa8358e0ace32c5f53f9',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-1026']={
webappId:    '7008',
documentId:  '22298',
internalId:  '1026',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20090528-154357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22109',
internalId:  '',
customField: '20090528-154722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142700',
internalId:  '',
customField: '20090615-155157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22136',
internalId:  '',
customField: '20100107-153335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22163',
internalId:  '',
customField: '20090528-165511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103200',
internalId:  '',
customField: '20070310-145749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22298',
internalId:  '',
customField: '20060603-135245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94016',
internalId:  '',
customField: '20060603-135222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22698',
internalId:  '',
customField: '20060825-102909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22699',
internalId:  '',
customField: '20060529-173728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100000',
internalId:  '',
customField: '20070311-130347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104800',
internalId:  '',
customField: '20090528-164125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108500',
internalId:  '',
customField: '20090210-105414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118800',
internalId:  '',
customField: '20090615-164827'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'Ahp010INEJD7';
var companyName   = 'Herzlich+Willkommen+im';
var htmlTitle	  = '';
var metaKeywords  = 'Klosters%2C+Ferienhaus+Klosters%2C+Ferien+Klosters%2C+Ferienwohnung+Klosters%2C+Holzchalet%2C+Gruppenunterkunft%2CPr%C3%A4ttigau+Ferienwohnung%2C+Pr%C3%A4ttigau%2C+Schweiz+Ferien%2C+Holidays+Klosters%2C+Familienferien%2C+Familienurlaub+Schweiz%2C+Graub%C3%BCnden+Ferien%2C+Graub%C3%BCnden+Ferienwohnung%2C+Ferienhaus+Graub%C3%BCnden%2C+Chalet+Graub%C3%BCnden%2C+Chalet+Pr%C3%A4ttigau%2C+Chalet+Klosters%2C+Haus+Klosters%2C+Haus+Pr%C3%A4ttigau%2C+Ferien+Pr%C3%A4ttigau%2CUrlaub+Klosters%2C+Urlaub+Graub%C3%BCnden%2C+Urlaub+Pr%C3%A4ttigau+';
var metaContents  = 'Klosters-Conters+gem%C3%BCtliches+Ferienhaus+f%C3%BCr+20+Personen++Holzchalet.+Gruppenhaus.';
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();
};
