/* [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','214',jdecode('Home'),jdecode(''),'/214.html','true',[],'',''],
	['PAGE','328',jdecode('Monats-%2FJahresprogramm'),jdecode(''),'/328.html','true',[],'',''],
	['PAGE','65286',jdecode('Aktuelle+Konzerte'),jdecode(''),'/65286.html','true',[],'',''],
	['PAGE','265',jdecode('Musikverein+%2F+Blasorchester'),jdecode(''),'/265/index.html','true',[ 
		['PAGE','21753',jdecode('Musikverein+%28Folgeseite%29'),jdecode(''),'/265/21753.html','false',[],'',''],
		['PAGE','36686',jdecode('Besetzung'),jdecode(''),'/265/36686.html','true',[],'',''],
		['PAGE','2083',jdecode('Geschichte'),jdecode(''),'/265/2083.html','true',[],'',''],
		['PAGE','13093',jdecode('Wir+suchen+dich%21'),jdecode(''),'/265/13093.html','true',[],'',''],
		['PAGE','2125',jdecode('Repertoire'),jdecode(''),'/265/2125.html','true',[],'',''],
		['PAGE','31386',jdecode('Unterricht+f%C3%BCr+Erwachsene'),jdecode(''),'/265/31386.html','true',[],'','']
	],'',''],
	['PAGE','307',jdecode('Jugendspiel'),jdecode(''),'/307/index.html','true',[ 
		['PAGE','2146',jdecode('Aspi-Band'),jdecode(''),'/307/2146/index.html','true',[ 
			['PAGE','21774',jdecode('Aspirantencorps+%28Folgeseite%29'),jdecode(''),'/307/2146/21774.html','false',[],'','']
		],'',''],
		['PAGE','2167',jdecode('Musikalische+Ausbildung'),jdecode(''),'/307/2167/index.html','true',[ 
			['PAGE','21795',jdecode('Theorieunterricht+%28Folgeseite%29'),jdecode(''),'/307/2167/21795.html','false',[],'','']
		],'',''],
		['PAGE','51086',jdecode('Instrumente'),jdecode(''),'/307/51086.html','true',[],'',''],
		['PAGE','44986',jdecode('Unsere+Musiklehrer'),jdecode(''),'/307/44986.html','true',[],'','']
	],'',''],
	['PAGE','21450',jdecode('BigBand+R%C3%BCmlang'),jdecode(''),'/21450/index.html','true',[ 
		['PAGE','21721',jdecode('BigBand+R%C3%BCmlang+%28Folgeseite%29'),jdecode(''),'/21450/21721.html','false',[],'','']
	],'',''],
	['PAGE','286',jdecode('Fasnachtskomitee'),jdecode(''),'/286/index.html','true',[ 
		['PAGE','32986',jdecode('Guggenauftritt'),jdecode(''),'/286/32986.html','true',[],'',''],
		['PAGE','33007',jdecode('Fasnachtsumzug'),jdecode(''),'/286/33007.html','true',[],'',''],
		['PAGE','40986',jdecode('Feedback+Fasnacht'),jdecode(''),'/286/40986.html','true',[],'','']
	],'',''],
	['PAGE','61786',jdecode('Passivmitglieder'),jdecode(''),'/61786.html','true',[],'',''],
	['PAGE','22439',jdecode('Probelokal+R%C3%BCmlang'),jdecode(''),'/22439.html','true',[],'',''],
	['PAGE','44386',jdecode('Archiv'),jdecode(''),'/44386/index.html','true',[ 
		['PAGE','66186',jdecode('2009'),jdecode(''),'/44386/66186.html','true',[],'',''],
		['PAGE','391',jdecode('2006'),jdecode(''),'/44386/391.html','true',[],'',''],
		['PAGE','6197',jdecode('2005'),jdecode(''),'/44386/6197.html','true',[],'',''],
		['PAGE','6260',jdecode('2004'),jdecode(''),'/44386/6260.html','true',[],'',''],
		['PAGE','6281',jdecode('2003'),jdecode(''),'/44386/6281.html','true',[],'',''],
		['PAGE','6302',jdecode('2002'),jdecode(''),'/44386/6302.html','true',[],'',''],
		['PAGE','6239',jdecode('2001'),jdecode(''),'/44386/6239.html','true',[],'','']
	],'',''],
	['PAGE','349',jdecode('Kontakt'),jdecode(''),'/349/index.html','true',[ 
		['PAGE','5524',jdecode('Vorstand+Jugendkommission'),jdecode(''),'/349/5524.html','true',[],'','']
	],'',''],
	['PAGE','67186',jdecode('Fotos'),jdecode(''),'/67186/index.html','true',[ 
		['PAGE','72200',jdecode('2010'),jdecode(''),'/67186/72200.html','true',[],'',''],
		['PAGE','68686',jdecode('2009'),jdecode(''),'/67186/68686.html','true',[],'',''],
		['PAGE','68707',jdecode('2007'),jdecode(''),'/67186/68707.html','true',[],'',''],
		['PAGE','69486',jdecode('2006'),jdecode(''),'/67186/69486.html','true',[],'','']
	],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
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: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '214',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']=webappMappings['1003-agt010inxvc2111419e8650']={
webappId:    '1003',
documentId:  '40986',
internalId:  'agt010inxvc2111419e8650',
customField: 'de:CH:'
};
webappMappings['7008']=webappMappings['7008-1430']={
webappId:    '7008',
documentId:  '265',
internalId:  '1430',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72200',
internalId:  '',
customField: '20100513-180427'
};
webappMappings['7008']=webappMappings['7008-1431']={
webappId:    '7008',
documentId:  '2146',
internalId:  '1431',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69486',
internalId:  '',
customField: '20100502-191343'
};
webappMappings['7008']=webappMappings['7008-1432']={
webappId:    '7008',
documentId:  '2167',
internalId:  '1432',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-1433']={
webappId:    '7008',
documentId:  '61786',
internalId:  '1433',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68686',
internalId:  '',
customField: '20100502-191754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68707',
internalId:  '',
customField: '20100502-190007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214',
internalId:  '',
customField: '20100513-123447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '328',
internalId:  '',
customField: '20100422-212614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '349',
internalId:  '',
customField: '20100422-213443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22439',
internalId:  '',
customField: '20090610-111611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265',
internalId:  '',
customField: '20100504-093008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36686',
internalId:  '',
customField: '20100423-135402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2083',
internalId:  '',
customField: '20100423-140121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13093',
internalId:  '',
customField: '20080212-090944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21753',
internalId:  '',
customField: '20060414-153724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2125',
internalId:  '',
customField: '20100502-192726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31386',
internalId:  '',
customField: '20100423-140634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286',
internalId:  '',
customField: '20100815-165333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32986',
internalId:  '',
customField: '20100423-173320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33007',
internalId:  '',
customField: '20100423-173940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40986',
internalId:  '',
customField: '20070312-090158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307',
internalId:  '',
customField: '20100423-143225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2146',
internalId:  '',
customField: '20100423-143340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21774',
internalId:  '',
customField: '20060414-154028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2167',
internalId:  '',
customField: '20070905-165305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21795',
internalId:  '',
customField: '20060414-154155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51086',
internalId:  '',
customField: '20090610-113131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44986',
internalId:  '',
customField: '20070419-131247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21450',
internalId:  '',
customField: '20100513-145034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21721',
internalId:  '',
customField: '20060414-152750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65286',
internalId:  '',
customField: '20100803-101935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66186',
internalId:  '',
customField: '20100423-171050'
};
webappMappings['7008']=webappMappings['7008-1429']={
webappId:    '7008',
documentId:  '21450',
internalId:  '1429',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44386',
internalId:  '',
customField: '20070612-214138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '391',
internalId:  '',
customField: '20070402-101432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6197',
internalId:  '',
customField: '20060415-183412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6260',
internalId:  '',
customField: '20060414-090606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6281',
internalId:  '',
customField: '20060414-091321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6302',
internalId:  '',
customField: '20060413-231148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6239',
internalId:  '',
customField: '20060413-230613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61786',
internalId:  '',
customField: '20091016-161703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67186',
internalId:  '',
customField: '20100513-145355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5524',
internalId:  '',
customField: '20091003-172123'
};
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010INXVC2';
var companyName   = 'Musikverein+R%C3%BCmlang';
var htmlTitle	  = 'Musikverein+R%C3%BCmlang';
var metaKeywords  = 'Musikverein%2C+Ruuml%3Bmlang%2C+Blasmusik%2C+Muttertag%2C+Musikreise%2C+Jahreskonzert%2C+Familiennachmittag%2C+Nachwuchs%2C+Instrument%2C+lernen%2C+unterricht%2C+musikschule%2C+Musiktag%2C+Musikfest%2C+8153%2C+Roland%2C+Schiesser%2C+Dirigent%2C+worbiger%2C+gemeindesaal%2C+gemeindehaus%2C+riegel28%2C+abba%2C+theorieunterricht%2C+aspi%2C+aspirantencorps%2C+posaune%2C+lehrer%2C+klarinette%2C+saxophon%2C+saxofon%2C+schlagzeug%2C+einhorn%2C+r%C3%BCmlanger+fasnacht%2C+r%C3%BCmelbach%2C+';
var metaContents  = 'Musikverein+Ruuml%3Bmlang%2C+Blasorchester+Ruuml%3Bmlang%2C+Jugendmusik+Ruuml%3Bmlang%2C+Big+Band+Ruuml%3Bmlang%2C+8153+R%C3%BCmlang%2C+Ruemlang.+Musikverein+Ruuml%3Bmlang%3B+Gemeindesaal+Mo%3A+19%3A30+-+21%3A30%3B+Blasmusik+Muttertagskonzert+Musikreise+Jahreskonzert+Alters-+und+Familiennachmittag+Weihnachtsspiel+Kantonaler+Musiktag+Eidgen%C3%B6ssisches+Musikfest+Geburtstagst%C3%A4ndchen%2C+Roland+Schiesser+Dirigent%2C+8153';
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();
};
