/* [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','4654',jdecode('1823+-+1869'),jdecode(''),'/4654/index.html','true',[ 
		['PAGE','10928',jdecode('Lac+L%C3%A9man'),jdecode(''),'/4654/10928.html','true',[],'',''],
		['PAGE','44336',jdecode('Juraseen'),jdecode(''),'/4654/44336.html','true',[],'',''],
		['PAGE','44363',jdecode('Berner+Oberland'),jdecode(''),'/4654/44363.html','true',[],'',''],
		['PAGE','44390',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/4654/44390.html','true',[],'',''],
		['PAGE','44417',jdecode('Z%C3%BCrichsee'),jdecode(''),'/4654/44417.html','true',[],'',''],
		['PAGE','44444',jdecode('Bodensee'),jdecode(''),'/4654/44444.html','true',[],'',''],
		['PAGE','44471',jdecode('%C3%9Cbrige+Seen'),jdecode(''),'/4654/44471.html','true',[],'','']
	],'',''],
	['PAGE','4681',jdecode('1870+-+1894'),jdecode(''),'/4681/index.html','true',[ 
		['PAGE','11204',jdecode('Lac+L%C3%A9man'),jdecode(''),'/4681/11204.html','true',[],'',''],
		['PAGE','44809',jdecode('Juraseen'),jdecode(''),'/4681/44809.html','true',[],'',''],
		['PAGE','44836',jdecode('Berner+Oberland'),jdecode(''),'/4681/44836.html','true',[],'',''],
		['PAGE','44863',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/4681/44863.html','true',[],'',''],
		['PAGE','44890',jdecode('Z%C3%BCrichsee'),jdecode(''),'/4681/44890.html','true',[],'',''],
		['PAGE','44917',jdecode('Bodensee'),jdecode(''),'/4681/44917.html','true',[],'',''],
		['PAGE','44944',jdecode('%C3%9Cbrige+Seen'),jdecode(''),'/4681/44944.html','true',[],'','']
	],'',''],
	['PAGE','4708',jdecode('1895+-+1914'),jdecode(''),'/4708/index.html','true',[ 
		['PAGE','11231',jdecode('Lac+L%C3%A9man'),jdecode(''),'/4708/11231.html','true',[],'',''],
		['PAGE','50489',jdecode('Juraseen'),jdecode(''),'/4708/50489.html','true',[],'',''],
		['PAGE','50516',jdecode('Berner+Oberland'),jdecode(''),'/4708/50516.html','true',[],'',''],
		['PAGE','50543',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/4708/50543.html','true',[],'',''],
		['PAGE','50570',jdecode('Z%C3%BCrichsee'),jdecode(''),'/4708/50570.html','true',[],'',''],
		['PAGE','50597',jdecode('Bodensee'),jdecode(''),'/4708/50597.html','true',[],'',''],
		['PAGE','50624',jdecode('%C3%9Cbrige+Seen'),jdecode(''),'/4708/50624.html','true',[],'','']
	],'',''],
	['PAGE','4735',jdecode('1915+-+1930'),jdecode(''),'/4735/index.html','true',[ 
		['PAGE','11258',jdecode('Lac+L%C3%A9man'),jdecode(''),'/4735/11258.html','true',[],'',''],
		['PAGE','50875',jdecode('Juraseen'),jdecode(''),'/4735/50875.html','true',[],'',''],
		['PAGE','50902',jdecode('Berner+Oberland'),jdecode(''),'/4735/50902.html','true',[],'',''],
		['PAGE','50929',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/4735/50929.html','true',[],'',''],
		['PAGE','50956',jdecode('Z%C3%BCrichsee'),jdecode(''),'/4735/50956.html','true',[],'',''],
		['PAGE','50983',jdecode('Bodensee'),jdecode(''),'/4735/50983.html','true',[],'',''],
		['PAGE','51010',jdecode('%C3%9Cbrige+Seen'),jdecode(''),'/4735/51010.html','true',[],'','']
	],'',''],
	['PAGE','4762',jdecode('1931+-+1950'),jdecode(''),'/4762/index.html','true',[ 
		['PAGE','11285',jdecode('Lac+L%C3%A9man'),jdecode(''),'/4762/11285.html','true',[],'',''],
		['PAGE','51261',jdecode('Juraseen'),jdecode(''),'/4762/51261.html','true',[],'',''],
		['PAGE','51288',jdecode('Berner+Oberland'),jdecode(''),'/4762/51288.html','true',[],'',''],
		['PAGE','51315',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/4762/51315.html','true',[],'',''],
		['PAGE','51342',jdecode('Z%C3%BCrichsee'),jdecode(''),'/4762/51342.html','true',[],'',''],
		['PAGE','51369',jdecode('Bodensee'),jdecode(''),'/4762/51369.html','true',[],'',''],
		['PAGE','51396',jdecode('%C3%9Cbrige+Seen'),jdecode(''),'/4762/51396.html','true',[],'','']
	],'',''],
	['PAGE','64789',jdecode('Trajekt'),jdecode(''),'/64789/index.html','true',[ 
		['PAGE','65489',jdecode('Bodensee+1'),jdecode(''),'/64789/65489.html','true',[],'',''],
		['PAGE','66589',jdecode('Bodensee+2'),jdecode(''),'/64789/66589.html','true',[],'',''],
		['PAGE','65516',jdecode('Thunersee'),jdecode(''),'/64789/65516.html','true',[],'',''],
		['PAGE','65543',jdecode('Vierwaldst%C3%A4ttersee'),jdecode(''),'/64789/65543.html','true',[],'',''],
		['PAGE','65570',jdecode('Z%C3%BCrichsee'),jdecode(''),'/64789/65570.html','true',[],'','']
	],'',''],
	['PAGE','9343',jdecode('Links'),jdecode(''),'/9343.html','true',[],'',''],
	['PAGE','9859',jdecode('Literatur'),jdecode(''),'/9859.html','true',[],'',''],
	['PAGE','9624',jdecode('Site+history'),jdecode(''),'/9624.html','true',[],'',''],
	['PAGE','10502',jdecode('G%C3%A4stebuch'),jdecode(''),'/10502/index.html','true',[ 
		['PAGE','10503',jdecode('Eintr%C3%A4ge'),jdecode(''),'/10502/10503.html','false',[],'','']
	],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10571';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='692643';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10571',
				graphicsetId: 	'10771',
				contentColor: 	'692643',
				contentBGColor: 'F0F2F4',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9343',
internalId:  '',
customField: '20100105-190840'
};
webappMappings['1002']=webappMappings['1002-10502ABW0X0INX2BP']={
webappId:    '1002',
documentId:  '10502',
internalId:  '10502ABW0X0INX2BP',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20090701-203239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4708',
internalId:  '',
customField: '20050314-190607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50489',
internalId:  '',
customField: '20090701-201809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4654',
internalId:  '',
customField: '20050314-190710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10928',
internalId:  '',
customField: '20051205-175816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44336',
internalId:  '',
customField: '20050314-190814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44363',
internalId:  '',
customField: '20051206-190209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44390',
internalId:  '',
customField: '20051127-191545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44417',
internalId:  '',
customField: '20051127-190534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44444',
internalId:  '',
customField: '20060209-185535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44471',
internalId:  '',
customField: '20050119-210652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4681',
internalId:  '',
customField: '20050304-155725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11204',
internalId:  '',
customField: '20060124-182711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44809',
internalId:  '',
customField: '20051213-193058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44836',
internalId:  '',
customField: '20051213-193255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44863',
internalId:  '',
customField: '20051213-193558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44890',
internalId:  '',
customField: '20051213-193736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44917',
internalId:  '',
customField: '20060209-193049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44944',
internalId:  '',
customField: '20050214-190806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11231',
internalId:  '',
customField: '20090901-084751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50516',
internalId:  '',
customField: '20051215-214023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50543',
internalId:  '',
customField: '20051127-185023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50570',
internalId:  '',
customField: '20051206-191549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50597',
internalId:  '',
customField: '20050508-185258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50624',
internalId:  '',
customField: '20050130-073117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4735',
internalId:  '',
customField: '20050107-173351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11258',
internalId:  '',
customField: '20041219-214642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50875',
internalId:  '',
customField: '20050130-073655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50902',
internalId:  '',
customField: '20050130-073655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50929',
internalId:  '',
customField: '20050130-073655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50956',
internalId:  '',
customField: '20050130-073655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50983',
internalId:  '',
customField: '20050508-183114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51010',
internalId:  '',
customField: '20050130-073655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4762',
internalId:  '',
customField: '20050107-173513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11285',
internalId:  '',
customField: '20041219-214642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51261',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51288',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51315',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51342',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51369',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51396',
internalId:  '',
customField: '20050130-074218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64789',
internalId:  '',
customField: '20060506-184637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65489',
internalId:  '',
customField: '20060729-175544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66589',
internalId:  '',
customField: '20060516-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65516',
internalId:  '',
customField: '20060726-183745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65543',
internalId:  '',
customField: '20060508-171308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65570',
internalId:  '',
customField: '20060508-171416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9859',
internalId:  '',
customField: '20050129-082919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9624',
internalId:  '',
customField: '20090701-202443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10502',
internalId:  '',
customField: '20041219-214426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10503',
internalId:  '',
customField: '20041219-182819'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2BP';
var companyName   = 'Geschichte+der+Schifffahrt+in+der+Schweiz';
var htmlTitle	  = 'Geschichte+der+Schifffahrt+in+der+Schweiz';
var metaKeywords  = 'Schiff%2C+Schiffe%2C+Schifffahrt%2C+Schweiz%2C+Geschichte%2C+Dampfschiff%2C+Thunersee%2C+Brienzersee%2C+Bielersee%2C+Vierwaldst%C3%A4ttersee%2C+Z%C3%BCrichsee%2C+Bodensee%2C+DS%2C+MS%2C+Halbsalondampfer%2C+Salondampfer%2C+Glattdecker%2C+Motorschiff%2C+Lac+L%C3%A9man%2C+Juraseen';
var metaContents  = 'Geschichte+der+Schifffahrt+in+der+Schweiz+in+Bild+und+Text';
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();
};
