/* [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','119401',jdecode('Home'),jdecode(''),'/119401.html','true',[],'',''],
	['PAGE','6152',jdecode('Vorstand'),jdecode(''),'/6152.html','true',[],'',''],
	['PAGE','6173',jdecode('Mitgliedschaft'),jdecode(''),'/6173/index.html','true',[ 
		['PAGE','25401',jdecode('Lizenzen'),jdecode(''),'/6173/25401.html','true',[],'','']
	],'',''],
	['PAGE','6257',jdecode('Agenda'),jdecode(''),'/6257.html','true',[],'',''],
	['PAGE','6215',jdecode('Trainerteam'),jdecode(''),'/6215/index.html','true',[ 
		['PAGE','14801',jdecode('Lektionenpreise'),jdecode(''),'/6215/14801.html','true',[],'','']
	],'',''],
	['PAGE','13701',jdecode('Breitensport'),jdecode(''),'/13701/index.html','true',[ 
		['PAGE','15301',jdecode('Kinderkurse'),jdecode(''),'/13701/15301.html','true',[],'',''],
		['PAGE','15322',jdecode('F%C3%B6rderklassen'),jdecode(''),'/13701/15322.html','true',[],'',''],
		['PAGE','15343',jdecode('Erwachsenenkurse'),jdecode(''),'/13701/15343.html','true',[],'',''],
		['PAGE','91601',jdecode('Sternlitests'),jdecode(''),'/13701/91601.html','true',[],'','']
	],'',''],
	['PAGE','13722',jdecode('Kunstlauf'),jdecode(''),'/13722/index.html','true',[ 
		['PAGE','134801',jdecode('KL+Events'),jdecode(''),'/13722/134801.html','true',[],'',''],
		['PAGE','17701',jdecode('Kunstlaufkader'),jdecode(''),'/13722/17701.html','true',[],'',''],
		['PAGE','35001',jdecode('ECB+Eis-Regelung'),jdecode(''),'/13722/35001.html','true',[],'',''],
		['PAGE','35601',jdecode('KL+Trainingszeiten'),jdecode(''),'/13722/35601.html','true',[],'','']
	],'',''],
	['PAGE','13743',jdecode('Eistanz'),jdecode(''),'/13743/index.html','true',[ 
		['PAGE','91522',jdecode('ET+Events'),jdecode(''),'/13743/91522.html','true',[],'','']
	],'',''],
	['PAGE','13764',jdecode('Synchronized+Skating'),jdecode(''),'/13764/index.html','true',[ 
		['PAGE','34601',jdecode('Jahresbericht+08%2F09'),jdecode(''),'/13764/34601.html','true',[],'',''],
		['PAGE','39501',jdecode('Trainingszeiten'),jdecode(''),'/13764/39501.html','true',[],'',''],
		['PAGE','19601',jdecode('Team+Dancers'),jdecode(''),'/13764/19601.html','true',[],'',''],
		['PAGE','123401',jdecode('Team+Saphire'),jdecode(''),'/13764/123401.html','true',[],'',''],
		['PAGE','19622',jdecode('Kiwis'),jdecode(''),'/13764/19622.html','true',[],'',''],
		['PAGE','19643',jdecode('Pingus'),jdecode(''),'/13764/19643.html','true',[],'',''],
		['PAGE','19664',jdecode('Ice+Liners'),jdecode(''),'/13764/19664.html','true',[],'','']
	],'',''],
	['PAGE','13785',jdecode('Speed%2FShorttrack'),jdecode(''),'/13785.html','true',[],'',''],
	['PAGE','31101',jdecode('Resultate'),jdecode(''),'/31101/index.html','true',[ 
		['PAGE','129101',jdecode('Saison+2009%2F10'),jdecode(''),'/31101/129101.html','true',[],'',''],
		['PAGE','40201',jdecode('Saison+2008%2F09'),jdecode(''),'/31101/40201.html','true',[],'',''],
		['PAGE','40222',jdecode('Saison+2007%2F08'),jdecode(''),'/31101/40222.html','true',[],'',''],
		['PAGE','40243',jdecode('Saison+2006%2F07'),jdecode(''),'/31101/40243.html','true',[],'',''],
		['PAGE','40264',jdecode('Saison+2005%2F06'),jdecode(''),'/31101/40264.html','true',[],'',''],
		['PAGE','41201',jdecode('Saison+2004%2F05'),jdecode(''),'/31101/41201.html','true',[],'',''],
		['PAGE','41222',jdecode('Saison+2003%2F04'),jdecode(''),'/31101/41222.html','true',[],'','']
	],'',''],
	['PAGE','6501',jdecode('Fotogalerie'),jdecode(''),'/6501/index.html','true',[ 
		['PAGE','129122',jdecode('Saison+2009%2F10'),jdecode(''),'/6501/129122.html','true',[],'',''],
		['PAGE','22601',jdecode('Saison+2008%2F09'),jdecode(''),'/6501/22601.html','true',[],'',''],
		['PAGE','22622',jdecode('Saison+2007%2F08'),jdecode(''),'/6501/22622.html','true',[],'',''],
		['PAGE','22643',jdecode('Saison+2006%2F07'),jdecode(''),'/6501/22643.html','true',[],'',''],
		['PAGE','22664',jdecode('Saison+2005%2F06'),jdecode(''),'/6501/22664.html','true',[],'',''],
		['PAGE','22685',jdecode('Saison+2004%2F05'),jdecode(''),'/6501/22685.html','true',[],'',''],
		['PAGE','22706',jdecode('Saison+2003%2F04'),jdecode(''),'/6501/22706.html','true',[],'','']
	],'',''],
	['PAGE','14822',jdecode('Eisbahnen'),jdecode(''),'/14822.html','true',[],'',''],
	['PAGE','6278',jdecode('Links'),jdecode(''),'/6278.html','true',[],'',''],
	['PAGE','134601',jdecode('Archiv+2009-10'),jdecode(''),'/134601/index.html','true',[ 
		['PAGE','120001',jdecode('BM+und+14.+Tanzturnier+2010'),jdecode(''),'/134601/120001.html','true',[],'',''],
		['PAGE','117101',jdecode('Resultate+KL+BM+2010'),jdecode(''),'/134601/117101.html','true',[],'',''],
		['PAGE','43301',jdecode('SM+Novice+2010'),jdecode(''),'/134601/43301.html','true',[],'',''],
		['PAGE','111701',jdecode('SM+Novice+Resultate'),jdecode(''),'/134601/111701.html','true',[],'',''],
		['PAGE','93501',jdecode('Info+Brosch%C3%BCre'),jdecode(''),'/134601/93501.html','true',[],'','']
	],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10432';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10432',
				graphicsetId: 	'10771',
				contentColor: 	'000000',
				contentBGColor: 'F0F2F4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119401',
internalId:  '',
customField: '20100824-162414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6278',
internalId:  '',
customField: '20100102-082618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20091115-194057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6215',
internalId:  '',
customField: '20100824-162733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6173',
internalId:  '',
customField: '20100824-163243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100526-202241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6152',
internalId:  '',
customField: '20100711-150053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6257',
internalId:  '',
customField: '20100207-163746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20100711-115638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20100711-120359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13764',
internalId:  '',
customField: '20091213-192210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13743',
internalId:  '',
customField: '20100315-130646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13785',
internalId:  '',
customField: '20100428-213125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100711-120241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20100711-115334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20100711-120336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120001',
internalId:  '',
customField: '20100202-174346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14822',
internalId:  '',
customField: '20090909-222929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20100711-151149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35001',
internalId:  '',
customField: '20091217-184832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91601',
internalId:  '',
customField: '20100301-213028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20091213-192245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19622',
internalId:  '',
customField: '20100315-144717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19643',
internalId:  '',
customField: '20091212-210310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19664',
internalId:  '',
customField: '20091213-192725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22706',
internalId:  '',
customField: '20100101-121620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100101-124624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22622',
internalId:  '',
customField: '20100101-123753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22643',
internalId:  '',
customField: '20100101-123250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22664',
internalId:  '',
customField: '20100101-122152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22685',
internalId:  '',
customField: '20100101-121951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20091115-193858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20100711-120117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20091109-094204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20100208-103414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20091213-192231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40222',
internalId:  '',
customField: '20091026-191603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20091028-194118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40243',
internalId:  '',
customField: '20091026-201033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40264',
internalId:  '',
customField: '20091026-202122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20091026-204237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41222',
internalId:  '',
customField: '20091026-202931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43301',
internalId:  '',
customField: '20100711-123851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117101',
internalId:  '',
customField: '20100131-194409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134801',
internalId:  '',
customField: '20100622-201934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91522',
internalId:  '',
customField: '20100622-201035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93501',
internalId:  '',
customField: '20100118-172458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129101',
internalId:  '',
customField: '20100622-202215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123401',
internalId:  '',
customField: '20100210-215252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129122',
internalId:  '',
customField: '20100516-165038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111701',
internalId:  '',
customField: '20100126-001056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134601',
internalId:  '',
customField: '20100711-123554'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHP340INV5CX';
var companyName   = 'EISLAUF+CLUB+BEIDER+BASEL';
var htmlTitle	  = 'Eislauf+Club+beider+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();
};
