/* [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','9401',jdecode('Aktualno%C5%9Bci'),jdecode(''),'/9401.html','true',[],'',''],
	['PAGE','552',jdecode('O+nas'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','76112',jdecode('Starty+2010'),jdecode(''),'/76112/index.html','true',[ 
		['PAGE','78212',jdecode('MTB+Marathon+-+Dolsk'),jdecode(''),'/76112/78212.html','true',[],'',''],
		['PAGE','76133',jdecode('Bike+Maraton+-+Wroc%C5%82aw'),jdecode(''),'/76112/76133.html','true',[],'',''],
		['PAGE','78912',jdecode('MTB+Marathon+-+Karpacz'),jdecode(''),'/76112/78912.html','true',[],'',''],
		['PAGE','79612',jdecode('Bike+Maraton+-+Zdzieszowice'),jdecode(''),'/76112/79612.html','true',[],'',''],
		['PAGE','80612',jdecode('Bike+Maraton+-+Polanica-Zdr%C3%B3j'),jdecode(''),'/76112/80612.html','true',[],'',''],
		['PAGE','81512',jdecode('Bike+Maraton+-+Piechowice'),jdecode(''),'/76112/81512.html','true',[],'',''],
		['PAGE','82912',jdecode('MTB+Marathon+-+Mi%C4%99dzyg%C3%B3rze'),jdecode(''),'/76112/82912.html','true',[],'',''],
		['PAGE','83312',jdecode('Maraton+MTB+Obisz%C3%B3w'),jdecode(''),'/76112/83312.html','true',[],'',''],
		['PAGE','84512',jdecode('MTB+%C5%81ag%C3%B3w'),jdecode(''),'/76112/84512.html','true',[],'',''],
		['PAGE','85812',jdecode('Bike+Maraton+-+Krak%C3%B3w'),jdecode(''),'/76112/85812.html','true',[],'',''],
		['PAGE','85412',jdecode('Uphill+Race+%C5%9Anie%C5%BCka+-+Karpacz'),jdecode(''),'/76112/85412.html','true',[],'',''],
		['PAGE','86412',jdecode('Bike+Maraton+-+Jelenia+G%C3%B3ra'),jdecode(''),'/76112/86412.html','true',[],'',''],
		['PAGE','91212',jdecode('Bike+Maraton+-+Wielu%C5%84'),jdecode(''),'/76112/91212.html','true',[],'','']
	],'',''],
	['PAGE','27701',jdecode('Starty+2009'),jdecode(''),'/27701/index.html','true',[ 
		['PAGE','29301',jdecode('Bike+Maraton+Wroc%C5%82aw'),jdecode(''),'/27701/29301.html','true',[],'',''],
		['PAGE','5901',jdecode('Bike+Maraton+Bogusz%C3%B3w-Gorce'),jdecode(''),'/27701/5901.html','true',[],'',''],
		['PAGE','29343',jdecode('Bike+Maraton+Zdzieszowice'),jdecode(''),'/27701/29343.html','true',[],'',''],
		['PAGE','34301',jdecode('Bike+Maraton+Piechowice'),jdecode(''),'/27701/34301.html','true',[],'',''],
		['PAGE','34322',jdecode('Bike+Maraton+Jelenia+G%C3%B3ra'),jdecode(''),'/27701/34322.html','true',[],'',''],
		['PAGE','38901',jdecode('Maraton+MTB+Obisz%C3%B3w'),jdecode(''),'/27701/38901.html','true',[],'',''],
		['PAGE','47501',jdecode('IX+Maraton+Le%C5%9Bny'),jdecode(''),'/27701/47501.html','true',[],'',''],
		['PAGE','50001',jdecode('Bike+Maraton+Krak%C3%B3w'),jdecode(''),'/27701/50001.html','true',[],'',''],
		['PAGE','52012',jdecode('Bike+Maraton+%C5%9Awierad%C3%B3w-Zdr%C3%B3j'),jdecode(''),'/27701/52012.html','true',[],'',''],
		['PAGE','52033',jdecode('Uhill+Race+%C5%9Anie%C5%BCka'),jdecode(''),'/27701/52033.html','true',[],'',''],
		['PAGE','56112',jdecode('Festiwal+Rowerowy+Szklarska+Por%C4%99ba'),jdecode(''),'/27701/56112.html','true',[],'',''],
		['PAGE','55212',jdecode('Bike+Maraton+Ustro%C5%84'),jdecode(''),'/27701/55212.html','true',[],'',''],
		['PAGE','58412',jdecode('Bike+Maraton+Jakuszyce'),jdecode(''),'/27701/58412.html','true',[],'',''],
		['PAGE','61612',jdecode('Bike+Maraton+Pozna%C5%84'),jdecode(''),'/27701/61612.html','true',[],'',''],
		['PAGE','71612',jdecode('64-sto+MTB+Maraton+Osieczna'),jdecode(''),'/27701/71612.html','true',[],'',''],
		['PAGE','66612',jdecode('Bike+Maraton+Karpacz'),jdecode(''),'/27701/66612.html','true',[],'',''],
		['PAGE','68312',jdecode('MP+Wa%C5%82brzych'),jdecode(''),'/27701/68312.html','true',[],'',''],
		['PAGE','70312',jdecode('Bike+Maraton+Polanica-Zdr%C3%B3j'),jdecode(''),'/27701/70312.html','true',[],'',''],
		['PAGE','65412',jdecode('Ranking+klubowy+2009'),jdecode(''),'/27701/65412.html','true',[],'',''],
		['PAGE','72312',jdecode('Klasyfikacja+generalna+BM+2009'),jdecode(''),'/27701/72312.html','true',[],'','']
	],'',''],
	['PAGE','594',jdecode('IX+Maraton+Le%C5%9Bny'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','28001',jdecode('Lista+zg%C5%82oszonych'),jdecode(''),'/594/28001.html','true',[],'',''],
		['PAGE','615',jdecode('Regulamin'),jdecode(''),'/594/615.html','true',[],'',''],
		['PAGE','636',jdecode('Trasa'),jdecode(''),'/594/636.html','true',[],'',''],
		['PAGE','27722',jdecode('Wyniki'),jdecode(''),'/594/27722.html','true',[],'',''],
		['PAGE','47201',jdecode('Zdj%C4%99cia'),jdecode(''),'/594/47201.html','true',[],'','']
	],'',''],
	['PAGE','57612',jdecode('X+Grand+Prix+Lubina'),jdecode(''),'/57612/index.html','false',[ 
		['PAGE','57912',jdecode('Dojazd'),jdecode(''),'/57612/57912.html','true',[],'',''],
		['PAGE','26101',jdecode('Zapisy'),jdecode(''),'/57612/26101.html','true',[],'',''],
		['PAGE','59912',jdecode('Regulamin'),jdecode(''),'/57612/59912.html','false',[],'',''],
		['PAGE','65212',jdecode('Lista+zg%C5%82oszonych'),jdecode(''),'/57612/65212.html','true',[],'','']
	],'',''],
	['PAGE','36601',jdecode('Nasze+zdj%C4%99cia'),jdecode(''),'/36601/index.html','true',[ 
		['PAGE','18701',jdecode('Szklarska+Por%C4%99ba+2008'),jdecode(''),'/36601/18701.html','true',[],'',''],
		['PAGE','36622',jdecode('Szklarska+Por%C4%99ba+2009'),jdecode(''),'/36601/36622.html','true',[],'','']
	],'',''],
	['PAGE','657',jdecode('Ciekawe+linki'),jdecode(''),'/657.html','true',[],'',''],
	['PAGE','699',jdecode('Kontakt'),jdecode(''),'/699.html','true',[],'',''],
	['PAGE','33201',jdecode('Forum'),jdecode(''),'/33201.html','true',[],'','']];
var siteelementCount=54;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='414E8C';
theSitetree.keyvisualId='8145';
theSitetree.keyvisualName='kv_8145.jpg';
theSitetree.fontsetId='28173';
theSitetree.graphicsetId='12397';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='414E8C';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Citadel',
				paletteFamily: 	'414E8C',
				keyvisualId: 	'8145',
				keyvisualName: 	'kv_8145.jpg',
				fontsetId: 		'28173',
				graphicsetId: 	'12397',
				contentColor: 	'FFFFFF',
				contentBGColor: '414E8C',
				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:  '26101',
internalId:  '',
customField: '20090527-144622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20091014-112800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090912-092917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090618-160604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090617-213644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20090520-112030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090603-144216'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29343',
internalId:  '',
customField: '20091013-123852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20091013-123434'
};
webappMappings['7050']=webappMappings['7050-1361']={
webappId:    '7050',
documentId:  '9401',
internalId:  '1361',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20090924-083042'
};
webappMappings['7060']=webappMappings['7060-96a567202f70dcc71f3b9cec28dcb09a']={
webappId:    '7060',
documentId:  '18701',
internalId:  '96a567202f70dcc71f3b9cec28dcb09a',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20090520-111702'
};
webappMappings['7008']=webappMappings['7008-2959']={
webappId:    '7008',
documentId:  '26101',
internalId:  '2959',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20100817-110601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27722',
internalId:  '',
customField: '20090622-170116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20090621-075013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52033',
internalId:  '',
customField: '20091014-121127'
};
webappMappings['1003']=webappMappings['1003-aaz010inea6q121a519ba69']={
webappId:    '1003',
documentId:  '33201',
internalId:  'aaz010inea6q121a519ba69',
customField: 'pl:PL'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20091013-122651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20090603-100014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20091014-110903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34322',
internalId:  '',
customField: '20091014-111636'
};
webappMappings['7060']=webappMappings['7060-744bfe618a0f61cf33e799d30b9eab34']={
webappId:    '7060',
documentId:  '36622',
internalId:  '744bfe618a0f61cf33e799d30b9eab34',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20090610-143014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36622',
internalId:  '',
customField: '20090610-143239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20091014-112423'
};
webappMappings['7060']=webappMappings['7060-202b365bea5a0906303e8288c5e93616']={
webappId:    '7060',
documentId:  '47201',
internalId:  '202b365bea5a0906303e8288c5e93616',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20090624-203423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20091014-113151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50001',
internalId:  '',
customField: '20091014-115341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52012',
internalId:  '',
customField: '20091014-120552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55212',
internalId:  '',
customField: '20091015-082234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56112',
internalId:  '',
customField: '20090913-195929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76112',
internalId:  '',
customField: '20100831-081950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57612',
internalId:  '',
customField: '20090911-084122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57912',
internalId:  '',
customField: '20090828-091746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58412',
internalId:  '',
customField: '20091015-083602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59912',
internalId:  '',
customField: '20090902-114031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61612',
internalId:  '',
customField: '20090913-193835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65212',
internalId:  '',
customField: '20090916-105921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65412',
internalId:  '',
customField: '20091022-081445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66612',
internalId:  '',
customField: '20091001-125056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68312',
internalId:  '',
customField: '20090929-141916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70312',
internalId:  '',
customField: '20091013-111647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71612',
internalId:  '',
customField: '20091010-092140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72312',
internalId:  '',
customField: '20091010-180808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76133',
internalId:  '',
customField: '20100817-142620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78212',
internalId:  '',
customField: '20100504-111035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78912',
internalId:  '',
customField: '20100504-110653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79612',
internalId:  '',
customField: '20100817-142833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80612',
internalId:  '',
customField: '20100817-142849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81512',
internalId:  '',
customField: '20100817-143046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82912',
internalId:  '',
customField: '20100622-092013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83312',
internalId:  '',
customField: '20100630-124113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84512',
internalId:  '',
customField: '20100721-103444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85412',
internalId:  '',
customField: '20100816-094209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85812',
internalId:  '',
customField: '20100817-144333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86412',
internalId:  '',
customField: '20100825-150249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91212',
internalId:  '',
customField: '20100831-093751'
};
var canonHostname = 'cm4all.az.pl';
var accountId     = 'AAZ010INEA6Q';
var companyName   = 'Stowarzyszenie+Turystyczno-Sportowe+%22Lubi%C5%84ski+Klub+Rowerowy+BIKER%22';
var htmlTitle	  = 'Lubi%C5%84ski+Klub+Rowerowy+BIKER';
var metaKeywords  = 'klub+rowerowy%2C+BIKER%2C+LKR%2C+Lubin%2C+maraton+le%C5%9Bny%2C+xc';
var metaContents  = 'Lubi%C5%84ski+Klub+Rowerowy+BIKER+zrzesza+mi%C5%82o%C5%9Bnik%C3%B3w+MTB.+Co+roku+organizujemy+Maraton+Le%C5%9Bny+po+Ziemi+Lubi%C5%84skiej+oraz+Grand+Prix+Lubina+w+kolarstwie+g%C3%B3rskim+im.+Adriana+Kotkowskiego.';
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();
};
