/* [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','1412',jdecode('Strona+g%C5%82%C3%B3wna'),jdecode(''), jdecode('%2F1412.html'), 'true',[],'',''],
	['PAGE','2633',jdecode('Aktualnie+budujemy'),jdecode(''), jdecode('%2F2633.html'), 'true',[],'',''],
	['PAGE','2654',jdecode('Technologia+i+materia%C5%82y'),jdecode(''), jdecode('%2F2654.html'), 'true',[],'',''],
	['PAGE','2675',jdecode('Oferta'),jdecode(''), jdecode('%2F2675.html'), 'true',[],'',''],
	['PAGE','2696',jdecode('Domy'),jdecode(''), jdecode('%2F2696%2Findex.html'), 'true',[ 
		['PAGE','66537',jdecode('Dworek'),jdecode(''), jdecode('%2F2696%2F66537.html'), 'true',[],'',''],
		['PAGE','2822',jdecode('Grze%C5%9B'),jdecode(''), jdecode('%2F2696%2F2822.html'), 'true',[],'',''],
		['PAGE','69437',jdecode('Grze%C5%9B+II'),jdecode(''), jdecode('%2F2696%2F69437.html'), 'true',[],'',''],
		['PAGE','65637',jdecode('Dom+przy+Zamku'),jdecode(''), jdecode('%2F2696%2F65637.html'), 'true',[],'',''],
		['PAGE','55626',jdecode('Reda'),jdecode(''), jdecode('%2F2696%2F55626.html'), 'true',[],'',''],
		['PAGE','60826',jdecode('Dom+nad+jeziorem'),jdecode(''), jdecode('%2F2696%2F60826.html'), 'true',[],'',''],
		['PAGE','2864',jdecode('Przepi%C3%B3rka'),jdecode(''), jdecode('%2F2696%2F2864.html'), 'true',[],'',''],
		['PAGE','3116',jdecode('Sasanka'),jdecode(''), jdecode('%2F2696%2F3116.html'), 'true',[],'',''],
		['PAGE','72837',jdecode('Z1%2Cwariant+w2%2BD+GL+bl'),jdecode(''), jdecode('%2F2696%2F72837.html'), 'true',[],'',''],
		['PAGE','2990',jdecode('Le%C5%9Bne+zacisze'),jdecode(''), jdecode('%2F2696%2F2990.html'), 'true',[],'',''],
		['PAGE','3074',jdecode('Zawoja'),jdecode(''), jdecode('%2F2696%2F3074.html'), 'true',[],'',''],
		['PAGE','2948',jdecode('Dom+Letni+L69'),jdecode(''), jdecode('%2F2696%2F2948.html'), 'true',[],'',''],
		['PAGE','2969',jdecode('Ja%C5%9Bmin'),jdecode(''), jdecode('%2F2696%2F2969.html'), 'true',[],'',''],
		['PAGE','2906',jdecode('Biedronka'),jdecode(''), jdecode('%2F2696%2F2906.html'), 'true',[],'',''],
		['PAGE','2801',jdecode('Dorotka'),jdecode(''), jdecode('%2F2696%2F2801.html'), 'true',[],'',''],
		['PAGE','3053',jdecode('Trakt'),jdecode(''), jdecode('%2F2696%2F3053.html'), 'true',[],'',''],
		['PAGE','3095',jdecode('Kasia'),jdecode(''), jdecode('%2F2696%2F3095.html'), 'true',[],'',''],
		['PAGE','2927',jdecode('Chatka+drewniana'),jdecode(''), jdecode('%2F2696%2F2927.html'), 'true',[],'',''],
		['PAGE','3137',jdecode('Monika'),jdecode(''), jdecode('%2F2696%2F3137.html'), 'true',[],'',''],
		['PAGE','2780',jdecode('Zuzanna'),jdecode(''), jdecode('%2F2696%2F2780.html'), 'true',[],'',''],
		['PAGE','2843',jdecode('Patrycja'),jdecode(''), jdecode('%2F2696%2F2843.html'), 'true',[],'',''],
		['PAGE','2738',jdecode('Eliza'),jdecode(''), jdecode('%2F2696%2F2738.html'), 'true',[],'',''],
		['PAGE','2717',jdecode('Magdalena'),jdecode(''), jdecode('%2F2696%2F2717.html'), 'true',[],'',''],
		['PAGE','2759',jdecode('Lucynka'),jdecode(''), jdecode('%2F2696%2F2759.html'), 'true',[],'',''],
		['PAGE','3158',jdecode('Agatka'),jdecode(''), jdecode('%2F2696%2F3158.html'), 'true',[],'',''],
		['PAGE','3032',jdecode('Sosenka'),jdecode(''), jdecode('%2F2696%2F3032.html'), 'true',[],'',''],
		['PAGE','3011',jdecode('Modrzew'),jdecode(''), jdecode('%2F2696%2F3011.html'), 'true',[],'',''],
		['PAGE','2885',jdecode('Letnia+Rezydencja'),jdecode(''), jdecode('%2F2696%2F2885.html'), 'true',[],'','']
	],'',''],
	['PAGE','3179',jdecode('Domki+drewniane'),jdecode(''), jdecode('%2F3179%2Findex.html'), 'true',[ 
		['PAGE','62726',jdecode('Jantar'),jdecode(''), jdecode('%2F3179%2F62726.html'), 'true',[],'',''],
		['PAGE','50126',jdecode('Lucy'),jdecode(''), jdecode('%2F3179%2F50126.html'), 'true',[],'',''],
		['PAGE','3221',jdecode('Danusia'),jdecode(''), jdecode('%2F3179%2F3221.html'), 'true',[],'',''],
		['PAGE','3242',jdecode('Misza'),jdecode(''), jdecode('%2F3179%2F3242.html'), 'true',[],'',''],
		['PAGE','3263',jdecode('Gra%C5%BCynka'),jdecode(''), jdecode('%2F3179%2F3263.html'), 'true',[],'',''],
		['PAGE','3305',jdecode('%C5%9Anie%C5%BCka'),jdecode(''), jdecode('%2F3179%2F3305.html'), 'true',[],'',''],
		['PAGE','3326',jdecode('Stokrotka'),jdecode(''), jdecode('%2F3179%2F3326.html'), 'true',[],'',''],
		['PAGE','3200',jdecode('Le%C5%9Bna+chatka'),jdecode(''), jdecode('%2F3179%2F3200.html'), 'true',[],'','']
	],'',''],
	['PAGE','3410',jdecode('Karczma+%22Trzy+D%C4%99by%22'),jdecode(''), jdecode('%2F3410.html'), 'true',[],'',''],
	['PAGE','3431',jdecode('Tarcica+Sucha'),jdecode(''), jdecode('%2F3431.html'), 'true',[],'',''],
	['PAGE','3452',jdecode('Boazerie%2Celewacje'),jdecode(''), jdecode('%2F3452.html'), 'true',[],'',''],
	['PAGE','3473',jdecode('Deski+pod%C5%82ogowe'),jdecode(''), jdecode('%2F3473.html'), 'true',[],'',''],
	['PAGE','3494',jdecode('Listwy+wyko%C5%84czeniowe'),jdecode(''), jdecode('%2F3494.html'), 'true',[],'',''],
	['PAGE','3515',jdecode('Gor%C4%85ca+bania'),jdecode(''), jdecode('%2F3515.html'), 'true',[],'',''],
	['PAGE','3536',jdecode('Drewutnie%2Cwiaty'),jdecode(''), jdecode('%2F3536.html'), 'true',[],'',''],
	['PAGE','3557',jdecode('Altany'),jdecode(''), jdecode('%2F3557.html'), 'true',[],'',''],
	['ITEM','3578',jdecode('Schody'),jdecode(''), jdecode('http%3A%2F%2F'), 'true',[],'','_blank'],
	['PAGE','3579',jdecode('Brykiet+drzewny'),jdecode(''), jdecode('%2F3579.html'), 'true',[],'',''],
	['PAGE','3600',jdecode('Sauny'),jdecode(''), jdecode('%2F3600.html'), 'true',[],'',''],
	['PAGE','3621',jdecode('Cennik'),jdecode(''), jdecode('%2F3621.html'), 'true',[],'',''],
	['PAGE','3642',jdecode('Galeria+-+Domy'),jdecode(''), jdecode('%2F3642.html'), 'true',[],'',''],
	['PAGE','3663',jdecode('Galeria+-+Sauny'),jdecode(''), jdecode('%2F3663.html'), 'true',[],'',''],
	['PAGE','3747',jdecode('Kontakt'),jdecode(''), jdecode('%2F3747.html'), 'true',[],'','']];
var siteelementCount=57;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='9241';
theSitetree.keyvisualName='kv3.swf';
theSitetree.fontsetId='28204';
theSitetree.graphicsetId='12763';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var prodDef={
  wl_name: 'azpl',
  product: 'WSCSYSSSSLY0XKDV'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'660000',
				keyvisualId: 	'9241',
				keyvisualName: 	'kv3.swf',
				fontsetId: 		'28204',
				graphicsetId: 	'12763',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				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:  '1412',
internalId:  '',
customField: '20120131-130136'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1412',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-27e80a62433fae21cf8d8a02ba3ad6d3']={
webappId:    '7060',
documentId:  '3642',
internalId:  '27e80a62433fae21cf8d8a02ba3ad6d3',
customField: 'language:pl;country:PL;'
};
webappMappings['7060']=webappMappings['7060-d0858092be8ca3460142da66357fcaa0']={
webappId:    '7060',
documentId:  '3663',
internalId:  'd0858092be8ca3460142da66357fcaa0',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72837',
internalId:  '',
customField: '20120201-151325'
};
webappMappings['7008']=webappMappings['7008-7509']={
webappId:    '7008',
documentId:  '3747',
internalId:  '7509',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66537',
internalId:  '',
customField: '20111029-145711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69437',
internalId:  '',
customField: '20111118-155102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60826',
internalId:  '',
customField: '20111018-175354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2633',
internalId:  '',
customField: '20120201-152511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2654',
internalId:  '',
customField: '20101119-103216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2675',
internalId:  '',
customField: '20101117-123528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2696',
internalId:  '',
customField: '20120201-152431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2717',
internalId:  '',
customField: '20110412-105910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2738',
internalId:  '',
customField: '20101114-162942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2759',
internalId:  '',
customField: '20110412-105856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2780',
internalId:  '',
customField: '20110412-144811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20110123-001049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2822',
internalId:  '',
customField: '20111118-151822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2843',
internalId:  '',
customField: '20101112-231045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2864',
internalId:  '',
customField: '20110123-001133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2885',
internalId:  '',
customField: '20110123-001304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2906',
internalId:  '',
customField: '20110123-001329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2927',
internalId:  '',
customField: '20110123-001352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2948',
internalId:  '',
customField: '20110123-001421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2969',
internalId:  '',
customField: '20110123-001443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2990',
internalId:  '',
customField: '20110123-001502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3452',
internalId:  '',
customField: '20111017-163030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3473',
internalId:  '',
customField: '20111017-163126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3515',
internalId:  '',
customField: '20101111-205021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3642',
internalId:  '',
customField: '20101114-175518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62726',
internalId:  '',
customField: '20111019-164919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65637',
internalId:  '',
customField: '20120201-143815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3011',
internalId:  '',
customField: '20110123-001523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3032',
internalId:  '',
customField: '20110123-001551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3053',
internalId:  '',
customField: '20110123-001621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3074',
internalId:  '',
customField: '20110123-001644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3095',
internalId:  '',
customField: '20101114-172536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3116',
internalId:  '',
customField: '20101114-172609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3137',
internalId:  '',
customField: '20101114-172706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3158',
internalId:  '',
customField: '20110412-114919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3179',
internalId:  '',
customField: '20111019-160401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3200',
internalId:  '',
customField: '20101114-172947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3221',
internalId:  '',
customField: '20101114-173113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3747',
internalId:  '',
customField: '20101117-123457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3242',
internalId:  '',
customField: '20101114-173621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3263',
internalId:  '',
customField: '20101114-174011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50126',
internalId:  '',
customField: '20101119-094811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55626',
internalId:  '',
customField: '20110412-143759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3621',
internalId:  '',
customField: '20120131-123836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3305',
internalId:  '',
customField: '20101114-173844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3326',
internalId:  '',
customField: '20101119-092837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3410',
internalId:  '',
customField: '20101114-174127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3431',
internalId:  '',
customField: '20101111-211356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3600',
internalId:  '',
customField: '20101114-175317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3494',
internalId:  '',
customField: '20111017-163508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3536',
internalId:  '',
customField: '20120201-152636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3557',
internalId:  '',
customField: '20111029-150340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3579',
internalId:  '',
customField: '20101114-175147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3663',
internalId:  '',
customField: '20101114-175623'
};
var webAppHostname = 'cgi-kreatorstron.az.pl:80';
var canonHostname = 'cm4all.az.pl';
var accountId     = 'AAZ340INVDWH';
var companyName   = 'www.domek.info.pl+-+domy..domki...sauny...';
var htmlTitle	  = 'domki+drewniane+-+domek.info.pl';
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();
};

