/* [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','4584',jdecode('Home'),jdecode(''),'/4584.html','true',[],'',''],
	['PAGE','50755',jdecode('Frauen-Kunstturnen'),jdecode(''),'/50755.html','true',[],'',''],
	['PAGE','4850',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/4850/index.html','true',[ 
		['PAGE','4877',jdecode('Geschichte'),jdecode(''),'/4850/4877.html','true',[],'',''],
		['PAGE','4904',jdecode('Turnerinnen'),jdecode(''),'/4850/4904.html','true',[],'',''],
		['PAGE','4931',jdecode('TrainerInnen'),jdecode(''),'/4850/4931.html','true',[],'',''],
		['PAGE','108816',jdecode('Kampfrichterinnen'),jdecode(''),'/4850/108816.html','true',[],'','']
	],'',''],
	['PAGE','4958',jdecode('Aktuelles'),jdecode(''),'/4958.html','true',[],'',''],
	['PAGE','5012',jdecode('Termine'),jdecode(''),'/5012.html','true',[],'',''],
	['PAGE','5039',jdecode('Wettkampfresultate'),jdecode(''),'/5039.html','true',[],'',''],
	['PAGE','5147',jdecode('Bildergalerie'),jdecode(''),'/5147/index.html','true',[ 
		['PAGE','169601',jdecode('Das+Jahr+2010'),jdecode(''),'/5147/169601.html','true',[],'',''],
		['PAGE','141501',jdecode('Das+Jahr+2009'),jdecode(''),'/5147/141501.html','true',[],'',''],
		['PAGE','114988',jdecode('Das+Jahr+2008'),jdecode(''),'/5147/114988.html','true',[],'',''],
		['PAGE','110969',jdecode('Das+Jahr+2007'),jdecode(''),'/5147/110969.html','true',[],'',''],
		['PAGE','107653',jdecode('Das+Jahr+2006'),jdecode(''),'/5147/107653.html','true',[],'',''],
		['PAGE','107662',jdecode('Das+Jahr+2005'),jdecode(''),'/5147/107662.html','true',[],'',''],
		['PAGE','107671',jdecode('Das+Jahr+2004'),jdecode(''),'/5147/107671.html','true',[],'',''],
		['PAGE','107680',jdecode('Das+Jahr+2003'),jdecode(''),'/5147/107680.html','true',[],'',''],
		['PAGE','111034',jdecode('Oldies'),jdecode(''),'/5147/111034.html','true',[],'','']
	],'',''],
	['PAGE','5174',jdecode('Sponsoren%2FG%C3%B6nner'),jdecode(''),'/5174.html','true',[],'',''],
	['PAGE','169622',jdecode('Partner'),jdecode(''),'/169622.html','true',[],'',''],
	['PAGE','52143',jdecode('Fragen+%26+Antworten'),jdecode(''),'/52143/index.html','true',[ 
		['PAGE','54964',jdecode('Fragen+%26+Antworten+%28Folgeseite%29'),jdecode(''),'/52143/54964.html','false',[],'','']
	],'',''],
	['PAGE','89828',jdecode('Jobs'),jdecode(''),'/89828.html','true',[],'',''],
	['PAGE','5066',jdecode('Kontakt'),jdecode(''),'/5066.html','true',[],'',''],
	['PAGE','52392',jdecode('G%C3%A4stebuch'),jdecode(''),'/52392/index.html','true',[ 
		['PAGE','52393',jdecode('Eintr%C3%A4ge'),jdecode(''),'/52392/52393.html','false',[],'','']
	],'',''],
	['PAGE','161101',jdecode('SMJ%2FCSJ+2010'),jdecode(''),'/161101/index.html','true',[ 
		['PAGE','162901',jdecode('Helfer'),jdecode(''),'/161101/162901.html','true',[],'',''],
		['PAGE','161122',jdecode('OK+Intern'),jdecode(''),'/161101/161122.html','true',[],'','']
	],'',''],
	['PAGE','76617',jdecode('Kant.+BE+Niveautag'),jdecode(''),'/76617/index.html','true',[ 
		['PAGE','110005',jdecode('Ausschreibung%2C+OK'),jdecode(''),'/76617/110005.html','true',[],'',''],
		['PAGE','79525',jdecode('Zeitplan%2C+Einteilung'),jdecode(''),'/76617/79525.html','true',[],'',''],
		['PAGE','77362',jdecode('Ranglisten'),jdecode(''),'/76617/77362.html','true',[],'',''],
		['PAGE','109949',jdecode('Impressionen%2C+Bilder'),jdecode(''),'/76617/109949.html','true',[],'',''],
		['PAGE','77470',jdecode('Kontakt'),jdecode(''),'/76617/77470.html','true',[],'',''],
		['PAGE','78346',jdecode('Routenplaner%2C+Anfahrt'),jdecode(''),'/76617/78346.html','true',[],'',''],
		['PAGE','78376',jdecode('Lageplan'),jdecode(''),'/76617/78376.html','true',[],'',''],
		['PAGE','82593',jdecode('Kontakt+%28Form+followup+page%29'),jdecode(''),'/76617/82593.html','false',[],'','']
	],'',''],
	['PAGE','79917',jdecode('KUTU+Intern'),jdecode(''),'/79917/index.html','true',[ 
		['PAGE','92409',jdecode('Seite+der+Eltern'),jdecode(''),'/79917/92409.html','true',[],'',''],
		['PAGE','93537',jdecode('Elternforum'),jdecode(''),'/79917/93537.html','true',[],'',''],
		['PAGE','95542',jdecode('%22Vielfrass%22+Sponsoring'),jdecode(''),'/79917/95542/index.html','true',[ 
			['PAGE','95779',jdecode('%22Vielfrass%22+Sponsoring+%28Form+followup+page%29'),jdecode(''),'/79917/95542/95779.html','false',[],'','']
		],'',''],
		['PAGE','92651',jdecode('Vorstand'),jdecode(''),'/79917/92651.html','true',[],'',''],
		['PAGE','94913',jdecode('%22Vielfrass%22+2005+%28Form+followup+page%29'),jdecode(''),'/79917/94913.html','false',[],'','']
	],'',''],
	['PAGE','95936',jdecode('Weblog'),jdecode(''),'/95936.html','true',[],'','']];
var siteelementCount=48;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='1233';
theSitetree.keyvisualName='fitness.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='230';
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: 			'Profile',
				paletteFamily: 	'336699',
				keyvisualId: 	'1233',
				keyvisualName: 	'fitness.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'230',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'336699',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4584',
internalId:  '',
customField: '20100228-142421'
};
webappMappings['1002']=webappMappings['1002-52392ABW0X0INXX5S']={
webappId:    '1002',
documentId:  '52392',
internalId:  '52392ABW0X0INXX5S',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4584',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4850',
internalId:  '',
customField: '20100102-131123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4904',
internalId:  '',
customField: '20091018-093000'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '78376',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '78346',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1501']=webappMappings['1501-536662']={
webappId:    '1501',
documentId:  '4584',
internalId:  '536662',
customField: '1501'
};
webappMappings['1009']=webappMappings['1009-4906751']={
webappId:    '1009',
documentId:  '82593',
internalId:  '4906751',
customField: 'isFollowupPage:true;documentId:77470;'
};
webappMappings['7008']=webappMappings['7008-1111']={
webappId:    '7008',
documentId:  '77470',
internalId:  '1111',
customField: 'language:de;country:CH;'
};
webappMappings['1003']=webappMappings['1003-abw0x0inxx5s10c29fef9ae']={
webappId:    '1003',
documentId:  '93537',
internalId:  'abw0x0inxx5s10c29fef9ae',
customField: 'de:CH:'
};
webappMappings['1009']=webappMappings['1009-5863991']={
webappId:    '1009',
documentId:  '95779',
internalId:  '5863991',
customField: 'isFollowupPage:true;documentId:95542;'
};
webappMappings['1009']=webappMappings['1009-5863991']={
webappId:    '1009',
documentId:  '94913',
internalId:  '5863991',
customField: 'isFollowupPage:true;documentId:94158;'
};
webappMappings['7008']=webappMappings['7008-1112']={
webappId:    '7008',
documentId:  '95542',
internalId:  '1112',
customField: 'language:de;country:CH;'
};
webappMappings['7050']=webappMappings['7050-254']={
webappId:    '7050',
documentId:  '95936',
internalId:  '254',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-1113']={
webappId:    '7008',
documentId:  '5066',
internalId:  '1113',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161101',
internalId:  '',
customField: '20100102-122839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141501',
internalId:  '',
customField: '20100228-143020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50755',
internalId:  '',
customField: '20031118-214049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4877',
internalId:  '',
customField: '20090102-115853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4931',
internalId:  '',
customField: '20100102-132142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108816',
internalId:  '',
customField: '20091002-084527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4958',
internalId:  '',
customField: '20090530-122303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5012',
internalId:  '',
customField: '20100102-121513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5039',
internalId:  '',
customField: '20100102-122746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5147',
internalId:  '',
customField: '20070718-200019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114988',
internalId:  '',
customField: '20090410-170447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110969',
internalId:  '',
customField: '20080824-175947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107653',
internalId:  '',
customField: '20070711-222656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107662',
internalId:  '',
customField: '20080104-103820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107671',
internalId:  '',
customField: '20060701-175336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107680',
internalId:  '',
customField: '20060701-174352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111034',
internalId:  '',
customField: '20070711-213550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5174',
internalId:  '',
customField: '20100221-173441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52143',
internalId:  '',
customField: '20090102-101947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54964',
internalId:  '',
customField: '20031118-224702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89828',
internalId:  '',
customField: '20080907-213815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5066',
internalId:  '',
customField: '20090102-105335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52392',
internalId:  '',
customField: '20031117-222508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52393',
internalId:  '',
customField: '20031117-222508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76617',
internalId:  '',
customField: '20090102-220720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110005',
internalId:  '',
customField: '20090102-151400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79525',
internalId:  '',
customField: '20090301-094919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77362',
internalId:  '',
customField: '20090321-192534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109949',
internalId:  '',
customField: '20070318-210047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77470',
internalId:  '',
customField: '20090103-091514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78346',
internalId:  '',
customField: '20090120-140216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78376',
internalId:  '',
customField: '20090120-140315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82593',
internalId:  '',
customField: '20050201-233211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79917',
internalId:  '',
customField: '20100102-131047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92409',
internalId:  '',
customField: '20090405-110217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93537',
internalId:  '',
customField: '20050907-001658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95542',
internalId:  '',
customField: '20051024-223933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95779',
internalId:  '',
customField: '20051004-221335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92651',
internalId:  '',
customField: '20100102-133423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94913',
internalId:  '',
customField: '20051004-213652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95936',
internalId:  '',
customField: '20090203-170018'
};
webappMappings['7008']=webappMappings['7008-3495']={
webappId:    '7008',
documentId:  '52143',
internalId:  '3495',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161122',
internalId:  '',
customField: '20091201-214341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162901',
internalId:  '',
customField: '20091201-222902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169622',
internalId:  '',
customField: '20100221-173359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169601',
internalId:  '',
customField: '20100221-172302'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXX5S';
var companyName   = 'Kunstturnerinnen+-+Uetendorf';
var htmlTitle	  = 'Kunstturnerinnen+Uetendorf';
var metaKeywords  = 'kutu%2Cuetendorf%2Csport%2Ckunstturnen%2Cfrauensport%2Cleistungssport%2Cturnen%2Cm%C3%A4dchen%2Cfreizeit%2Cfreizeitbesch%C3%A4ftigung%2Cjugend%2Cuetendorf%2Cturnverein%2Cturnerin%2Cturnerinnen%2Csponsoring%2Chobby%2Cleistung%2Cerfolg%2Cfreude%2Cleben%2Cverein%2Causdauer%2Celeganz%2Canmut%2C+kraft%2Cfleiss%2Causdauer%2Cmut%2Cwettkampf%2C+wettk%C3%A4mpfe%2Cbkt%2Ckunstturnerinnentage%2C++spass%2Cnational%2Cfrauenf%C3%B6rderung+';
var metaContents  = 'Die+Kunstturnerinnen+Uetendorf+mit+Leistung+und+Freude+zum+Erfolg';
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();
};
