/* [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','1301',jdecode('Aktualno%C5%9Bci'),jdecode(''),'/1301.html','true',[],'',''],
	['PAGE','135901',jdecode('Kontakt'),jdecode(''),'/135901.html','true',[],'',''],
	['PAGE','7201',jdecode('Skrzynka+na+listy'),jdecode(''),'/7201.html','true',[],'',''],
	['PAGE','1352',jdecode('O+nas'),jdecode(''),'/1352/index.html','true',[ 
		['PAGE','1373',jdecode('Wsp%C3%B3%C5%82praca'),jdecode(''),'/1352/1373.html','true',[],'',''],
		['PAGE','1394',jdecode('Statut'),jdecode(''),'/1352/1394.html','true',[],'',''],
		['PAGE','1415',jdecode('Sprawozdania'),jdecode(''),'/1352/1415.html','true',[],'','']
	],'',''],
	['PAGE','9301',jdecode('1%25'),jdecode(''),'/9301/index.html','true',[ 
		['PAGE','17101',jdecode('Darowizny'),jdecode(''),'/9301/17101.html','true',[],'','']
	],'',''],
	['PAGE','1457',jdecode('Programy'),jdecode(''),'/1457/index.html','true',[ 
		['PAGE','1478',jdecode('%22Grochowska%22'),jdecode(''),'/1457/1478.html','true',[],'',''],
		['PAGE','38701',jdecode('Projekty+Autonomiczne'),jdecode(''),'/1457/38701.html','true',[],'','']
	],'',''],
	['PAGE','25001',jdecode('SubProgramy'),jdecode(''),'/25001/index.html','true',[ 
		['PAGE','28401',jdecode('Promocja+Zabytk%C3%B3w'),jdecode(''),'/25001/28401.html','true',[],'',''],
		['PAGE','28422',jdecode('Forum+ds.+Rewitalizacji'),jdecode(''),'/25001/28422.html','true',[],'','']
	],'',''],
	['PAGE','1541',jdecode('Projekty'),jdecode(''),'/1541/index.html','true',[ 
		['PAGE','1583',jdecode('M%C3%B3j+Groch%C3%B3w'),jdecode(''),'/1541/1583.html','true',[],'',''],
		['PAGE','62501',jdecode('Kapliczki+na+Pradze'),jdecode(''),'/1541/62501.html','true',[],'',''],
		['PAGE','140501',jdecode('Pragnienie'),jdecode(''),'/1541/140501.html','true',[],'',''],
		['PAGE','145401',jdecode('Kurs+SOZ'),jdecode(''),'/1541/145401.html','true',[],'',''],
		['PAGE','53201',jdecode('Ordonka'),jdecode(''),'/1541/53201.html','true',[],'',''],
		['PAGE','53222',jdecode('Zielony+Teatr'),jdecode(''),'/1541/53222.html','true',[],'','']
	],'',''],
	['PAGE','1625',jdecode('Relacje'),jdecode(''),'/1625/index.html','true',[ 
		['PAGE','1646',jdecode('Festiwal+%22Grochowska%22'),jdecode(''),'/1625/1646.html','true',[],'',''],
		['PAGE','44201',jdecode('Lokalny+Reporter+%5B1%5D'),jdecode(''),'/1625/44201.html','true',[],'',''],
		['PAGE','1667',jdecode('Made+in+Poland'),jdecode(''),'/1625/1667.html','true',[],'',''],
		['PAGE','1688',jdecode('Kapliczki+na+Pradze'),jdecode(''),'/1625/1688.html','true',[],'',''],
		['PAGE','27101',jdecode('M%C3%B3j+Groch%C3%B3w'),jdecode(''),'/1625/27101.html','true',[],'',''],
		['PAGE','1562',jdecode('Literatura+Na+Peryferiach'),jdecode(''),'/1625/1562.html','true',[],'',''],
		['PAGE','27122',jdecode('Literatura+Na...+-+2007'),jdecode(''),'/1625/27122.html','true',[],'',''],
		['PAGE','94901',jdecode('Literatura+Na...+-+2008'),jdecode(''),'/1625/94901.html','true',[],'',''],
		['PAGE','117801',jdecode('Literackie+Re-wizje'),jdecode(''),'/1625/117801.html','true',[],'',''],
		['PAGE','1604',jdecode('Maski'),jdecode(''),'/1625/1604.html','true',[],'',''],
		['PAGE','144801',jdecode('kabaret+Qui+Pro+Quo'),jdecode(''),'/1625/144801.html','true',[],'',''],
		['PAGE','157101',jdecode('Plany+dla+Kamionka'),jdecode(''),'/1625/157101.html','true',[],'','']
	],'',''],
	['PAGE','29901',jdecode('Artyku%C5%82y'),jdecode(''),'/29901/index.html','true',[ 
		['PAGE','45701',jdecode('Kamionkowska+Star%C3%B3wka'),jdecode(''),'/29901/45701.html','true',[],'',''],
		['PAGE','45722',jdecode('Samotny+my%C5%9Bli...ciel'),jdecode(''),'/29901/45722.html','true',[],'',''],
		['PAGE','129701',jdecode('Groch%C3%B3w+-+tak+zapami%C4%99tam'),jdecode(''),'/29901/129701.html','true',[],'',''],
		['PAGE','138401',jdecode('Ulica+Tysi%C4%85clecia'),jdecode(''),'/29901/138401.html','true',[],'','']
	],'',''],
	['PAGE','1709',jdecode('Partnerzy'),jdecode(''),'/1709.html','true',[],'',''],
	['PAGE','30401',jdecode('Newsletter'),jdecode(''),'/30401.html','true',[],'',''],
	['PAGE','148201',jdecode('Regulamin+-+Kurs+SOZ'),jdecode(''),'/148201.html','false',[],'',''],
	['PAGE','148222',jdecode('Program+Kursu+SOZ'),jdecode(''),'/148222.html','false',[],'',''],
	['PAGE','148243',jdecode('Status+SOZ'),jdecode(''),'/148243.html','false',[],'',''],
	['PAGE','146901',jdecode('Formularz+-+Kurs+SOZ'),jdecode(''),'/146901.html','false',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Wildcard';
theSitetree.paletteFamily='7895A7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='28288';
theSitetree.graphicsetId='13197';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Wildcard',
				paletteFamily: 	'7895A7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'28288',
				graphicsetId: 	'13197',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1301',
internalId:  '',
customField: '20101230-203857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1457',
internalId:  '',
customField: '20091001-171810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94901',
internalId:  '',
customField: '20081223-194802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1625',
internalId:  '',
customField: '20100816-232827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1352',
internalId:  '',
customField: '20091006-002657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1394',
internalId:  '',
customField: '20080218-230519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1373',
internalId:  '',
customField: '20080219-002235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20080218-174433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1415',
internalId:  '',
customField: '20080219-002446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1541',
internalId:  '',
customField: '20100209-180825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1709',
internalId:  '',
customField: '20091004-042411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20090123-172532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135901',
internalId:  '',
customField: '20091006-002343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20080219-002853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138401',
internalId:  '',
customField: '20090518-014954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1478',
internalId:  '',
customField: '20080413-205304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62501',
internalId:  '',
customField: '20080305-231618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20080916-095756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53222',
internalId:  '',
customField: '20080228-151244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1604',
internalId:  '',
customField: '20091001-165746'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1646',
internalId:  '',
customField: '20080304-095128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20080829-213018'
};
webappMappings['7008']=webappMappings['7008-636']={
webappId:    '7008',
documentId:  '7201',
internalId:  '636',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20080218-210719'
};
webappMappings['7008']=webappMappings['7008-637']={
webappId:    '7008',
documentId:  '30401',
internalId:  '637',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38701',
internalId:  '',
customField: '20091002-110757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20080829-213047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28422',
internalId:  '',
customField: '20080829-213119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1667',
internalId:  '',
customField: '20080303-101655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1688',
internalId:  '',
customField: '20080305-231057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20080302-174114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27122',
internalId:  '',
customField: '20091001-165005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20081223-204936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117801',
internalId:  '',
customField: '20091001-155148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129701',
internalId:  '',
customField: '20081223-200713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20080302-134614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1583',
internalId:  '',
customField: '20080302-165421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1562',
internalId:  '',
customField: '20091001-164644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45722',
internalId:  '',
customField: '20080228-233618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45701',
internalId:  '',
customField: '20080326-121846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140501',
internalId:  '',
customField: '20101103-132258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144801',
internalId:  '',
customField: '20100816-232105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145401',
internalId:  '',
customField: '20100209-180903'
};
webappMappings['7008']=webappMappings['7008-4726']={
webappId:    '7008',
documentId:  '146901',
internalId:  '4726',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148201',
internalId:  '',
customField: '20091022-034538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148222',
internalId:  '',
customField: '20091006-171655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148243',
internalId:  '',
customField: '20091006-170936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146901',
internalId:  '',
customField: '20091005-174850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157101',
internalId:  '',
customField: '20100816-234955'
};
var canonHostname = 'wsc2.home.net.pl';
var accountId     = 'AHPL10INV4YR';
var companyName   = 'Stowarzyszenie+CREO';
var htmlTitle	  = 'Stowarzyszenie+Creo%2C+Creo+Association';
var metaKeywords  = 'HEADcreo%2FHEAD+HEADstowarzyszenie%2FHEAD+HEADkultura%2FHEAD+HEADrewitalizacja%2FHEAD+HEADsztuka%2FHEAD+HEADochrona+zabytk%C3%B3w%2FHEAD+HEADteatr%2FHEAD+HEADedukacja%2FHEAD+HEADspo%C5%82eczno%C5%9B%C4%87+lokalna%2FHEAD';
var metaContents  = 'Stowarzyszenie+Creo.+Dzia%C5%82ania+z+zakresu+kultury%2C+ochrony+d%C3%B3br+kultury+i+tradycji%3B+sztuki%2C+edukacji%2C+wsp%C3%B3%C5%82pracy+mi%C4%99dzynarodowej%2C+rozwoju+demokracji+i+spo%C5%82eczno%C5%9Bci+lokalnych+oraz+wolontariatu.';
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();
};

