/* [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','4555',jdecode('HOME'),jdecode(''),'/4555.html','true',[],'',''],
	['PAGE','94039',jdecode('neueste+arbeiten'),jdecode(''),'/94039.html','true',[],'',''],
	['PAGE','102628',jdecode('park+der+unruhe'),jdecode(''),'/102628.html','true',[],'',''],
	['PAGE','99153',jdecode('lithografie'),jdecode(''),'/99153.html','true',[],'',''],
	['PAGE','98320',jdecode('berlin+residenzatelier+fl'),jdecode(''),'/98320.html','true',[],'',''],
	['PAGE','98822',jdecode('collagen'),jdecode(''),'/98822.html','true',[],'',''],
	['PAGE','98527',jdecode('zeichnungen'),jdecode(''),'/98527.html','true',[],'',''],
	['PAGE','98411',jdecode('berlin+impressionen'),jdecode(''),'/98411.html','true',[],'',''],
	['PAGE','98214',jdecode('Jahresei+2007'),jdecode(''),'/98214.html','true',[],'',''],
	['PAGE','4747',jdecode('kunst+am+bau'),jdecode(''),'/4747.html','true',[],'',''],
	['PAGE','87310',jdecode('sportpark+eschen'),jdecode(''),'/87310.html','true',[],'',''],
	['PAGE','98000',jdecode('landesarchiv+'),jdecode(''),'/98000.html','true',[],'',''],
	['PAGE','4666',jdecode('bildergalerie+1'),jdecode(''),'/4666.html','true',[],'',''],
	['PAGE','4693',jdecode('bildergalerie+2'),jdecode(''),'/4693.html','true',[],'',''],
	['PAGE','4720',jdecode('bildergalerie+3'),jdecode(''),'/4720.html','true',[],'',''],
	['PAGE','100619',jdecode('bildergalerie+4'),jdecode(''),'/100619.html','true',[],'',''],
	['PAGE','100735',jdecode('bildergalerie+5'),jdecode(''),'/100735.html','true',[],'',''],
	['PAGE','29864',jdecode('installationen'),jdecode(''),'/29864.html','true',[],'',''],
	['PAGE','31064',jdecode('b%C3%BChnenbild+x-posed'),jdecode(''),'/31064.html','true',[],'',''],
	['PAGE','97726',jdecode('b%C3%BChnenbild+tartuffe'),jdecode(''),'/97726.html','true',[],'',''],
	['PAGE','102921',jdecode('b%C3%BChnenbild+kishon+TAK'),jdecode(''),'/102921.html','true',[],'',''],
	['PAGE','4612',jdecode('atelier'),jdecode(''),'/4612.html','true',[],'',''],
	['PAGE','6029',jdecode('einzelausstellungen'),jdecode(''),'/6029.html','true',[],'',''],
	['PAGE','6056',jdecode('gruppenausstellungen'),jdecode(''),'/6056.html','true',[],'',''],
	['PAGE','35277',jdecode('in+sammlungen'),jdecode(''),'/35277.html','true',[],'',''],
	['PAGE','4639',jdecode('biografie'),jdecode(''),'/4639.html','true',[],'',''],
	['PAGE','34504',jdecode('bibliografie'),jdecode(''),'/34504.html','true',[],'',''],
	['PAGE','86866',jdecode('links'),jdecode(''),'/86866.html','true',[],'',''],
	['PAGE','92642',jdecode('G%C3%A4stebuch'),jdecode(''),'/92642/index.html','true',[ 
		['PAGE','92643',jdecode('Eintr%C3%A4ge'),jdecode(''),'/92642/92643.html','false',[],'','']
	],'',''],
	['PAGE','8229',jdecode('KONTAKT'),jdecode(''),'/8229.html','true',[],'',''],
	['PAGE','100946',jdecode('Anfahrt'),jdecode(''),'/100946.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='36566E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10829';
theSitetree.graphicsetId='11283';
theSitetree.contentColor='36566E';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Basic',
				paletteFamily: 	'36566E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10829',
				graphicsetId: 	'11283',
				contentColor: 	'36566E',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94039',
internalId:  '',
customField: '20071206-182451'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '100946',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20070822-190854'
};
webappMappings['1002']=webappMappings['1002-92642ABW0X0INXVHO']={
webappId:    '1002',
documentId:  '92642',
internalId:  '92642ABW0X0INXVHO',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-9009']={
webappId:    '7008',
documentId:  '8229',
internalId:  '9009',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102628',
internalId:  '',
customField: '20071211-001859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99153',
internalId:  '',
customField: '20070624-183824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98320',
internalId:  '',
customField: '20080313-141046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98822',
internalId:  '',
customField: '20070625-001105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98527',
internalId:  '',
customField: '20070624-184228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98411',
internalId:  '',
customField: '20070625-001534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98214',
internalId:  '',
customField: '20070624-191025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4747',
internalId:  '',
customField: '20070624-195036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87310',
internalId:  '',
customField: '20070625-002522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98000',
internalId:  '',
customField: '20061215-005544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4666',
internalId:  '',
customField: '20070625-002629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4693',
internalId:  '',
customField: '20070623-180841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4720',
internalId:  '',
customField: '20070624-191923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100619',
internalId:  '',
customField: '20070623-165711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100735',
internalId:  '',
customField: '20070623-170114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29864',
internalId:  '',
customField: '20070623-181002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31064',
internalId:  '',
customField: '20070623-181454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97726',
internalId:  '',
customField: '20070624-193531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102921',
internalId:  '',
customField: '20080529-012038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20070623-172143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6029',
internalId:  '',
customField: '20070625-002846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6056',
internalId:  '',
customField: '20080529-012217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35277',
internalId:  '',
customField: '20070624-192140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4639',
internalId:  '',
customField: '20070326-194910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34504',
internalId:  '',
customField: '20061124-022753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86866',
internalId:  '',
customField: '20070625-003043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92642',
internalId:  '',
customField: '20051106-011327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92643',
internalId:  '',
customField: '20051106-011327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8229',
internalId:  '',
customField: '20061124-015702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100946',
internalId:  '',
customField: '20070624-192501'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXVHO';
var companyName   = 'a+r+t+e+r+a+u+m+++++++++++++++++++++++werner+marxer';
var htmlTitle	  = 'arteraum+werner+marxer+l%C3%BCtisburg-station';
var metaKeywords  = 'art%2C+arte%2C+kunst+am+bau%2C+l%C3%BCtisburg%2C+werner+marxer%2C+nendeln%2C+atelier%2C+bahnhof%2C+malen%2C+kunstschaffender%2C+kunstinstallation%2C+galerie%2C+museum%2C+ausstellung%2C+plastik%2C+bildhauer%2C+metallplastik%2C+eisenplastik%2C+brunnenanlage%2C+acrylmalerei%2C+bild%2C+liechtenstein%2C+nendeln%2C+kunst+in+liechtenstein%2C+kunst+in+vaduz%2C+kunst+im+toggenburg%2C+kunst+st.+gallen%2C+kunst+milano%2C+darstellende+kunst%2C+bildende+kunst%2C+zeichnung%2C+druckgrafik%2C+radierung%2C+lithografie%2C+atelier%2C+malatelier%2C+k%C3%BCnstler%2C+design%2C+pittore%2C+artist%2C+artist+switzerland%2C+art+suisse%2C+arte+svizzera%2C+kunst+im+bahnhof%2C+fotografie+und+kunst%2C+b%C3%BChnenbild%2C+theatermalerei%2C+kulissenmalerei%2C+acrylfarben%2C+oelmalerei%2C+oelfarben%2C+kunst+im+%C3%B6ffentlichen+raum%2C+kunst+und+architektur%2C+';
var metaContents  = 'werner+marxer+vom+arteraum+l%C3%BCtisburg+station%2C+schweiz+macht+kunst+am+bau+projekte+und+grossformatige+acrylmalerei.+der+kunstschaffende+hat+regelm%C3%A4ssig+ausstellungen+in+verschiedenen+europ%C3%A4ischen+l%C3%A4ndern.';
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();
};

