/* [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','401',jdecode('Willkommen%21+'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('Gespr%C3%A4che+in+Stresa'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','494',jdecode('Pauschalpreise'),jdecode(''),'/452/494.html','true',[],'',''],
		['PAGE','12301',jdecode('Tagesablauf+LF+2011'),jdecode(''),'/452/12301.html','true',[],'',''],
		['PAGE','9001',jdecode('Anreise+nach+Stresa'),jdecode(''),'/452/9001.html','true',[],'',''],
		['PAGE','473',jdecode('Themen+2011+im+Detail'),jdecode(''),'/452/473.html','true',[],'',''],
		['PAGE','17701',jdecode('Materialien+LF+2011'),jdecode(''),'/452/17701.html','true',[],'','']
	],'',''],
	['PAGE','86901',jdecode('Angebot+Gruppen'),jdecode(''),'/86901.html','true',[],'',''],
	['PAGE','515',jdecode('Fahrpl%C3%A4ne'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','557',jdecode('Kontakt%2C+Reservation'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','51601',jdecode('Urs+von+der+Crone'),jdecode(''),'/51601.html','true',[],'',''],
	['PAGE','578',jdecode('Impressum'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','11401',jdecode('Partner'),jdecode(''),'/578/11401.html','true',[],'','']
	],'',''],
	['PAGE','78601',jdecode('Kreuzfahrt'),jdecode(''),'/78601.html','true',[],'',''],
	['PAGE','78622',jdecode('Facebook'),jdecode(''),'/78622.html','true',[],'',''],
	['PAGE','70801',jdecode('Archiv'),jdecode(''),'/70801/index.html','true',[ 
		['PAGE','33601',jdecode('Themenfahrten'),jdecode(''),'/70801/33601.html','true',[],'',''],
		['PAGE','44801',jdecode('Buchung+Themenfahrt'),jdecode(''),'/70801/44801.html','true',[],'',''],
		['PAGE','11422',jdecode('Lago+Maggiore'),jdecode(''),'/70801/11422.html','true',[],'',''],
		['PAGE','56701',jdecode('Projekte+in+Planung'),jdecode(''),'/70801/56701.html','true',[],'',''],
		['PAGE','54101',jdecode('Lesekreis+Latein+TI'),jdecode(''),'/70801/54101.html','true',[],'',''],
		['PAGE','26401',jdecode('Projekt+Boccaccio'),jdecode(''),'/70801/26401.html','true',[],'',''],
		['PAGE','31801',jdecode('Ausschreibung+B...'),jdecode(''),'/70801/31801.html','true',[],'','']
	],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Fellow';
theSitetree.paletteFamily='FF9600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10416';
theSitetree.graphicsetId='10694';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fellow',
				paletteFamily: 	'FF9600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10416',
				graphicsetId: 	'10694',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1313']={
webappId:    '7008',
documentId:  '557',
internalId:  '1313',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '9001',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['7008']=webappMappings['7008-1314']={
webappId:    '7008',
documentId:  '44801',
internalId:  '1314',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100813-115838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100807-223118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100722-135946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100807-220531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20100807-223330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20100122-183213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20100722-140228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33601',
internalId:  '',
customField: '20091023-161516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44801',
internalId:  '',
customField: '20081002-104725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86901',
internalId:  '',
customField: '20100115-091847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100807-222122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11422',
internalId:  '',
customField: '20091023-161643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51601',
internalId:  '',
customField: '20091125-181517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20091028-081905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20091123-132633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20091029-174428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56701',
internalId:  '',
customField: '20081113-085752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54101',
internalId:  '',
customField: '20081026-154237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20080812-115154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20080811-083302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78622',
internalId:  '',
customField: '20091123-132554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70801',
internalId:  '',
customField: '20100722-125642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78601',
internalId:  '',
customField: '20091118-093548'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2EER';
var companyName   = 'THEMEN+-+FAHRTEN+';
var htmlTitle	  = 'Themenfahrten+und+Literarische+Ferien+am+Lago+Maggiore';
var metaKeywords  = 'Literatur++Lago+Maggiore++Stresa++Tessin++Piemont++Lombardei++Vortragsreihe++Literarische+Immersion++Goethe++Roth++Medea++Proust';
var metaContents  = 'Programme+der+Literarischen+Ferien+am+Lago+Maggiore';
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();
};
