/* [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','3101',jdecode('Home'),jdecode(''), jdecode('%2F3101.html'), 'true',[],'',''],
	['PAGE','30311',jdecode('Info+Blog'),jdecode(''), jdecode('%2F30311.html'), 'false',[],'',''],
	['PAGE','3173',jdecode('Aikido'),jdecode(''), jdecode('%2F3173%2Findex.html'), 'true',[ 
		['PAGE','3194',jdecode('Was+ist+Aikido'),jdecode(''), jdecode('%2F3173%2F3194.html'), 'true',[],'',''],
		['PAGE','54311',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F3173%2F54311.html'), 'true',[],'',''],
		['PAGE','48011',jdecode('Fotos+%2F+Videos'),jdecode(''), jdecode('%2F3173%2F48011.html'), 'true',[],'',''],
		['PAGE','3215',jdecode('Trainingsplan'),jdecode(''), jdecode('%2F3173%2F3215.html'), 'true',[],'',''],
		['PAGE','14711',jdecode('Aikido+Basis'),jdecode(''), jdecode('%2F3173%2F14711.html'), 'true',[],'',''],
		['PAGE','5911',jdecode('Kinder+%2F+Jugendliche'),jdecode(''), jdecode('%2F3173%2F5911.html'), 'true',[],'','']
	],'',''],
	['PAGE','3236',jdecode('Iaido'),jdecode(''), jdecode('%2F3236%2Findex.html'), 'true',[ 
		['PAGE','3257',jdecode('Was+ist+Iaido'),jdecode(''), jdecode('%2F3236%2F3257.html'), 'true',[],'',''],
		['PAGE','3278',jdecode('Trainingsplan'),jdecode(''), jdecode('%2F3236%2F3278.html'), 'true',[],'','']
	],'',''],
	['PAGE','3299',jdecode('Jodo'),jdecode(''), jdecode('%2F3299%2Findex.html'), 'true',[ 
		['PAGE','3320',jdecode('Was+ist+Jodo'),jdecode(''), jdecode('%2F3299%2F3320.html'), 'true',[],'',''],
		['PAGE','3341',jdecode('Trainingsplan'),jdecode(''), jdecode('%2F3299%2F3341.html'), 'true',[],'','']
	],'',''],
	['PAGE','3362',jdecode('Mitgliedschaft'),jdecode(''), jdecode('%2F3362%2Findex.html'), 'true',[ 
		['PAGE','3383',jdecode('Informationen'),jdecode(''), jdecode('%2F3362%2F3383.html'), 'true',[],'',''],
		['PAGE','3404',jdecode('Trainingskosten'),jdecode(''), jdecode('%2F3362%2F3404.html'), 'true',[],'',''],
		['PAGE','3425',jdecode('Vereinsstatuten'),jdecode(''), jdecode('%2F3362%2F3425.html'), 'true',[],'','']
	],'',''],
	['PAGE','3446',jdecode('Kontakt'),jdecode(''), jdecode('%2F3446.html'), 'true',[],'',''],
	['PAGE','3530',jdecode('Lageplan'),jdecode(''), jdecode('%2F3530.html'), 'true',[],'',''],
	['PAGE','3551',jdecode('Kalender'),jdecode(''), jdecode('%2F3551.html'), 'true',[],'',''],
	['PAGE','3152',jdecode('Geschichte'),jdecode(''), jdecode('%2F3152.html'), 'true',[],'',''],
	['PAGE','3467',jdecode('Raummiete'),jdecode(''), jdecode('%2F3467%2Findex.html'), 'false',[ 
		['PAGE','3488',jdecode('Belegungsplan'),jdecode(''), jdecode('%2F3467%2F3488.html'), 'true',[],'',''],
		['PAGE','3509',jdecode('Preisliste+Miete'),jdecode(''), jdecode('%2F3467%2F3509.html'), 'true',[],'','']
	],'',''],
	['PAGE','3572',jdecode('Downloads'),jdecode(''), jdecode('%2F3572.html'), 'true',[],'',''],
	['PAGE','3593',jdecode('Links'),jdecode(''), jdecode('%2F3593.html'), 'true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='CECDD0';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32049';
theSitetree.graphicsetId='13873';
theSitetree.contentColor='484848';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'genotec',
  product: 'WSCSYSSSSLYTCP0Y'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grace',
				paletteFamily: 	'CECDD0',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32049',
				graphicsetId: 	'13873',
				contentColor: 	'484848',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30311',
internalId:  '',
customField: '20110821-132302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14711',
internalId:  '',
customField: '20120101-181240'
};
webappMappings['7060']=webappMappings['7060-666fc67df34fd9b04e62753165904e9c']={
webappId:    '7060',
documentId:  '3572',
internalId:  '666fc67df34fd9b04e62753165904e9c',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20120205-135812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3173',
internalId:  '',
customField: '20110904-185047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3572',
internalId:  '',
customField: '20101030-225349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3152',
internalId:  '',
customField: '20101027-075202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3362',
internalId:  '',
customField: '20101103-205505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3530',
internalId:  '',
customField: '20101024-142306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3551',
internalId:  '',
customField: '20120205-140048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3194',
internalId:  '',
customField: '20120204-182931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3215',
internalId:  '',
customField: '20120131-174302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5911',
internalId:  '',
customField: '20110906-204631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3236',
internalId:  '',
customField: '20100627-174846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3257',
internalId:  '',
customField: '20100627-175759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3278',
internalId:  '',
customField: '20101119-151510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3299',
internalId:  '',
customField: '20101119-151221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3320',
internalId:  '',
customField: '20100627-181924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3341',
internalId:  '',
customField: '20101119-151525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3383',
internalId:  '',
customField: '20111217-175111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3404',
internalId:  '',
customField: '20101024-180826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3425',
internalId:  '',
customField: '20101027-075417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3446',
internalId:  '',
customField: '20101024-142142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3467',
internalId:  '',
customField: '20101024-140337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3488',
internalId:  '',
customField: '20100627-210230'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3509',
internalId:  '',
customField: '20100627-163158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3593',
internalId:  '',
customField: '20120128-184701'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '48011',
internalId:  '-',
customField: '20120204-174848'
};
webappMappings['7050']=webappMappings['7050-902']={
webappId:    '7050',
documentId:  '30311',
internalId:  '902',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '54311',
internalId:  '-',
customField: '20120205-224547'
};
var webAppHostname = 'cgi.wsc.genotec.ch:80';
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT340IN2ULV';
var companyName   = 'Sakura+Dojo+Bern++-++Aikido+Iaido+Jodo';
var htmlTitle	  = 'Sakura+Dojo+Bern+-+Aikido+Iaido+Jodo';
var metaKeywords  = 'Aikido+Bern+Iaido+Bern+Jodo+Bern+Kampfkunst+Kampfk%C3%BCnste+Kampfsport';
var metaContents  = '+Kampfkunst+Aikido+Bern+Iaido+Bern+Jodo+Bern+Kampfsport';
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();
};

