/* [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','1513',jdecode('Home'),jdecode(''),'/1513.html','true',[],'',''],
	['PAGE','24301',jdecode('Aktuell'),jdecode(''),'/24301.html','true',[],'',''],
	['PAGE','4828',jdecode('Szene+Schweiz'),jdecode(''),'/4828/index.html','true',[ 
		['PAGE','19901',jdecode('Vortr%C3%A4ge'),jdecode(''),'/4828/19901.html','true',[],'',''],
		['PAGE','7201',jdecode('Ausstellungen'),jdecode(''),'/4828/7201.html','true',[],'',''],
		['PAGE','7801',jdecode('Museen'),jdecode(''),'/4828/7801.html','true',[],'',''],
		['PAGE','7228',jdecode('Vereine'),jdecode(''),'/4828/7228.html','true',[],'','']
	],'',''],
	['PAGE','1705',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/1705/index.html','true',[ 
		['PAGE','1759',jdecode('Vorstand'),jdecode(''),'/1705/1759.html','true',[],'',''],
		['PAGE','1813',jdecode('Redaktionen'),jdecode(''),'/1705/1813.html','true',[],'',''],
		['PAGE','43101',jdecode('Ehrenmitglieder'),jdecode(''),'/1705/43101.html','true',[],'',''],
		['PAGE','28301',jdecode('Berichte'),jdecode(''),'/1705/28301.html','true',[],'',''],
		['PAGE','1732',jdecode('Geschichte'),jdecode(''),'/1705/1732.html','true',[],'','']
	],'',''],
	['PAGE','4409',jdecode('Mitglied+werden'),jdecode(''),'/4409.html','true',[],'',''],
	['PAGE','1597',jdecode('Zeitschriften'),jdecode(''),'/1597/index.html','true',[ 
		['PAGE','1786',jdecode('Editorial+Board'),jdecode(''),'/1597/1786.html','true',[],'',''],
		['PAGE','4301',jdecode('Mediendaten'),jdecode(''),'/1597/4301.html','true',[],'',''],
		['PAGE','4328',jdecode('Richtlinien'),jdecode(''),'/1597/4328.html','true',[],'',''],
		['PAGE','4355',jdecode('Abk%C3%BCrzungen'),jdecode(''),'/1597/4355.html','true',[],'','']
	],'',''],
	['PAGE','23701',jdecode('Monographien'),jdecode(''),'/23701/index.html','true',[ 
		['PAGE','25101',jdecode('Schweizer+Studien'),jdecode(''),'/23701/25101.html','true',[],'',''],
		['PAGE','25122',jdecode('Schweiz.+M%C3%BCnzkataloge'),jdecode(''),'/23701/25122.html','true',[],'',''],
		['PAGE','25143',jdecode('Typos'),jdecode(''),'/23701/25143.html','true',[],'',''],
		['PAGE','31901',jdecode('Einzelwerke'),jdecode(''),'/23701/31901.html','true',[],'','']
	],'',''],
	['PAGE','23401',jdecode('Numismatische+Tage'),jdecode(''),'/23401/index.html','true',[ 
		['PAGE','62501',jdecode('Solothurn+2010'),jdecode(''),'/23401/62501.html','true',[],'',''],
		['PAGE','1921',jdecode('Dijon+2009%3A+Bericht'),jdecode(''),'/23401/1921.html','true',[],'',''],
		['PAGE','17101',jdecode('Dijon+2009%3A+Abstracts'),jdecode(''),'/23401/17101.html','true',[],'','']
	],'',''],
	['PAGE','33001',jdecode('Online-Publikationen'),jdecode(''),'/33001/index.html','true',[ 
		['PAGE','4463',jdecode('Bibliographie'),jdecode(''),'/33001/4463.html','true',[],'',''],
		['PAGE','32422',jdecode('SNR'),jdecode(''),'/33001/32422.html','true',[],'',''],
		['PAGE','33401',jdecode('SM'),jdecode(''),'/33001/33401.html','true',[],'',''],
		['PAGE','35001',jdecode('Hauptst%C3%BCcke'),jdecode(''),'/33001/35001.html','true',[],'','']
	],'',''],
	['PAGE','1651',jdecode('Links'),jdecode(''),'/1651.html','true',[],'',''],
	['PAGE','1678',jdecode('Kontakt'),jdecode(''),'/1678/index.html','true',[ 
		['PAGE','6610',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/1678/6610.html','true',[],'','']
	],'',''],
	['PAGE','11501',jdecode('Fran%C3%A7ais'),jdecode(''),'/11501/index.html','true',[ 
		['PAGE','15301',jdecode('Publications'),jdecode(''),'/11501/15301.html','true',[],'',''],
		['PAGE','15322',jdecode('Devenir+membre'),jdecode(''),'/11501/15322.html','true',[],'','']
	],'',''],
	['PAGE','11522',jdecode('Italiano'),jdecode(''),'/11522/index.html','true',[ 
		['PAGE','15343',jdecode('Pubblicazioni'),jdecode(''),'/11522/15343.html','true',[],'',''],
		['PAGE','15364',jdecode('Divenire+membro'),jdecode(''),'/11522/15364.html','true',[],'','']
	],'',''],
	['PAGE','11543',jdecode('English'),jdecode(''),'/11543/index.html','true',[ 
		['PAGE','12248',jdecode('Publications'),jdecode(''),'/11543/12248.html','true',[],'',''],
		['PAGE','12269',jdecode('Becoming+member'),jdecode(''),'/11543/12269.html','true',[],'','']
	],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Mondrian';
theSitetree.paletteFamily='419328';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10711';
theSitetree.graphicsetId='10888';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='9C9C9D';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mondrian',
				paletteFamily: 	'419328',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10711',
				graphicsetId: 	'10888',
				contentColor: 	'FFFFFF',
				contentBGColor: '9C9C9D',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D3D3D3',
				e_color: 		'D3D3D3',
				f_color: 		'D3D3D3',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62501',
internalId:  '',
customField: '20100313-180431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100612-233958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1513',
internalId:  '',
customField: '20090825-102902'
};
webappMappings['7008']=webappMappings['7008-73']={
webappId:    '7008',
documentId:  '1678',
internalId:  '73',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4828',
internalId:  '',
customField: '20070317-122006'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1513',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20100304-230758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100304-231833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20091030-165054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7228',
internalId:  '',
customField: '20060906-234523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1705',
internalId:  '',
customField: '20080619-232032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1759',
internalId:  '',
customField: '20100629-213210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1813',
internalId:  '',
customField: '20091128-124234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20100612-233637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20090527-230727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1732',
internalId:  '',
customField: '20060906-184422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4409',
internalId:  '',
customField: '20091204-165947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1597',
internalId:  '',
customField: '20090715-113336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1786',
internalId:  '',
customField: '20090701-124834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20060906-232045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4328',
internalId:  '',
customField: '20090629-230221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4355',
internalId:  '',
customField: '20060907-012759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20080619-231632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20080909-234317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25122',
internalId:  '',
customField: '20080619-231800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25143',
internalId:  '',
customField: '20080619-231911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20070316-173705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20100304-234046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1921',
internalId:  '',
customField: '20090910-131440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20100304-230511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20070317-135938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4463',
internalId:  '',
customField: '20090404-192256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32422',
internalId:  '',
customField: '20090715-113931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20090715-005707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35001',
internalId:  '',
customField: '20070317-212815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1651',
internalId:  '',
customField: '20091119-163625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1678',
internalId:  '',
customField: '20060906-184621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6610',
internalId:  '',
customField: '20060906-184725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090702-152446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20060925-163556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20060925-170200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11522',
internalId:  '',
customField: '20090702-160219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20060925-155838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15364',
internalId:  '',
customField: '20060925-170234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11543',
internalId:  '',
customField: '20090702-160254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12248',
internalId:  '',
customField: '20060925-165331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12269',
internalId:  '',
customField: '20060925-170302'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010INEUFB';
var companyName   = 'SNG+-+Schweizerische+Numismatische+Gesellschaft';
var htmlTitle	  = 'Numisuisse+-+Schweizerische+Numismatische+Gesellschaft';
var metaKeywords  = 'Numismatik%3B+Numismatics%3B+Gesellschaften%3B+SAGW%3B+Dachverband%3B+Muenzgeschichte%3B+Geldgeschichte%3B+Schweiz';
var metaContents  = 'Profil+und+Pr%EF%BF%BDsentation+der+Schweizerischen+Numismatischen+Gesellschaft';
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();
};
