/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','129143',jdecode('News'),jdecode(''),'/129143.html','true',[],'',''],
	['PAGE','48701',jdecode('Termine'),jdecode(''),'/48701.html','true',[],'',''],
	['PAGE','306243',jdecode('Planned'),jdecode(''),'/306243.html','true',[],'',''],
	['PAGE','235843',jdecode('Auktion+28'),jdecode(''),'/235843/index.html','true',[ 
		['PAGE','285543',jdecode('Kapitel+1'),jdecode(''),'/235843/285543.html','true',[],'',''],
		['PAGE','285564',jdecode('Kapitel+2'),jdecode(''),'/235843/285564.html','true',[],'',''],
		['PAGE','285585',jdecode('Kapitel+3'),jdecode(''),'/235843/285585.html','true',[],'',''],
		['PAGE','285606',jdecode('Kapitel+4'),jdecode(''),'/235843/285606.html','true',[],'',''],
		['PAGE','285627',jdecode('Kapitel+5'),jdecode(''),'/235843/285627.html','true',[],'',''],
		['PAGE','285648',jdecode('Kapitel+6'),jdecode(''),'/235843/285648.html','true',[],'',''],
		['PAGE','285669',jdecode('Kapitel+7'),jdecode(''),'/235843/285669.html','true',[],'',''],
		['PAGE','285690',jdecode('Kapitel+8'),jdecode(''),'/235843/285690.html','true',[],'',''],
		['PAGE','285711',jdecode('Kapitel+9'),jdecode(''),'/235843/285711.html','true',[],'',''],
		['PAGE','285732',jdecode('Kapitel+10'),jdecode(''),'/235843/285732.html','true',[],'',''],
		['PAGE','285753',jdecode('Kapitel+11'),jdecode(''),'/235843/285753.html','true',[],'',''],
		['PAGE','285774',jdecode('Kapitel+12'),jdecode(''),'/235843/285774.html','true',[],'',''],
		['PAGE','289943',jdecode('Kapitel+13'),jdecode(''),'/235843/289943.html','true',[],'',''],
		['PAGE','289964',jdecode('Kapitel+14'),jdecode(''),'/235843/289964.html','true',[],'','']
	],'',''],
	['PAGE','315243',jdecode('Nachbericht'),jdecode(''),'/315243.html','true',[],'',''],
	['PAGE','315343',jdecode('Post-Sale+Report'),jdecode(''),'/315343.html','true',[],'',''],
	['PAGE','256443',jdecode('Aktuelle+Angebote'),jdecode(''),'/256443.html','false',[],'',''],
	['PAGE','223443',jdecode('Antiquit%C3%A4ten'),jdecode(''),'/223443.html','true',[],'',''],
	['PAGE','306264',jdecode('Antiques'),jdecode(''),'/306264.html','true',[],'',''],
	['PAGE','161243',jdecode('Kinderb%C3%BCcher'),jdecode(''),'/161243.html','true',[],'',''],
	['PAGE','225343',jdecode('Sch%C3%A4tzungen'),jdecode(''),'/225343.html','true',[],'',''],
	['PAGE','303143',jdecode('Appraisals'),jdecode(''),'/303143.html','true',[],'',''],
	['PAGE','210843',jdecode('Formulare+%2F+Forms'),jdecode(''),'/210843/index.html','true',[ 
		['PAGE','25401',jdecode('Bieterformular'),jdecode(''),'/210843/25401.html','true',[],'',''],
		['PAGE','25801',jdecode('Absentee+bid+form'),jdecode(''),'/210843/25801.html','true',[],'','']
	],'',''],
	['PAGE','1114',jdecode('Bedingungen+%2F+Terms'),jdecode(''),'/1114/index.html','true',[ 
		['PAGE','24901',jdecode('Annahmebedingungen'),jdecode(''),'/1114/24901.html','true',[],'',''],
		['PAGE','24301',jdecode('Terms+of+Auction'),jdecode(''),'/1114/24301.html','true',[],'',''],
		['PAGE','24922',jdecode('Terms+and+Conditions+of+Acceptance+of+the+Auction'),jdecode(''),'/1114/24922.html','true',[],'','']
	],'',''],
	['PAGE','131743',jdecode('Gesucht'),jdecode(''),'/131743.html','true',[],'',''],
	['PAGE','310143',jdecode('Desired'),jdecode(''),'/310143.html','true',[],'',''],
	['PAGE','98701',jdecode('Kunsttreuhand'),jdecode(''),'/98701.html','true',[],'',''],
	['PAGE','303443',jdecode('Art+Trust'),jdecode(''),'/303443.html','true',[],'',''],
	['PAGE','134243',jdecode('Anfahrt+%2F+Arrival'),jdecode(''),'/134243.html','true',[],'',''],
	['PAGE','1135',jdecode('Contact+%2F+Imprint'),jdecode(''),'/1135/index.html','true',[ 
		['PAGE','1177',jdecode('So+finden+Sie+uns%2F+How+you+can+find+us'),jdecode(''),'/1135/1177.html','true',[],'','']
	],'',''],
	['PAGE','302243',jdecode('Disclaimer'),jdecode(''),'/302243.html','true',[],'',''],
	['PAGE','37701',jdecode('Links'),jdecode(''),'/37701.html','true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='C63C41';
theSitetree.keyvisualId='3362';
theSitetree.keyvisualName='kv_3362.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10736';
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: 			'Eatdrink',
				paletteFamily: 	'C63C41',
				keyvisualId: 	'3362',
				keyvisualName: 	'kv_3362.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10736',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4E1416',
				e_color: 		'4E1416',
				f_color: 		'4E1416',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100712-144932'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285606',
internalId:  '',
customField: '20100820-133341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285627',
internalId:  '',
customField: '20100707-142552'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '134243',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-7988896']={
webappId:    '1501',
documentId:  '601',
internalId:  '7988896',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161243',
internalId:  '',
customField: '20100712-145140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129143',
internalId:  '',
customField: '20100727-135516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289964',
internalId:  '',
customField: '20100627-124038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285732',
internalId:  '',
customField: '20100727-132435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285753',
internalId:  '',
customField: '20100820-133536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256443',
internalId:  '',
customField: '20100512-155347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '235843',
internalId:  '',
customField: '20100603-120707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285648',
internalId:  '',
customField: '20100627-121058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285669',
internalId:  '',
customField: '20100727-132337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285690',
internalId:  '',
customField: '20100707-142855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285711',
internalId:  '',
customField: '20100820-133416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285543',
internalId:  '',
customField: '20100707-142030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285564',
internalId:  '',
customField: '20100727-132133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285585',
internalId:  '',
customField: '20100820-133303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131743',
internalId:  '',
customField: '20100714-110157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20070615-125049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20061026-163045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1114',
internalId:  '',
customField: '20100820-163719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20100820-165028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100820-165449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24922',
internalId:  '',
customField: '20100824-145843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20100902-114552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20100607-145204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98701',
internalId:  '',
customField: '20100712-115908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1135',
internalId:  '',
customField: '20100712-144606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1177',
internalId:  '',
customField: '20100707-141706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134243',
internalId:  '',
customField: '20100707-144159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '225343',
internalId:  '',
customField: '20100707-120204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285774',
internalId:  '',
customField: '20100707-143638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223443',
internalId:  '',
customField: '20100712-145040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210843',
internalId:  '',
customField: '20090602-114804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289943',
internalId:  '',
customField: '20100707-143612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302243',
internalId:  '',
customField: '20100706-171921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303143',
internalId:  '',
customField: '20100712-145221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303443',
internalId:  '',
customField: '20100707-121841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '306243',
internalId:  '',
customField: '20100902-114617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '306264',
internalId:  '',
customField: '20100712-113253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '310143',
internalId:  '',
customField: '20100714-105853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315243',
internalId:  '',
customField: '20100727-133844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315343',
internalId:  '',
customField: '20100727-134610'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN254L';
var companyName   = 'Falk+Auktionen';
var htmlTitle	  = 'Falk%2C+Buch-+und+Grafikantiquariat%2C+Auktionen+-+Rare+Book+and+Art+Auctions+Zurich';
var metaKeywords  = 'Auktionskatalog%2C+Alte+Drucke%2C+Bibeln%2C+Theologie%2C+Autographen%2C+Widmungsexemplare%2C+Handschriften%2C+Geschichte%2C+Napoleonica%2C+Rechtsgeschichte%2C+Reisen%2C+Expeditionen%2C+Geographie%2C+Sport%2C+Landkarten%2C+Helvetica%2C+F%C3%BCrstentum+Liechtenstein%2C+Naturwissenschaften%2C+Jagd%2C+Medizin%2C+Technik%2C+Literatur%2C+Philosophie%2C+Bibliophilie%2C+Kunstwissenschaften%2C+Kulturgeschichte%2C+Buchwesen%2C+Musik%2C+Grafik%2C+Gem%C3%A4lde%2C+Zeichnungen%2C+Altes+Glas%2C+Antiquit%C3%A4ten%2C+Hagenauer%2C+Falk%2BFalk%2C+%0D%0Aauctioncatalogue%2C+rare+books%2C+bibles%2C+theology%2C+autographs%2C+dedications%2C+manuscripts%2C+handwritings%2C+history%2C+napolonica%2C+history+of+laws%2C+travels%2C+expeditions%2C+geography%2C+sports%2C+maps%2C+natural+siences%2C+hunting%2C+cultures%2C+medicine%2C+technics%2C+literature%2C+philosophy%2C+bibliophile%2C+history+of+arts%2C+history+of+books%2C+bibliography%2C+music%2C+graphics%2C+paintings%2C+drawings%2C+old+glass%2C+antiques';
var metaContents  = 'Antiquariat%2C+antiquarian+bookshop%2C+Auktionshaus%2C+Auktionen%2C+auctions%2C+Galerie%2C+Gallery%2C+Kunsthandel%2C+Art+Dealers%2C+Sch%C3%A4tzungen%2C+valuations%2C+appraisals%2C+Kommission%2C+Consignement%2C+Expertisen%2C+Experts%2C+Art+Historian%2C+Rare+Books%2C+Arts%2C+Arts+on+paper%2C+Paintings%2C+Bookauctions%2C+Antiques%2C+Kunsttreuhand%2C+Art+Trust%2C+Invenatrisation%2C+Inventary%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();
};
