/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],'',''],
	['PAGE','4652',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/4652.html','true',[],'',''],
	['PAGE','70482',jdecode('%C3%9Cber+Taekwon-Do'),jdecode(''),'/70482/index.html','true',[ 
		['PAGE','70715',jdecode('Urprung+Kampfk%C3%BCnste'),jdecode(''),'/70482/70715.html','true',[],'',''],
		['PAGE','71329',jdecode('Geschichte+Taekwon-Do'),jdecode(''),'/70482/71329.html','true',[],'',''],
		['PAGE','70742',jdecode('Was+ist+Taekwon-Do%3F'),jdecode(''),'/70482/70742.html','true',[],'',''],
		['PAGE','71065',jdecode('Prinzipien+des+TKD'),jdecode(''),'/70482/71065.html','true',[],'',''],
		['PAGE','72234',jdecode('Die+Machttheorie'),jdecode(''),'/70482/72234.html','true',[],'',''],
		['PAGE','74269',jdecode('Die+Formen+%28TUL%29'),jdecode(''),'/70482/74269.html','true',[],'',''],
		['PAGE','75669',jdecode('TKD+Stellungen'),jdecode(''),'/70482/75669.html','true',[],'',''],
		['PAGE','4679',jdecode('Verschiedenes'),jdecode(''),'/70482/4679.html','true',[],'','']
	],'',''],
	['PAGE','112301',jdecode('Agenda+2010'),jdecode(''),'/112301.html','true',[],'',''],
	['PAGE','153701',jdecode('NEWS'),jdecode(''),'/153701.html','true',[],'',''],
	['PAGE','131022',jdecode('Archiv'),jdecode(''),'/131022.html','true',[],'',''],
	['PAGE','51382',jdecode('Taekwon-Do+Schule+R%C3%BCti'),jdecode(''),'/51382/index.html','true',[ 
		['PAGE','66509',jdecode('Jorge+Z%C3%BCger+CV'),jdecode(''),'/51382/66509.html','true',[],'',''],
		['PAGE','65637',jdecode('Ihr+Weg+zu+uns+%28R%C3%BCti%29'),jdecode(''),'/51382/65637.html','true',[],'',''],
		['PAGE','65399',jdecode('Anfahrt+zur+R%C3%BCti'),jdecode(''),'/51382/65399.html','true',[],'',''],
		['PAGE','87974',jdecode('Mitgliederbeitr%C3%A4ge+R%C3%BCti'),jdecode(''),'/51382/87974.html','true',[],'','']
	],'',''],
	['PAGE','91129',jdecode('ITF+Fribourg+Association+'),jdecode(''),'/91129/index.html','true',[ 
		['PAGE','91310',jdecode('S%C3%A9bastien+Lesueur+CV'),jdecode(''),'/91129/91310.html','true',[],'','']
	],'',''],
	['PAGE','67181',jdecode('G%C3%A4stebuch'),jdecode(''),'/67181/index.html','true',[ 
		['PAGE','67182',jdecode('Eintr%C3%A4ge'),jdecode(''),'/67181/67182.html','false',[],'','']
	],'',''],
	['PAGE','4787',jdecode('Links'),jdecode(''),'/4787.html','true',[],'',''],
	['PAGE','132101',jdecode('Site+Updates'),jdecode(''),'/132101.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='428';
theSitetree.graphicsetId='479';
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: 			'Card',
				paletteFamily: 	'990000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'428',
				graphicsetId: 	'479',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4595',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '65399',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '65637',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4652',
internalId:  '',
customField: '20100425-103305'
};
webappMappings['1002']=webappMappings['1002-67181ABW0X0INX2NO']={
webappId:    '1002',
documentId:  '67181',
internalId:  '67181ABW0X0INX2NO',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4595',
internalId:  '',
customField: '20100425-182541'
};
webappMappings['1501']=webappMappings['1501-1153411']={
webappId:    '1501',
documentId:  '4595',
internalId:  '1153411',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71329',
internalId:  '',
customField: '20060712-082857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70742',
internalId:  '',
customField: '20060712-082926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70482',
internalId:  '',
customField: '20080601-091828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70715',
internalId:  '',
customField: '20060712-082758'
};
webappMappings['1010']=webappMappings['1010-_Ea_Mitgliederbeitr_ge_R_ti']={
webappId:    '1010',
documentId:  '87974',
internalId:  '_Ea_Mitgliederbeitr_ge_R_ti',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71065',
internalId:  '',
customField: '20060712-082946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72234',
internalId:  '',
customField: '20060712-083019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74269',
internalId:  '',
customField: '20060712-083046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75669',
internalId:  '',
customField: '20060712-083114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4679',
internalId:  '',
customField: '20060428-132023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112301',
internalId:  '',
customField: '20100425-105336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131022',
internalId:  '',
customField: '20100411-185445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51382',
internalId:  '',
customField: '20100413-073123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66509',
internalId:  '',
customField: '20100110-090509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65637',
internalId:  '',
customField: '20060128-141340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65399',
internalId:  '',
customField: '20060128-141315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87974',
internalId:  '',
customField: '20081214-103603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91129',
internalId:  '',
customField: '20090123-164811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91310',
internalId:  '',
customField: '20080119-091412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67181',
internalId:  '',
customField: '20060127-140457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67182',
internalId:  '',
customField: '20060127-140457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4787',
internalId:  '',
customField: '20090221-164920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132101',
internalId:  '',
customField: '20100513-095422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153701',
internalId:  '',
customField: '20100627-091055'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2NO';
var companyName   = 'I.T.F.+Switzerland+Taekwon-Do+Federation';
var htmlTitle	  = 'ITF+Switzerland+Taekwon-Do+Federation';
var metaKeywords  = '';
var metaContents  = 'ITF+Switzerland+Taekwon-Do+Federation%2C+Contact%3A+Jorge+Z%C3%BCger%2C+%2B41+79+816+63+24+';
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();
};
