/* [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','4556',jdecode('Startseite%2C+Kontakt%2C+Gesch%C3%A4ft'),jdecode(''),'/4556/index.html','true',[ 
		['PAGE','189252',jdecode('Startseite%2C+Kontakt%2C+Gesch%C3%A4ft+%28Folgeseite%29'),jdecode(''),'/4556/189252.html','false',[],'','']
	],'',''],
	['PAGE','10362',jdecode('Schl%C3%B6sser+Schl%C3%BCssel+Schmiedeeisen'),jdecode(''),'/10362.html','true',[],'',''],
	['PAGE','4640',jdecode('Lampen+alle+Arten'),jdecode(''),'/4640.html','true',[],'',''],
	['PAGE','4613',jdecode('Uhren%2C+Schmuck'),jdecode(''),'/4613.html','true',[],'',''],
	['PAGE','10416',jdecode('Kunst+Bilder+Figuren'),jdecode(''),'/10416.html','true',[],'',''],
	['PAGE','10389',jdecode('Glas+Porz.+M%C3%B6bel+Spiegel'),jdecode(''),'/10389.html','true',[],'',''],
	['PAGE','189652',jdecode('Volkskunst+Berufe+Handwerk'),jdecode(''),'/189652.html','true',[],'',''],
	['PAGE','189673',jdecode('Masse+Waagen+Spielsachen'),jdecode(''),'/189673.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='1286';
theSitetree.keyvisualName='antikes.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='231';
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: 			'Profile',
				paletteFamily: 	'336699',
				keyvisualId: 	'1286',
				keyvisualName: 	'antikes.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'231',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'336699',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10362',
internalId:  '',
customField: '20100224-130928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189252',
internalId:  '',
customField: '20080911-211834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20080915-143808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20100219-190109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4613',
internalId:  '',
customField: '20100224-131322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10416',
internalId:  '',
customField: '20100228-174439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10389',
internalId:  '',
customField: '20091217-204322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189652',
internalId:  '',
customField: '20100303-162527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189673',
internalId:  '',
customField: '20100211-202612'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4556',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '189252',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10362',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4640',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4613',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10416',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10389',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '189652',
internalId:  '',
customField: 'language:de;country:CH;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '189673',
internalId:  '',
customField: 'language:de;country:CH;'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'Ahp010IN24L0';
var companyName   = 'www.antik-sammeln.ch';
var htmlTitle	  = '';
var metaKeywords  = 'antik%2C+sammeln%2C+antiques%2C+antichit%C3%A0%2C+antiquedades%2C+collectibles%2C+Ansichtskarten%2C+Stiche%2C+Bilder%2C+quadri%2C+paintings%2C+tableaux%2C+Glas%2C+vetri%2C+cristal%2C+glass%2C+Porzellan%2C+porcellain%2C+porcellana%2C+portacandela%2C+candlesticks%2C+Leuchter%2C+l%C3%A0mpada%2C+Laternen%2C+Lampen%2C+lamps%2C+Oellampen%2C+Kienspanhalter%2C+Talglicht%2C+ferro+da+stiro%2C+Buegelgeraete%2C+Wolkenscheffel%2C+fer+%C3%A0+repasser%2C+iron%2C+writingtool%2C+occorrente+per+scrivere%2C+Schreibzeug%2C+Brillen%2C+occhiali%2C+lunettes%2C+spectacles%2C+Stickereien%2C+embroidery%2C+gioielli+da+costume%2C+Trachtenschmuck%2C+traditionel+jewelry%2C+orologio+da+tasca%2C+Taschenuhren%2C+pocket-watch%2C+montre%2C+Uhrketten%2C+pocket-watch-chain%2C+Armbanduhren%2C+orologio+da+polso%2C+wrist-watch%2C+mirrors%2C+Spiegel%2C+specchio%2C+78er+Schallplatten%2C+records%2C+Werkzeuge%2C+strumento%2C+utensile%2C+old+tools%2C+outils%2C+instruments%2C+temperino%2C+Taschenmesser%2C+couteau+de+poche%2C+pocket+knife%2C+christmas+decoration%2C+Christbaumschmuck%2C+bijoux+de+noel%2C+gioielli+di+natale%2C+Jagdliches%2C+hunting+items%2C+chocolate+tin%2C+Schokoformen%2C+Apothekergefaesse%2C+chemists+tools%2C+accendisigari%2C+Feuerzeuge%2C+briquets%2C+lighter%2C+scales%2C+Waagen%2C+balance%2C+bilancia%2C+weights%2C+Gewichte%2C+poid%2C+pesi%2C+geschmiedete+Gewichte%2C+Dezimalgewichte%2C+instruments+de+mesure%2C+nastro%2C+metrico%2C+measures%2C+Masse%2C+Metzgersachen%2C+oggetti+di+macellaio%2C+insruments+de+boucher%2C+butcher+tools%2C+cosi+da+cucire%2C+Naehzeug%2C+choses+pour+couturi%C3%A8re%2C+sewing+tools%2C+rosary%2C+Rosenkraenze%2C+Religioeses%2C+religious+things%2C+Kuehe%2C+wooden+cows%2C+alarm+clock%2C+Wecker%2C+Asiatica%2C+Barometer%2C+Uhren%2C+pendules%2C+Wanduhren%2C+Schwarzwaelderuhren%2C+Morezuhren%2C+Comtoise%2C+pendole%2C+wall+clocks%2C+locks%2C+serrure%2C+Schloesser%2C+serrature%2C+Schluessel%2C+antike+Schluessel%2C+chiave%2C+clefs%2C+keys%2C+padlocks%2C+Vorhaengeschloesser%2C+Kassetten%2C+Kofferschloesser%2C+cadenas%2C+lucchetto%2C+old+fittings%2C+Beschlaege%2C+wrought+iron%2C+Moebel%2C+anticchita%2C+antique+furniture%2C+beer+glasses%2C+Humpen%2C+Figuren%2C+figures%2C+bronze+figurine%2C+Broncen%2C+bronzo%2C+figura+di+bronzo%2C+Broschen%2C+brooches%2C+gioielli%2C+Schmuck%2C+Elfenbein%2C+ivory%2C+Pendulen%2C+pendules%2C+wrought+iron%2C+ferro+battuto%2C+f%C3%A8r+forg%C3%A9%2C+Schmiedeeisen%2C+objets+de+vertu%2C+Sammlerschluessel%2C+Kreuze%2C+croce%2C+Heiligenfiguren%2C+Marienkrone%2C+Silber%2C+Zinn%2C+pewter%2C+Messing%2C+Fernrohr%2C+Mikroskop%2C+Plakate%2C+Olten%2C+Schaffhausen%2C+Marienkrone%2C+Silber%2C+Krone%2C+Volkskunst%2C+Religioeses%2C+Ofenplatten%2C+Tabakspfeifen%2C+Raucherutensilien%2C+Feuerzeuge%2C+lighters%2C+Kupfer%2C+Schneiderofen%2C+Feuerwehr%2C+Kommandantenlaterne%2C+Arnegger+Alois%2C+Dilger+Richard%2C+Munzinger+Hans%2C+Pap+Gyula%2C+';
var metaContents  = 'Antikstuebli+DIE+ADRESSE+fuer+Sammler.+Antik.+Wir+wissen%2C+was+Antiquitaeten-+und+Kunstsammler+wuenschen%2C+weil+wir+selbst+Sammler+sind.+Wir+pflegen+die+verschiedensten+Sammelgebiete.+Fuer+alle+ist+etwas+dabei.+antik%2C+sammeln%2C+antiques%2C+locks%2C+keys%2C+padlocks%2C+Schloesser%2C+Schrankschloss%2C+Truhenschloss%2C+Tuerschloss%2C+Vorhaengeschloss%2C+Schloss%2C+schluessel%2C+chiave%2C+serrature%2C+sammeln%2C+collect%2C+Wanduhren%2C+wall+clocks%2C+pendole%2C+Lampen%2C+lampade%2C+Schmuck%2C+Uhren%2C+Armbanduhren%2C+wristwaches%2C+clocks%2C+Schmuck%2C+Volkskunst%2C+Technik%2C+Gemaelde%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();
};
