/* [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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],'',''],
	['PAGE','123323',jdecode('News'),jdecode(''),'/123323.html','true',[],'',''],
	['PAGE','27034',jdecode('%C3%9Cber+mich'),jdecode(''),'/27034/index.html','true',[ 
		['PAGE','30758',jdecode('Kontakt+%26+Banner'),jdecode(''),'/27034/30758.html','true',[],'','']
	],'',''],
	['PAGE','27061',jdecode('fernweh.cc'),jdecode(''),'/27061.html','true',[],'',''],
	['PAGE','65165',jdecode('Schweiz'),jdecode(''),'/65165/index.html','true',[ 
		['PAGE','38981',jdecode('Daten+und+Zahlen'),jdecode(''),'/65165/38981.html','true',[],'',''],
		['PAGE','65192',jdecode('Bern'),jdecode(''),'/65165/65192.html','true',[],'',''],
		['PAGE','97423',jdecode('Schaffhausen'),jdecode(''),'/65165/97423.html','true',[],'',''],
		['PAGE','65793',jdecode('Luzern'),jdecode(''),'/65165/65793.html','true',[],'','']
	],'',''],
	['PAGE','4681',jdecode('Reiseberichte'),jdecode(''),'/4681/index.html','true',[ 
		['PAGE','40608',jdecode('D%C3%A4nemark'),jdecode(''),'/4681/40608.html','true',[],'',''],
		['PAGE','45246',jdecode('Kopenhagen+2001'),jdecode(''),'/4681/45246.html','true',[],'',''],
		['PAGE','38846',jdecode('Doninikanische+Republik'),jdecode(''),'/4681/38846.html','true',[],'',''],
		['PAGE','46346',jdecode('Punta+Cana+1996'),jdecode(''),'/4681/46346.html','true',[],'',''],
		['PAGE','38873',jdecode('Frankreich'),jdecode(''),'/4681/38873.html','true',[],'',''],
		['PAGE','38900',jdecode('Grossbritannien'),jdecode(''),'/4681/38900.html','true',[],'',''],
		['PAGE','63252',jdecode('Italien'),jdecode(''),'/4681/63252.html','true',[],'',''],
		['PAGE','105923',jdecode('Rom+2006'),jdecode(''),'/4681/105923.html','true',[],'',''],
		['PAGE','38927',jdecode('Malediven'),jdecode(''),'/4681/38927.html','true',[],'',''],
		['PAGE','42854',jdecode('Fihalhohi+2005'),jdecode(''),'/4681/42854.html','true',[],'',''],
		['PAGE','38954',jdecode('Niederlande'),jdecode(''),'/4681/38954.html','true',[],'',''],
		['PAGE','90023',jdecode('Niederl%C3%A4ndische+Antillen+'),jdecode(''),'/4681/90023.html','true',[],'',''],
		['PAGE','96323',jdecode('Cura%C3%A7ao+2006'),jdecode(''),'/4681/96323.html','true',[],'',''],
		['PAGE','96344',jdecode('Aruba+2006'),jdecode(''),'/4681/96344.html','true',[],'',''],
		['PAGE','128023',jdecode('Philippinen'),jdecode(''),'/4681/128023.html','true',[],'',''],
		['PAGE','137823',jdecode('Visayas+2008'),jdecode(''),'/4681/137823.html','true',[],'',''],
		['PAGE','39008',jdecode('Spanien'),jdecode(''),'/4681/39008.html','true',[],'',''],
		['PAGE','45273',jdecode('Nerja+2000+'),jdecode(''),'/4681/45273.html','true',[],'',''],
		['PAGE','116123',jdecode('Mallorca+2007'),jdecode(''),'/4681/116123.html','true',[],'',''],
		['PAGE','33042',jdecode('Thailand'),jdecode(''),'/4681/33042.html','true',[],'',''],
		['PAGE','48246',jdecode('Nord+Thailand+2001'),jdecode(''),'/4681/48246.html','true',[],'',''],
		['PAGE','33069',jdecode('S%C3%BCd+Thailand+2004'),jdecode(''),'/4681/33069.html','true',[],'',''],
		['PAGE','63279',jdecode('Tschechien'),jdecode(''),'/4681/63279.html','true',[],'',''],
		['PAGE','68936',jdecode('Prag+2006'),jdecode(''),'/4681/68936.html','true',[],'',''],
		['PAGE','39035',jdecode('Tunesien'),jdecode(''),'/4681/39035.html','true',[],'',''],
		['PAGE','47223',jdecode('Port+el+Kantoui+1986'),jdecode(''),'/4681/47223.html','true',[],'','']
	],'',''],
	['PAGE','91623',jdecode('Unterwasserwelt'),jdecode(''),'/91623.html','true',[],'',''],
	['PAGE','4789',jdecode('Div.+Fotos'),jdecode(''),'/4789.html','true',[],'',''],
	['PAGE','9501',jdecode('Link+Tipps'),jdecode(''),'/9501.html','true',[],'',''],
	['PAGE','50046',jdecode('Awards'),jdecode(''),'/50046.html','true',[],'',''],
	['PAGE','52652',jdecode('Kulinarisches'),jdecode(''),'/52652/index.html','true',[ 
		['PAGE','52679',jdecode('Hauptgerichte'),jdecode(''),'/52652/52679.html','true',[],'',''],
		['PAGE','52706',jdecode('Dessert'),jdecode(''),'/52652/52706.html','true',[],'','']
	],'',''],
	['PAGE','8002',jdecode('G%C3%A4stebuch'),jdecode(''),'/8002/index.html','true',[ 
		['PAGE','8003',jdecode('Eintr%C3%A4ge'),jdecode(''),'/8002/8003.html','false',[],'','']
	],'',''],
	['PAGE','15334',jdecode('Disclaimer'),jdecode(''),'/15334.html','true',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Stone';
theSitetree.paletteFamily='952A2A';
theSitetree.keyvisualId='4397';
theSitetree.keyvisualName='kv_4397.jpg';
theSitetree.fontsetId='10805';
theSitetree.graphicsetId='11237';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9C9B9B';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stone',
				paletteFamily: 	'952A2A',
				keyvisualId: 	'4397',
				keyvisualName: 	'kv_4397.jpg',
				fontsetId: 		'10805',
				graphicsetId: 	'11237',
				contentColor: 	'000000',
				contentBGColor: '9C9B9B',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123323',
internalId:  '',
customField: '20110718-221716'
};
webappMappings['1002']=webappMappings['1002-8002ahp010in2hhs']={
webappId:    '1002',
documentId:  '8002',
internalId:  '8002ahp010in2hhs',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20091109-125725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27034',
internalId:  '',
customField: '20101112-134943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30758',
internalId:  '',
customField: '20090129-181841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27061',
internalId:  '',
customField: '20081210-164813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65165',
internalId:  '',
customField: '20101105-141715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38981',
internalId:  '',
customField: '20070210-150002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65192',
internalId:  '',
customField: '20070209-163421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97423',
internalId:  '',
customField: '20070210-153643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65793',
internalId:  '',
customField: '20060304-213128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4681',
internalId:  '',
customField: '20110609-221441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40608',
internalId:  '',
customField: '20050909-215832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45246',
internalId:  '',
customField: '20050930-134015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38846',
internalId:  '',
customField: '20071130-150209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46346',
internalId:  '',
customField: '20080204-165329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38873',
internalId:  '',
customField: '20071130-150335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38900',
internalId:  '',
customField: '20071130-150622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63252',
internalId:  '',
customField: '20071130-150838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105923',
internalId:  '',
customField: '20070530-122357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38927',
internalId:  '',
customField: '20050929-150013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42854',
internalId:  '',
customField: '20081019-213547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38954',
internalId:  '',
customField: '20071130-150951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90023',
internalId:  '',
customField: '20061227-154041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96323',
internalId:  '',
customField: '20070217-204609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96344',
internalId:  '',
customField: '20080125-111315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128023',
internalId:  '',
customField: '20071130-142845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137823',
internalId:  '',
customField: '20080318-174527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39008',
internalId:  '',
customField: '20071130-151112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45273',
internalId:  '',
customField: '20050930-133301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116123',
internalId:  '',
customField: '20070531-102827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33042',
internalId:  '',
customField: '20050909-220158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48246',
internalId:  '',
customField: '20080205-214154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33069',
internalId:  '',
customField: '20050907-154700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63279',
internalId:  '',
customField: '20060213-141342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68936',
internalId:  '',
customField: '20060408-001711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39035',
internalId:  '',
customField: '20071130-151255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47223',
internalId:  '',
customField: '20051001-113703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91623',
internalId:  '',
customField: '20091109-130303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20110718-222002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20110609-223351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50046',
internalId:  '',
customField: '20091109-130405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52652',
internalId:  '',
customField: '20091109-130608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52679',
internalId:  '',
customField: '20051203-145456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52706',
internalId:  '',
customField: '20051203-164754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8002',
internalId:  '',
customField: '20091109-130725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8003',
internalId:  '',
customField: '20050710-154531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15334',
internalId:  '',
customField: '20050821-110632'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN2HHS';
var companyName   = 'www.fernweh.cc';
var htmlTitle	  = 'Fernweh+-+Seite';
var metaKeywords  = 'reiseberichte%2C+fotos%2C+Thailand%2C+Aruba%2C+Cura%C3%A7ao%2C+Schweiz%2C+Reisefotos%2C+Urlaub%2C+Asien%2C+fernweh%2C+Fotos%2C+Rom%2C+Prag%2C+Malediven%2C+Fihalhohi%2C+Flugzeuge%2C+Unterwasserfotos%2C+Kochrezepte%2C+';
var metaContents  = 'reiseberichte%2C+fotos%2C+Thailand%2C+Aruba%2C+Cura%C3%A7ao%2C+Schweiz%2C+Reisefotos%2C+Urlaub%2C+Asien%2C+fernweh%2C+Fotos%2C+Rom%2C+Prag%2C+Malediven%2C+Fihalhohi%2C+Flugzeuge%2C+Unterwasserfotos%2C+Kochrezepte%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();
};

