/* [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','4557',jdecode('home'),jdecode(''),'/4557.html','true',[],'',''],
	['PAGE','82801',jdecode('ausstellung+aktuell'),jdecode(''),'/82801.html','true',[],'',''],
	['PAGE','40480',jdecode('ausstellungen+bisher'),jdecode(''),'/40480/index.html','true',[ 
		['PAGE','79001',jdecode('elisabeth+str%C3%A4ssle'),jdecode(''),'/40480/79001.html','true',[],'',''],
		['PAGE','80801',jdecode('impressionen+str%C3%A4ssle'),jdecode(''),'/40480/80801.html','false',[],'',''],
		['PAGE','77101',jdecode('peter+m%C3%B6sch'),jdecode(''),'/40480/77101.html','true',[],'',''],
		['PAGE','78301',jdecode('bilder+peter+m%C3%B6sch'),jdecode(''),'/40480/78301.html','false',[],'',''],
		['PAGE','74101',jdecode('marina+mentoni'),jdecode(''),'/40480/74101.html','true',[],'',''],
		['PAGE','75401',jdecode('bilder+vernissage+mentoni'),jdecode(''),'/40480/75401.html','false',[],'',''],
		['PAGE','71201',jdecode('studer%2Fwehner'),jdecode(''),'/40480/71201.html','true',[],'',''],
		['PAGE','65701',jdecode('bilder+helen+von+burg'),jdecode(''),'/40480/65701.html','true',[],'',''],
		['PAGE','63001',jdecode('bilder+susan+hodel'),jdecode(''),'/40480/63001.html','true',[],'',''],
		['PAGE','60201',jdecode('bilder+therese+weber'),jdecode(''),'/40480/60201.html','true',[],'',''],
		['PAGE','53201',jdecode('bilder+k.+sochor'),jdecode(''),'/40480/53201.html','true',[],'',''],
		['PAGE','55601',jdecode('bilder+diet+sayler'),jdecode(''),'/40480/55601.html','true',[],'',''],
		['PAGE','51301',jdecode('bilder+k%C3%BCnstlergruppe'),jdecode(''),'/40480/51301.html','true',[],'',''],
		['PAGE','21337',jdecode('bilder+schindler%2Fbelin'),jdecode(''),'/40480/21337.html','true',[],'',''],
		['PAGE','43001',jdecode('bilder+grobet%2Fwyss'),jdecode(''),'/40480/43001.html','true',[],'',''],
		['PAGE','41126',jdecode('twellmann%2Fgysin'),jdecode(''),'/40480/41126.html','true',[],'',''],
		['PAGE','40900',jdecode('bilder+angela+lyn'),jdecode(''),'/40480/40900.html','true',[],'',''],
		['PAGE','40723',jdecode('bilder+anne+r%C3%BCede'),jdecode(''),'/40480/40723.html','true',[],'',''],
		['PAGE','40619',jdecode('bilder+michael+wolf'),jdecode(''),'/40480/40619.html','true',[],'',''],
		['PAGE','39695',jdecode('bilder+weber%2Fwiederkehr'),jdecode(''),'/40480/39695.html','true',[],'',''],
		['PAGE','39426',jdecode('bilder+keiser%2Fschaertlin'),jdecode(''),'/40480/39426.html','true',[],'',''],
		['PAGE','39247',jdecode('bilder+koehler%2Fgardair'),jdecode(''),'/40480/39247.html','true',[],'',''],
		['PAGE','35902',jdecode('bilder+str%C3%A4ssle'),jdecode(''),'/40480/35902.html','true',[],'',''],
		['PAGE','33707',jdecode('bilder+remarks+'),jdecode(''),'/40480/33707.html','true',[],'',''],
		['PAGE','61801',jdecode('bildimpressionen+weber'),jdecode(''),'/40480/61801.html','false',[],'',''],
		['PAGE','64801',jdecode('bildimpressionen+hodel'),jdecode(''),'/40480/64801.html','false',[],'',''],
		['PAGE','68401',jdecode('klangperformance'),jdecode(''),'/40480/68401.html','false',[],'',''],
		['PAGE','67401',jdecode('bildimpressionen+von+burg'),jdecode(''),'/40480/67401.html','false',[],'','']
	],'',''],
	['PAGE','5328',jdecode('jahresprogramm+10'),jdecode(''),'/5328/index.html','true',[ 
		['PAGE','31602',jdecode('kunst+06+z%C3%BCrich'),jdecode(''),'/5328/31602.html','false',[],'','']
	],'',''],
	['PAGE','14422',jdecode('profil'),jdecode(''),'/14422.html','true',[],'',''],
	['PAGE','21391',jdecode('k%C3%BCnstler'),jdecode(''),'/21391/index.html','true',[ 
		['PAGE','23960',jdecode('eggenschwiler+norbert'),jdecode(''),'/21391/23960.html','false',[],'',''],
		['PAGE','27853',jdecode('gardair+christian'),jdecode(''),'/21391/27853.html','true',[],'',''],
		['PAGE','39801',jdecode('grauli+max'),jdecode(''),'/21391/39801.html','false',[],'',''],
		['PAGE','24853',jdecode('grobet+daniel'),jdecode(''),'/21391/24853.html','true',[],'',''],
		['PAGE','24880',jdecode('heller%2Fulmer'),jdecode(''),'/21391/24880.html','true',[],'',''],
		['PAGE','39810',jdecode('keiser+carmen'),jdecode(''),'/21391/39810.html','true',[],'',''],
		['PAGE','30214',jdecode('koehler+bim'),jdecode(''),'/21391/30214.html','true',[],'',''],
		['PAGE','24934',jdecode('lehnis+sandra'),jdecode(''),'/21391/24934.html','true',[],'',''],
		['PAGE','40945',jdecode('lyn+angela'),jdecode(''),'/21391/40945.html','true',[],'',''],
		['PAGE','25252',jdecode('mattli+adi'),jdecode(''),'/21391/25252.html','true',[],'',''],
		['PAGE','25198',jdecode('mentoni+marina'),jdecode(''),'/21391/25198.html','true',[],'',''],
		['PAGE','25225',jdecode('m%C3%B6sch+peter'),jdecode(''),'/21391/25225.html','true',[],'',''],
		['PAGE','25306',jdecode('pfister+ursula'),jdecode(''),'/21391/25306.html','true',[],'',''],
		['PAGE','25333',jdecode('r%C3%BCede+anne'),jdecode(''),'/21391/25333.html','true',[],'',''],
		['PAGE','25360',jdecode('schaertlin+kitty'),jdecode(''),'/21391/25360.html','true',[],'',''],
		['PAGE','44501',jdecode('sayler+diet'),jdecode(''),'/21391/44501.html','true',[],'',''],
		['PAGE','54701',jdecode('shigeru+kuriyama'),jdecode(''),'/21391/54701.html','true',[],'',''],
		['PAGE','25387',jdecode('str%C3%A4ssle+elisabeth'),jdecode(''),'/21391/25387.html','true',[],'',''],
		['PAGE','25441',jdecode('spinosi+graziano'),jdecode(''),'/21391/25441.html','true',[],'',''],
		['PAGE','25468',jdecode('sochor+katharina'),jdecode(''),'/21391/25468.html','true',[],'',''],
		['PAGE','25522',jdecode('von+burg+helen'),jdecode(''),'/21391/25522.html','true',[],'',''],
		['PAGE','39819',jdecode('weber+peter'),jdecode(''),'/21391/39819.html','true',[],'',''],
		['PAGE','25549',jdecode('wiederkehr+gido'),jdecode(''),'/21391/25549.html','true',[],'',''],
		['PAGE','39828',jdecode('wolf+michael'),jdecode(''),'/21391/39828.html','true',[],'',''],
		['PAGE','47001',jdecode('wyss+franz-anatol'),jdecode(''),'/21391/47001.html','true',[],'','']
	],'',''],
	['PAGE','5382',jdecode('einladungsw%C3%BCnsche'),jdecode(''),'/5382.html','true',[],'',''],
	['PAGE','21802',jdecode('kontakt'),jdecode(''),'/21802.html','true',[],'',''],
	['PAGE','40251',jdecode('%C3%B6ffnungszeiten'),jdecode(''),'/40251.html','true',[],'',''],
	['PAGE','40216',jdecode('lageplan'),jdecode(''),'/40216.html','true',[],'','']];
var siteelementCount=64;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='75';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D0D5DB';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'75',
				contentColor: 	'000000',
				contentBGColor: 'D0D5DB',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4557',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4557',
internalId:  '',
customField: '20100820-100535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5328',
internalId:  '',
customField: '20100629-213621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31602',
internalId:  '',
customField: '20061231-163304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63001',
internalId:  '',
customField: '20090517-150736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40480',
internalId:  '',
customField: '20100629-215809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20081212-115238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20081201-184712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20081021-210616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51301',
internalId:  '',
customField: '20080616-205606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21337',
internalId:  '',
customField: '20080616-205637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20080414-192546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41126',
internalId:  '',
customField: '20071022-220832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40900',
internalId:  '',
customField: '20070811-111134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40723',
internalId:  '',
customField: '20070415-140243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40619',
internalId:  '',
customField: '20070212-193559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39695',
internalId:  '',
customField: '20061231-164502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39426',
internalId:  '',
customField: '20061012-225147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39247',
internalId:  '',
customField: '20070109-205730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35902',
internalId:  '',
customField: '20060327-101427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33707',
internalId:  '',
customField: '20070109-205631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61801',
internalId:  '',
customField: '20081207-180241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14422',
internalId:  '',
customField: '20100614-194858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21391',
internalId:  '',
customField: '20091027-211421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23960',
internalId:  '',
customField: '20061231-163425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27853',
internalId:  '',
customField: '20061231-163408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39801',
internalId:  '',
customField: '20061231-163523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24853',
internalId:  '',
customField: '20080111-185250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24880',
internalId:  '',
customField: '20061231-165823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39810',
internalId:  '',
customField: '20061231-163634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30214',
internalId:  '',
customField: '20061231-163810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24934',
internalId:  '',
customField: '20071102-103317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40945',
internalId:  '',
customField: '20070811-103417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25252',
internalId:  '',
customField: '20061231-165858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25198',
internalId:  '',
customField: '20100206-153307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25225',
internalId:  '',
customField: '20061231-163848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25306',
internalId:  '',
customField: '20061231-163902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25333',
internalId:  '',
customField: '20070415-141031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25360',
internalId:  '',
customField: '20070415-142105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20071204-221142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54701',
internalId:  '',
customField: '20080821-184716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25387',
internalId:  '',
customField: '20061231-163948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25441',
internalId:  '',
customField: '20061231-164046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25468',
internalId:  '',
customField: '20081021-211731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25522',
internalId:  '',
customField: '20061231-164219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39819',
internalId:  '',
customField: '20061231-165731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25549',
internalId:  '',
customField: '20061231-165712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39828',
internalId:  '',
customField: '20061231-170205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20080111-185722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5382',
internalId:  '',
customField: '20050725-154608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21802',
internalId:  '',
customField: '20090923-214229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40251',
internalId:  '',
customField: '20100820-100035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40216',
internalId:  '',
customField: '20070109-202516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64801',
internalId:  '',
customField: '20090318-195915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65701',
internalId:  '',
customField: '20090521-112740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67401',
internalId:  '',
customField: '20090521-112212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68401',
internalId:  '',
customField: '20090521-112008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20091108-163103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71201',
internalId:  '',
customField: '20091027-220907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20100206-150437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77101',
internalId:  '',
customField: '20100503-193729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78301',
internalId:  '',
customField: '20100307-170710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79001',
internalId:  '',
customField: '20100509-155157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80801',
internalId:  '',
customField: '20100509-155317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82801',
internalId:  '',
customField: '20100820-100617'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXX5W';
var companyName   = 'galerie+ursula+huber';
var htmlTitle	  = 'galerie+ursula+huber%2C+basel';
var metaKeywords  = '';
var metaContents  = '';
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();
};
