/* [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(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','129143',jdecode('News'),jdecode(''), jdecode('%2F129143.html'), 'true',[],'',''],
	['PAGE','48701',jdecode('Termine'),jdecode(''), jdecode('%2F48701.html'), 'true',[],'',''],
	['PAGE','306243',jdecode('Planned'),jdecode(''), jdecode('%2F306243.html'), 'true',[],'',''],
	['PAGE','235843',jdecode('Nachverkauf+A-31'),jdecode(''), jdecode('%2F235843%2Findex.html'), 'false',[ 
		['PAGE','343043',jdecode('Kapitel+1'),jdecode(''), jdecode('%2F235843%2F343043.html'), 'true',[],'',''],
		['PAGE','343064',jdecode('Kapitel+2'),jdecode(''), jdecode('%2F235843%2F343064.html'), 'true',[],'',''],
		['PAGE','343085',jdecode('Kapitel+3'),jdecode(''), jdecode('%2F235843%2F343085.html'), 'true',[],'',''],
		['PAGE','343106',jdecode('Kapitel+4'),jdecode(''), jdecode('%2F235843%2F343106.html'), 'true',[],'',''],
		['PAGE','343127',jdecode('Kapitel+5'),jdecode(''), jdecode('%2F235843%2F343127.html'), 'true',[],'',''],
		['PAGE','343148',jdecode('Kapitel+6'),jdecode(''), jdecode('%2F235843%2F343148.html'), 'true',[],'',''],
		['PAGE','343169',jdecode('Kapitel+7'),jdecode(''), jdecode('%2F235843%2F343169.html'), 'true',[],'',''],
		['PAGE','343190',jdecode('Kapitel+8'),jdecode(''), jdecode('%2F235843%2F343190.html'), 'true',[],'',''],
		['PAGE','343211',jdecode('Kapitel+9'),jdecode(''), jdecode('%2F235843%2F343211.html'), 'true',[],'',''],
		['PAGE','343232',jdecode('Kapitel+10'),jdecode(''), jdecode('%2F235843%2F343232.html'), 'true',[],'',''],
		['PAGE','343253',jdecode('Kapitel+11'),jdecode(''), jdecode('%2F235843%2F343253.html'), 'true',[],'',''],
		['PAGE','346443',jdecode('Kapitel+12'),jdecode(''), jdecode('%2F235843%2F346443.html'), 'true',[],'',''],
		['PAGE','343274',jdecode('Kapitel+13'),jdecode(''), jdecode('%2F235843%2F343274.html'), 'true',[],'','']
	],'',''],
	['PAGE','315243',jdecode('Nachbericht'),jdecode(''), jdecode('%2F315243.html'), 'false',[],'',''],
	['PAGE','315343',jdecode('Post-Sale+Report'),jdecode(''), jdecode('%2F315343.html'), 'false',[],'',''],
	['PAGE','256443',jdecode('Aktuelle+Angebote'),jdecode(''), jdecode('%2F256443.html'), 'false',[],'',''],
	['PAGE','223443',jdecode('Antiquit%C3%A4ten'),jdecode(''), jdecode('%2F223443.html'), 'true',[],'',''],
	['PAGE','306264',jdecode('Antiques'),jdecode(''), jdecode('%2F306264.html'), 'true',[],'',''],
	['PAGE','161243',jdecode('Kinderb%C3%BCcher'),jdecode(''), jdecode('%2F161243.html'), 'true',[],'',''],
	['PAGE','225343',jdecode('Sch%C3%A4tzungen'),jdecode(''), jdecode('%2F225343.html'), 'true',[],'',''],
	['PAGE','303143',jdecode('Appraisals'),jdecode(''), jdecode('%2F303143.html'), 'true',[],'',''],
	['PAGE','210843',jdecode('Formulare+%2F+Forms'),jdecode(''), jdecode('%2F210843%2Findex.html'), 'true',[ 
		['PAGE','25401',jdecode('Bieterformular'),jdecode(''), jdecode('%2F210843%2F25401.html'), 'true',[],'',''],
		['PAGE','25801',jdecode('Absentee+bid+form'),jdecode(''), jdecode('%2F210843%2F25801.html'), 'true',[],'','']
	],'',''],
	['PAGE','1114',jdecode('Bedingungen+%2F+Terms'),jdecode(''), jdecode('%2F1114%2Findex.html'), 'true',[ 
		['PAGE','24901',jdecode('Annahmebedingungen'),jdecode(''), jdecode('%2F1114%2F24901.html'), 'true',[],'',''],
		['PAGE','24301',jdecode('Terms+of+Auction'),jdecode(''), jdecode('%2F1114%2F24301.html'), 'true',[],'',''],
		['PAGE','24922',jdecode('Terms+and+Conditions+of+Acceptance+of+the+Auction'),jdecode(''), jdecode('%2F1114%2F24922.html'), 'true',[],'','']
	],'',''],
	['PAGE','131743',jdecode('Gesucht'),jdecode(''), jdecode('%2F131743.html'), 'true',[],'',''],
	['PAGE','310143',jdecode('Desired'),jdecode(''), jdecode('%2F310143.html'), 'true',[],'',''],
	['PAGE','98701',jdecode('Kunsttreuhand'),jdecode(''), jdecode('%2F98701.html'), 'false',[],'',''],
	['PAGE','303443',jdecode('Art+Trust'),jdecode(''), jdecode('%2F303443.html'), 'false',[],'',''],
	['PAGE','134243',jdecode('Anfahrt+%2F+Arrival'),jdecode(''), jdecode('%2F134243.html'), 'true',[],'',''],
	['PAGE','1135',jdecode('Contact+%2F+Imprint'),jdecode(''), jdecode('%2F1135%2Findex.html'), 'true',[ 
		['PAGE','1177',jdecode('So+finden+Sie+uns%2F+How+you+can+find+us'),jdecode(''), jdecode('%2F1135%2F1177.html'), 'true',[],'','']
	],'',''],
	['PAGE','302243',jdecode('Disclaimer'),jdecode(''), jdecode('%2F302243.html'), 'true',[],'',''],
	['PAGE','37701',jdecode('Links'),jdecode(''), jdecode('%2F37701.html'), 'true',[],'','']];
var siteelementCount=42;
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 prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
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: '20120206-135801'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343274',
internalId:  '',
customField: '20111123-112732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343253',
internalId:  '',
customField: '20111216-131942'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '134243',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161243',
internalId:  '',
customField: '20100712-145140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129143',
internalId:  '',
customField: '20111110-102155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343169',
internalId:  '',
customField: '20111216-132026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343190',
internalId:  '',
customField: '20111110-100105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256443',
internalId:  '',
customField: '20100512-155347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '235843',
internalId:  '',
customField: '20111021-140118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343211',
internalId:  '',
customField: '20111123-112815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343043',
internalId:  '',
customField: '20111216-131841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343064',
internalId:  '',
customField: '20111108-104818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343085',
internalId:  '',
customField: '20111108-105756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343106',
internalId:  '',
customField: '20111108-110037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343127',
internalId:  '',
customField: '20111108-110659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343148',
internalId:  '',
customField: '20111216-132523'
};
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: '20111216-132243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20110117-135648'
};
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:  '343232',
internalId:  '',
customField: '20111216-131858'
};
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:  '223443',
internalId:  '',
customField: '20100712-145040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210843',
internalId:  '',
customField: '20090602-114804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346443',
internalId:  '',
customField: '20111021-115436'
};
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: '20111216-132257'
};
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: '20110426-142223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315343',
internalId:  '',
customField: '20110426-144036'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
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();
};

