").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define175123&&define.amd&&_abt_define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
;window['_abt_jQuery'] = jQuery.noConflict( true );
// --
// Fri, 03 Aug 2018 13:42:20 +0200
;window['_abt_scn'] = 7;
;window['_abt_aItems'] = {"605":[1257,1258],"606":[1259,1260],"607":[1261,1262],"608":[1263,1264],"609":[1265,1266],"610":[1267,1268],"611":[1269,1270],"612":[1271,1272]};window['_abt_gf'] = [function () { /*console.info('ABT', 'FCE', 0);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 1);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 2);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 3);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 4);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 5);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 6);*/ /* Empty */ },function () { /*console.info('ABT', 'FCE', 7);*/ /* Empty */ }];window['_abt_g'] = {'169-371':[function () { return 0; },function () { return 1; },function () { return 2; },function () { return 3; },function () { return 4; },function () { return 5; },function () { return 6; },function () { return 7; }]};;window['_abt_f'] = {'_abt_action_fce_static': function () {/*;console.log("YAT","_abt_action_fce_49341");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_49341", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_49341", "body form.ptx-search-box button[type=\"submit\"]");/*;console.log("YAT","_abt_action_fce_27921");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_27921", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_27921", "body:not(._abt-homepage) form.ptx-search button[type=\"submit\"]");_abt('action', "js-execute", "_abt_action_fce_89237");/*;console.log("YAT","_abt_action_fce_86067");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_86067", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_86067", "#AccommodationContactForm");_abt('action', "js-execute", "_abt_action_fce_55695");_abt('action', "js-execute", "_abt_action_fce_93657");_abt('action', "js-execute", "_abt_action_fce_92068");_abt('action', "js-execute", "_abt_action_fce_45567");_abt('action', "js-execute", "_abt_action_fce_83661");_abt('action', "css-raw", "._abt-big-image {\n width: 100%;\n height: 350px;\n background-position: center center;\n margin-bottom: 15px;\n background-size: cover; }");_abt('action', "css-raw", "\/** \n - II) S vyu\u017eit\u00edm simulovan\u00e9ho trval\u00e9ho nasazen\u00ed t\u00e9to 1 Zm\u011bny webu z Testu #5 (C102):\n - 7) Detaily: Redukce popt. formul\u00e1\u0159e do podoby \"Dostupnost a cena ubytov\u00e1n\u00ed\", ad. \n **\/\n._abt-hide {\n display: none; }\n\n._abt-show-more {\n background: #f3661f;\n color: #fff;\n font-size: 15px;\n border: none;\n padding: 4px 18px 12px 18px;\n \/* Upravil LM; p\u016fvodn\u011b: padding: 8px 20px; *\/\n border-radius: 6px;\n cursor: pointer;\n margin: 15px 0;\n text-align: center;\n font-weight: bold; }\n\n#AccommodationContactForm ._abt-show-more._abt_after_click {\n background-color: transparent;\n color: #ff8400;\n cursor: inherit;\n text-align: center;\n \/* Upravil LM; p\u016fvodn\u011b: left; *\/\n margin: 15px 0 0 0;\n \/* Doplnil LM *\/ }\n\n._abt-show-more i {\n padding-left: 12px;\n \/* Upravil LM *\/\n font-size: 24px;\n \/* Doplnil LM *\/\n position: relative;\n \/* Doplnil LM *\/\n top: 3px;\n \/* Doplnil LM *\/ }\n\n._abt-show-more:hover {\n background: #ff7f00; }\n\n.accommodation__contact_form form {\n \/* Doplnil LM *\/\n margin-top: 0.7em !important; }\n\n.accommodation__contact_form h2 {\n \/* Doplnil LM *\/\n margin: 0 0 0.7em 0; }");_abt('action', "js-execute", "_abt_action_fce_95349");_abt('action', "js-execute", "_abt_action_fce_17641");_abt('action', "js-execute", "_abt_action_fce_49979");_abt('action', "css-raw", "#accomodation_units_tabs_container ul {\n width: auto;\n margin-top: -3px; }\n\n#accomodation_units_tabs_container ul > li {\n margin-top: 3px; }\n\n#unit_calendar .ptx_full_calendar {\n margin-left: auto !important;\n margin-right: auto !important;\n float: none !important; }\n\n@media (min-width: 781px) {\n #_abt-poptat {\n display: none; }\n\n body._abt-detail #content {\n width: 56% !important; }\n body._abt-detail #content #accomodation_units_tabs_container .box_left, body._abt-detail #content #accomodation_units_tabs_container .box_right {\n float: none !important;\n width: 100% !important;\n margin: 0 0 20px !important; }\n body._abt-detail #content .responsive_table {\n border-collapse: collapse !important; }\n body._abt-detail #content .responsive_table td {\n display: inline-block !important;\n width: 50% !important;\n box-sizing: border-box !important;\n text-align: left !important; }\n body._abt-detail #content .responsive_table td::before {\n content: attr(data-th);\n display: inline-block;\n width: 70%;\n font-weight: 700px;\n text-align: left; }\n body._abt-detail #content .responsive_table td:last-child {\n display: block !important;\n width: 100% !important;\n text-align: center !important;\n border-bottom: 1px solid #007cc3;\n padding: 20px 0 !important; }\n body._abt-detail #content .responsive_table td:last-child a {\n display: inline-block;\n min-width: 60px;\n font-size: 14px;\n line-height: 20px;\n padding: 3px 10px; }\n body._abt-detail #content .responsive_table td:last-child::before {\n display: none; }\n body._abt-detail #content .responsive_table thead {\n display: none; }\n body._abt-detail #content .accommodation .table .fll, body._abt-detail #content .accommodation .table .flr {\n display: block;\n left: 0 !important;\n float: none;\n width: 100%;\n box-sizing: border-box;\n clear: both; }\n body._abt-detail #content .accommodation .table .flr {\n padding-top: 20px; }\n body._abt-detail #content .accommodation .basic__box_info table, body._abt-detail #content .accommodation .basic__box_languages {\n display: block;\n float: none;\n width: 100% !important; }\n body._abt-detail #content .accommodation .basic__box_languages {\n margin-top: 20px; }\n body._abt-detail #content .accommodation .basic__box_languages a {\n display: inline-block;\n padding: 10px;\n margin: 0 10px; }\n body._abt-detail #content .box__distances {\n float: none;\n width: 100%;\n margin-bottom: 20px; }\n body._abt-detail #content .box__info {\n margin-left: 0; }\n body._abt-detail #content .box.accommodation__contact_form {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n margin-left: 260px;\n float: left;\n width: 360px !important;\n top: 224px;\n padding: 0 !important;\n background: #fef9f0;\n border: 3px solid #ff8400;\n border-radius: 7px;\n overflow-y: auto; }\n body._abt-detail #content .box.accommodation__contact_form form {\n margin: 0 auto 0px auto !important; }\n body._abt-detail #content .box.accommodation__contact_form form > div h2 {\n padding: 10px 10px 0; }\n body._abt-detail #content .box.accommodation__contact_form form .g-recaptcha > div {\n margin: 0px auto; }\n body._abt-detail #content .box.accommodation__contact_form #contact_form {\n background-color: #fff;\n padding: 10px; }\n body._abt-detail #content .box.accommodation__contact_form #contact_form #calendar_explanation {\n border: inherit !important;\n padding-left: 0; }\n body._abt-detail #content .box.accommodation__contact_form .form__column {\n float: none !important;\n width: 100% !important;\n box-sizing: border-box !important;\n padding: 10px; }\n body._abt-detail #content .box.accommodation__contact_form .razmak {\n display: block;\n margin-bottom: 12px; } }\n\n@media (max-width: 980px) and (min-width: 780px) {\n body._abt-detail #content {\n width: 56% !important; }\n body._abt-detail #content .box.accommodation__contact_form {\n left: inherit;\n right: 15px;\n transform: inherit;\n width: 40% !important; } }");}};window['_abt_f']['_abt_action_fce_49341'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var $input = $('body form.ptx-search-box button[type="submit"]');
/* Úvod: Vyhledání ubytování */
if (!$input.length) {
return;
}
$input.not('._abt-801').click(function (e) {
//e.preventDefault();
_abt('nextTime', 'add', ['goal', 'data', 'type', 801]);
_abt('nextTime', 'add', ['goal', 'track']);
$(this).addClass('_abt-801');
});;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_27921'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var $input = $('body:not(._abt-homepage) form.ptx-search button[type="submit"]');
/* Vyhledávání: Vyhledání ubytování */
if (!$input.length) {
return;
}
$input.click(function (e) {
//e.preventDefault();
_abt('nextTime', 'add', ['goal', 'data', 'type', 851]);
_abt('nextTime', 'add', ['goal', 'track']);
});;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_89237'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
_abt('callback', 'add', 'goal.track', function (Owner, AbtEvent) {
//alert(JSON.stringify(AbtEvent.getParams().aData));
});
if ($('#AccommodationContactForm').length) {
$body.addClass('_abt-detail');
}
// =================================================;
};;window['_abt_f']['_abt_action_fce_86067'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var $input = $('#AccommodationContactForm');
var $list = $input.find('input[type=text], input[type=email], select');
function check() {
//console.log('check');
var counter = 0;
$list.each(function () {var $item = $(this);
console.log($item, $item.val());
if ($item.val()) {
counter++;
//console.log('counter', counter);
}
});
if (counter>=3) {
_abt('goal', 'data', 'type', 451);
_abt('goal', 'track');
}
}
$list.each(function () {var $item = $(this);
//console.log($item);
$item.blur(function () {
check();
});
});;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_55695'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// Detaily: Odeslání poptávkového formuláře 512
// Detaily: Unikátní odeslání poptávkového formuláře 513
var cookieVisitTime = 7*24*60*60;
var cookieVisitID = _abt('getCookie', '_abt_visit');
if (!cookieVisitID) {
cookieVisitID = 'v'+Math.ceil(Math.random()*100000);
}
//_abt('delCookie', '_abt_visit');
_abt('setCookie', '_abt_visit', '--change--', cookieVisitTime);
_abt('setCookie', '_abt_visit', cookieVisitID, cookieVisitTime);
function visitGoalEnable(key) {
key = key+'';
var cookieGoalName = '_abt_goal.'+key;
var cookieGoalValue = _abt('getCookie', cookieGoalName);
var cookieVisitID = _abt('getCookie', '_abt_visit');
var isEnable = false;
if (!cookieGoalValue) {
isEnable = true;
}
else if (cookieGoalValue!=cookieVisitID) {
isEnable = true;
}
//console.log('visitGoalEnable', key, {old: cookieGoalValue, new: cookieVisitID}, isEnable);
if (!isEnable) return false;
_abt('setCookie', cookieGoalName, cookieVisitID, cookieVisitTime); // Na expire zde již nezáleží, mělo by být více než [_abt_visit]
return true;
}
//var $begin = $('#AccommodationContactForm');
//if (!$begin.length) return;
if (location.pathname !== '/form-success.php') {
return;
}
//_abt('nextTime', 'add', ['goal', 'data', 'type', 512]);
//_abt('nextTime', 'add', ['goal', 'track']);
_abt('goal', 'data', 'type', 512);
_abt('goal', 'track');
if (visitGoalEnable(513)) {
//_abt('nextTime', 'add', ['goal', 'data', 'type', 513]);
//_abt('nextTime', 'add', ['goal', 'track']);
_abt('goal', 'data', 'type', 513);
_abt('goal', 'track');
};
};;window['_abt_f']['_abt_action_fce_93657'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
_abt('loadJs', "https://www.gstatic.com/firebasejs/3.2.0/firebase.js", "_abt_firebase", true);
//console.log('firebase.load.begin');
// Initialize Firebase
var config = {
apiKey: "AIzaSyD7BHocfjOSgX-LD3bo_K5a1n8gPSRp-zc",
authDomain: "abt-c49.firebaseapp.com",
databaseURL: "https://abt-c49.firebaseio.com",
storageBucket: "",
};
function firebaseInit() {
window.firebase.initializeApp(config);
//console.log('firebase.load.end');
}
function firebaseRun() {
//console.log("firebaseRun");
var mObj = _abt('getCookie', '_abt_co', true),
hash = parseInt(_abt('hash', "variant", mObj)),
aObjSorted = _abt('sort', mObj)
;
var d = new Date(), month = d.getMonth()+1, day = d.getDate();
if (month<10) month = '0'+month;
if (day<10) day = '0'+day;
var dateMySQL = d.getFullYear()+'-'+month+'-'+day;
function writeDataView(key, hash, callback) {
firebase.database().ref(key+'/variant/'+hash+'/data/view').transaction(function (view) {
//console.log(key+'/variant/'+hash+'/data/view', "transaction", view);
if (!view) view = 0;
view+=1
//drawValue(view);
return view;
}, function(error, committed, snapshot) {
if (error) {
console.log('Transaction failed abnormally!', error);
}
else if (!committed) {
console.log('We aborted the transaction (because ada already exists).');
}
else {
// ok
}
if (callback) {
callback(key, hash, snapshot.val(), error, committed, snapshot);
}
});
}
//writeDataView('by-date/'+dateMySQL, hash);
writeDataView('summary', hash, function (key, hash, viewValue) {
drawValue(viewValue+"|"+hash);
if (viewValue!==1) return;
var mMeta = {}
mMeta.stringify = JSON.stringify(aObjSorted);
mMeta.query = _abt('buildQuery', mObj);
mMeta.hash = _abt('buildQuery', mObj, ',', ':');
firebase.database().ref(key+'/variant/'+hash+'/meta').update(mMeta);
});
if ($('#AccommodationContactForm').length) {
writeDataView('detail', hash, function (key, hash, viewValue) {
drawValue(viewValue+"|"+hash);
if (viewValue!==1) return;
var mMeta = {}
mMeta.stringify = JSON.stringify(aObjSorted);
mMeta.query = _abt('buildQuery', mObj);
mMeta.hash = _abt('buildQuery', mObj, ',', ':');
firebase.database().ref(key+'/variant/'+hash+'/meta').update(mMeta);
});
}
function drawValue(value) {
return;
console.info('_ABT:FIREBASE.value', value);
var id = '_abt_views', $VIEW_SHOW;
if (!($VIEW_SHOW = $('#'+id)).length) {
$VIEW_SHOW = $('
').attr('id', "_abt_views");
$VIEW_SHOW.css({
position: "fixed",
bottom: 0,
left: 0,
zIndex: 1000,
border: "1px solid blue",
backgroundColor: "white",
color: "black",
padding: "5px 8px",
});
$body.append($VIEW_SHOW);
}
$VIEW_SHOW.text("views:"+value);
}
/*firebase.database().ref('variant/test/view').on('value', function(view) {
drawValue(view.val());
});*/
/*firebase.database().ref('variant/test/view').once('value').then(function(view) {
drawValue(view.val());
});*/
if (window._abt_counting['update']) {
window._abt_counting.update();
}
}
var t = window.setInterval(function () {
//console.log('window.firebase CHECK');
if (window.firebase===undefined) {
return;
}
window.clearInterval(t);
firebaseInit();
firebaseRun();
},40);;
};;window['_abt_f']['_abt_action_fce_92068'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// 433 - Detaily: Kliknutí na "Pokračovat nezávaznou poptávkou"
function init433() {
$('#AccommodationContactForm ._abt-show-more').click(function() {
_abt('goal', 'data', 'type', 433);
_abt('goal', 'track');
});
}
console.log('XXXXXXXXXXXXXXX', $('#AccommodationContactForm ._abt-show-more'));
var t;
t = window.setInterval(function () {
var $x = $('#AccommodationContactForm ._abt-show-more');
if ($x.length) {
init433();
window.clearInterval(t);
}
}, 500);
// 431 - Celý web: Najetí kurzorem na logotyp
$('.header__logo').mouseenter(function() {
_abt('goal', 'data', 'type', 431);
_abt('goal', 'track');
});
// 432 - Celý web: Kliknutí na logotyp
$('.header__logo').click(function() {
//alert(123);
_abt('nextTime', 'add', ['goal', 'data', 'type', 432]);
_abt('nextTime', 'add', ['goal', 'track']);
});;
};;window['_abt_f']['_abt_action_fce_45567'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// 423 - Celý web: Kliknutí na tlačítko typu "?" v hlavičce
var $o;
$body.append($o = $("").css({
position: "absolute",
zIndex: 1999,
top: 14,
right: 10,
width: 36,
height: 38
// backgroundColor: "red",
// opacity: 0.5,
}));
$o.click(function() {
//alert('QQQQQQQQQQQQ');
_abt('goal', 'data', 'type', 423);
_abt('goal', 'track');
$('.mobile_menu.clearfix').toggleClass('mobile_menu--opened');
});;
};;window['_abt_f']['_abt_action_fce_83661'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// - I) S využitím simulovaného trvalého nasazení této 1 Změny webu z Testu #4 (C95):
// - 3) Detaily: Umístění jedné velké fotky zařízení nahoru nad název
if ($('div.accommodation__header.center').length){
var big_image = $('div.gallery__items .gallery__item:first-child>a').attr('href');
$('.accommodation__header i').remove();
$('.accommodation__header>h2').before('
');
$('div.box.basic__box + div.box.padding>div.gallery__list>div.gallery__items>div.gallery__item:last-child').after($('div.box.basic__box + div.box.padding>div.gallery__list>div.gallery__items>div.gallery__item:first-child'));
};
};;window['_abt_f']['_abt_action_fce_95349'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// hide elements
$('#AccommodationContactForm .form__column .section:nth-child(1n + 6)').addClass('_abt-wrap-section');
$('#AccommodationContactForm .g-recaptcha').parent().addClass('_abt-hide');
$('#AccommodationContactForm span.small.razmak.grey').parent().addClass('_abt-hide');
$('#AccommodationContactForm .form__column ._abt-wrap-section').wrapAll('
');
$('#AccommodationContactForm .form__column .section:nth-child(1)').insertBefore('._abt-wrap-section:nth-child(1)');
// rename header
$('#AccommodationContactForm h2').parent().removeClass('center');
$('#AccommodationContactForm div:nth-child(1) h2').html('Dostupnost a cena ubytování');
// rename Mám zájem o ubytování v jednotce:
$('#AccommodationContactForm .form__column #apartments_checkboxes').parent().contents().first().wrap('
');
$('._abt-mam-zaujem').html('Mám zájem o ubytování v jednotce:');
// add button
$('#AccommodationContactForm .form__column ._abt-hide').before('
Pokračovat nezávaznou poptávkou
');
// action
$('#AccommodationContactForm ._abt-show-more').click(function() {
$(this).html('Pokračujte nezávaznou poptávkou:');
$(this).addClass('_abt_after_click')
$('#AccommodationContactForm ._abt-hide').show();
});;
};;window['_abt_f']['_abt_action_fce_17641'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
// - III) S využitím simulovaného trvalého nasazení těchto 2 Změn webu z Testu #6 (C118):
// - 1) Celý web: Přidání ochranné známky ™ do logotypu
/* logo-responsive-tm.png */
$('.header__logo img').attr('src', '//increver-abt-001-737379.c.cdn77.org/ext/uvch.cz/test-6/logo-responsive-tm.png');;
};;window['_abt_f']['_abt_action_fce_49979'] = function () {
var $ = window['_abt_jQuery'];
var $body = $('body');
if (!$('body._abt-detail').length) {
return;
}
var $w = $(window);
if ($w.width() <= 780) {
// Stačí vyřešit stav při načtení
return;
}
var $x;
$('#content').before($x = $('
').append($('ol.breadcrumbs').css({
float: 'left',
paddingLeft: "10px"
})));
$x.addClass('clearfix');
$x.append($('.print_it'));
var $contactForm = $('.box.accommodation__contact_form');
$contactForm.mousemove(function () {
if ($w.scrollTop() > 250) {
$body.css('overflow', "hidden");
}
});
$contactForm.mouseout(function () {
$body.css('overflow', "auto");
});
function change_height() {
var $DETAIL_IMAGE = $('._abt-detail-image');
var topPosPlus = 0;
if ($DETAIL_IMAGE.length) {
topPosPlus += $('._abt-detail-image').height() || 0;
topPosPlus += 13;
}
$contactForm.css({
height: "auto",
maxHeight: 100000
});
var h = $contactForm.outerHeight(true);
if (h>$w.height()-30) {
h = $w.height() - 30;
}
if ($contactForm.find('._abt-show-more .fa.fa-caret-down').length) {
h+=80; // přidáme 80 kvůli potenciálnímu kalendáři
}
var hMax = $w.height()-30;
if (h>hMax) {
h = hMax;
}
console.log('H', h, $w.scrollTop());
if ($w.scrollTop() > 250+topPosPlus) {
$contactForm.css({
"position": "fixed",
"top": "0",
"right": "15px",
maxHeight: h
});
return;
}
var $bread = $('.breadcrumbs').parent();
var top = $bread.position().top;
console.log('TOP1', top);
top += $bread.height();
console.log('TOP2', top);
var $DETAIL_IMAGE = $('._abt-detail-image');
if ($DETAIL_IMAGE.length) {
top += topPosPlus;
}
top -= parseInt($contactForm.css('marginTop')) + 1; // Magic!
$contactForm.css({
"position": "absolute",
"top": top,
"right": "0",
maxHeight: 100000
});
}
$('#links').remove();
$('.box.basic__box').insertAfter('#example');
//$w.on('load resize click', function() {
//if ($w.width() > 780) {
/*$('#links').remove();
$('.box.basic__box').insertAfter('#example');*/
/*if ($w.height() < ( $('.box.accommodation__contact_form').height() + 224 ) ) {
$('.box.accommodation__contact_form').css({
"max-height": "400px"
});
}*/
/*change_height();
$w.scroll(function() {
change_height();
});*/
/*}
else {
$contactForm.css({
"position": "inherit",
"top": "inherit",
"max-height": "inherit",
"right": "inherit",
});
}*/
//});
$w.scroll(function() {
change_height();
});
$contactForm.find('._abt-show-more').click(function () {
window.setTimeout(function () {
change_height();
}, 60);
});
// Něco se tam ještě načítá, timeoutem si pomůžeme
window.setTimeout(function () {
change_height();
}, 60);
function initCalendars() {
if (!$.datepicker) return;
$('.ptx_box_calendar').each(function () {var $bc = $(this);
var $fc = $bc.find('.ptx_full_calendar');
if ($fc.length!=2) {
return;
}
var t = 0;
function redraw() {
console.info('_ABT:redraw');
//alert('X');
$fc.eq(0).find('.fc-header .fc-header-right').append(
$fc.eq(1).find('.fc-header .fc-header-right>span')
);
};
function redrawX() {
if (t) {
window.clearTimeout(t);
t = 0;
}
t = window.setTimeout(function () {
redraw();
t = 0;
}, 60);
}
console.log($.datepicker);
try {
//console.log('window.$', window.$.datepicker);
window.$($fc[0]).datepicker('option', "onChangeMonthYear", function () {
//alert('Y');
console.log("_ABT:onChangeMonthYear");
redrawX();
});
window.$($fc[1]).datepicker('option', "onChangeMonthYear", function () {
redrawX();
});
redrawX();
}
catch (e) {
console.error(e);
}
});
}
window.setTimeout(function () {
initCalendars();
}, 100);
window.setTimeout(function () {
initCalendars();
}, 500);
window.setTimeout(function () {
initCalendars();
}, 1000);
window.setTimeout(function () {
initCalendars();
}, 2500);
window.setTimeout(function () {
initCalendars();
}, 5000);;
};;window['_abt_f']['_abt_action_fce_31454'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var $w = $(window);
if ($w.width() <= 780) {
// Stačí vyřešit stav při načtení
return;
}
$body.addClass('_abt-detail-image-larger');
var $imageWrapper;
$input.before($imageWrapper = $('
')
.addClass('_abt-detail-image')
);
$imageWrapper.append($input.find('._abt-big-image'));;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_82628'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var mapUrl = null;
$('.basic__box_contact').find('tr').each(function () {var $tr = $(this);
console.log('A', $tr.find('>td').eq(0).text());
if ($.trim($tr.find('>td').eq(0).text()) == "Lokace objektu:") {
mapUrl = $tr.find('>td').eq(1).find('a').eq(0).attr('href');
}
});
//alert(mapUrl);
if (!mapUrl) {
return;
}
$input.before($('
')
.addClass('box')
.addClass('_abt-box-map-wrapper')
.append($('
')
.text("Umístění ubytování")
)
.append($('
')
.addClass('_abt-map')
.attr('scrolling', "no")
.attr('src', mapUrl)
));;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_65751'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
var $w = $(window);
if ($w.width() <= 780) {
// Stačí vyřešit stav při načtení
return;
}
$input.before($('
')
.addClass('_abt-sipka')
.append("Zjistěte
dostupnost a
cenu ubytování
přes formulář vpravo")
.append($('
')
.append($('
')
.attr('src', "//increver-abt-001-737379.c.cdn77.org/ext/uvch.cz/test-7/arrow-long-orange-1.png")
)
)
);;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_33127'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
$input.click(function () {
$input.text("Poptejte nezávazně u majitele:");
});;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_58724'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
$input.parent().prepend($input.css({
paddingLeft: 0,
paddingRight: 16 //12 původní hodnota pro paddingLeft: 12px
}));;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_48274'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
$input.text(($input.attr('value') || '0') + " dospělých");;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_42456'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
$input.text(($input.attr('value') || '0') + " dětí");;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_f']['_abt_action_fce_54815'] = function (domPath) {
var $ = window['_abt_jQuery'];
var $body = $('body');
$(domPath).each(function () {
var codeExecuteCount, eventFireLimitCountMax, $input, $this = $(this), $input = $this, codeExecuteCount = 0, eventFireLimitCountMax = null;
$input.addClass("_abt-action-js-element _abt-change");
if (eventFireLimitCountMax!==null && !eventFireLimitCountMax) {return; }
eventFireLimitCountMax--;
codeExecuteCount++;
/*console.log(codeExecuteCount, eventFireLimitCountMax);*/
$input.addClass("_abt-action-js-element-event-firing");
console.log($input[0].childNodes);
$input[0].childNodes[2].nodeValue = " a ";
$input[0].childNodes[4].nodeValue = "";;
this.className = this.className.split("_abt-action-js-element-event-firing").join('');
$input.addClass("_abt-action-js-element-event-fired");
});
};;window['_abt_p'] = {/*1) Detaily (jen desktop): Zvětšení intro fotky na celou šířku stránky, ad.*/'605-1257': function () {window['_abt_gf'][window['_abt_g']['169-371'][0]()](); }, '605-1258': function () {_abt('action', "css-raw", "._abt-detail-image-larger .accommodation__header h2 {\n color: #333;\n font-weight: 600;\n font-size: 159%; }\n ._abt-detail-image-larger ._abt-big-image {\n background-repeat: no-repeat; }");/*;console.log("YAT","_abt_action_fce_31454");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_31454", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_31454", "body._abt-detail #content");}, /*2) Detaily: Přetextování tlač. v 'Podrobnosti ubyt.' z "info" na "Ukázat info a ceny"*/'606-1259': function () {window['_abt_gf'][window['_abt_g']['169-371'][1]()](); }, '606-1260': function () {_abt('action', "content-element", "#tabl_ul_summary a.btn-more", "Uk\u00e1zat info a ceny");}, /*3) Detaily: Přidání mapy za oddíl 'Kontakt / Základní informace'*/'607-1261': function () {window['_abt_gf'][window['_abt_g']['169-371'][2]()](); }, '607-1262': function () {/*;console.log("YAT","_abt_action_fce_82628");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_82628", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_82628", "body._abt-detail #comments");_abt('action', "css-raw", "iframe._abt-map {\n border-style: none;\n width: 100%;\n height: 607px;\n overflow: none; }\n\n._abt-box-map-wrapper {\n margin-top: 20px !important;\n padding: 7px 2px 2px 2px !important; }\n\n._abt-box-map-wrapper h3 {\n color: #ed9121;\n padding-left: 14px;\n padding-right: 14px; }");}, /*4) Detaily (jen desktop): Přidání poutače "Zjistěte … vpravo ->" nad 'Komentáře'*/'608-1263': function () {window['_abt_gf'][window['_abt_g']['169-371'][3]()](); }, '608-1264': function () {/*;console.log("YAT","_abt_action_fce_65751");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_65751", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_65751", "body._abt-detail #comments");_abt('action', "css-raw", "._abt-sipka {\n font-family: arial;\n font-size: 19px;\n color: #1d2129;\n font-weight: bold;\n padding: 50px 0px 50px 69px; }\n ._abt-sipka > span {\n color: #f3661f; }");}, /*5) Detaily: Přetextování nadpisu popt. formuláře na "Zjistit dostupnost a cenu"*/'609-1265': function () {window['_abt_gf'][window['_abt_g']['169-371'][4]()](); }, '609-1266': function () {_abt('action', "content-element", "#AccommodationContactForm h2", "Zjistit dostupnost a cenu");}, /*6) Detaily: Přetextování tlačítka popt. formuláře na "Poptat nezávazně u majitele"*/'610-1267': function () {window['_abt_gf'][window['_abt_g']['169-371'][5]()](); }, '610-1268': function () {_abt('action', "content-element", "#AccommodationContactForm ._abt-show-more", "Poptat nez\u00e1vazn\u011b u majitele
<\/i>");_abt('action', "css-raw", ".nonsense #AccommodationContactForm #submit_button {\n text-transform: uppercase;\n padding-left: 25px !important;\n padding-right: 25px !important; }");/*;console.log("YAT","_abt_action_fce_33127");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_33127", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_33127", "#AccommodationContactForm ._abt-show-more");}, /*7) Detaily: Přesun '?' v tlač. "Pokračovat nezávaznou poptávkou" na začátek*/'611-1269': function () {window['_abt_gf'][window['_abt_g']['169-371'][6]()](); }, '611-1270': function () {/*;console.log("YAT","_abt_action_fce_58724");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_58724", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_58724", "#AccommodationContactForm ._abt-show-more i.fa");}, /*8) Detaily: Přeformátování v popt. formuláři polí z typu "[ ?] dětí" na [0 dětí ?]"*/'612-1271': function () {window['_abt_gf'][window['_abt_g']['169-371'][7]()](); }, '612-1272': function () {/*;console.log("YAT","_abt_action_fce_48274");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_48274", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_48274", "#AccommodationContactForm #SelectAdults > option");/*;console.log("YAT","_abt_action_fce_42456");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_42456", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_42456", "#AccommodationContactForm #SelectChildren > option");/*;console.log("YAT","_abt_action_fce_54815");*/
;try{_abt('stat', 'add', "js-execute", "_abt_action_fce_54815", {"fceExecuteCountBegin":0,"fceExecuteCountEnd":0,"fceExecuteLimitCountMax":null,"fceExecuteLimitCountMaxLeft":null}); } catch (e) {/* Pravděpodobně stav 'already exists' */};
_abt('action', "js-execute", "_abt_action_fce_54815", "#AccommodationContactForm .people_wrapper");_abt('action', "css-raw", "#AccommodationContactForm #SelectAdults {\n width: 120px;\n margin-right: 10px; }\n\n#AccommodationContactForm #SelectChildren {\n width: 75px;\n margin-left: 10px; }");}};
// --
var _abtLoader=function(b,P){if(!b._abtHandler){return}var k=new Date().getTime();if(P.getElementsByTagName("body")[0]===undefined){console.warn("No in document");return}if(P.getElementsByTagName("body")[0].className.indexOf("_abt-campaign-loaded")!==-1){console.warn("_abt is already loaded! Current version ["+b[b._abtHandler]("version")+"] ERROR: 8512");return}try{if(b[b._abtHandler]("version").split("=")[0]=="campaign"){console.warn("_abt is already loaded! Current version ["+b[b._abtHandler]("version")+"] ERROR: 8513");return}}catch(am){}var s=b._abtHandler;var h=b[s];var O=b[s];var a="https:";var f="";var t="//track-abt.increverhq.com";if(!location.hostname){t=a+t;f=a}O("callback","run","onLoad:begin");var p=typeof(Storage)!=="undefined";var m=p?b.localStorage:null;function d(e,q){if(typeof e==="function"){q=e;e=true}if(!p){if(e){throw"localStorage is not supported"}return undefined}var i=q(m);if(i===undefined){return true}return i}var ah=function(ap,i){return;if(window.console===undefined){return}try{console[ap].apply(null,[].slice.call(i))}catch(q){console.log(ap,[].slice.call(i))}};clog=function(){ah("log",arguments)};cinfo=function(){ah("info",arguments)};cwarn=function(){ah("warn",arguments)};cerror=function(){ah("error",arguments)};var aj;if(b._abt_service===undefined){aj=b._abt_service=function(){var q=this;var ap=[].slice.call(arguments);var ar={};var e=["version","isTestEnabled","isTestDisabled","test"];for(var aq=0;aq
=0}function o(e){return typeof e==="string"||e instanceof String}function r(e){Array.prototype.slice.call(arguments,1).forEach(function(i){if(i){for(var q in i){if(i[q]!==null&&i[q].constructor===Object){if(!e[q]||e[q].constructor===Object){e[q]=e[q]||{};r(e[q],i[q])}else{e[q]=i[q]}}else{e[q]=i[q]}}}});return e}function ak(e){return e.split(",").join("&").split(":").join("=")}function v(aq,ap,au){try{var q=null;if((ap+"").indexOf("=")!==-1){q=(ap+"").split("=");ap=parseInt(q[0])}var at="_abt(";for(var ar=0;ar")}var O=b[s]=function(){ad.push(arguments);if(ae[arguments[0]]!==undefined){return ae[arguments[0]](arguments)}throw v(arguments,0,"is unknown")};var an=b[s+"ByArray"]=function(e){return O.apply(O,e)};if(Object.defineProperty&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(Element.prototype,"textContent")&&!Object.getOwnPropertyDescriptor(Element.prototype,"textContent").get){(function(){var e=Object.getOwnPropertyDescriptor(Element.prototype,"innerText");Object.defineProperty(Element.prototype,"textContent",{get:function(){return e.get.call(this)},set:function(i){return e.set.call(this,i)}})})()}var z=(function(){var e,ap,q;function i(ar,aq){e=ar;ap=aq!=null?aq:{};q=new Date().getTime()}i.prototype.getType=function(){return e};i.prototype.getParams=function(){return ap};i.prototype.getTime=function(){return q};i.prototype.toString=function(){return"tAbtEvent[type="+this.type+"params="+(JSON.stringify(this.mParams))+"]"};return i})();var I=[],W=[],D={};var K={};var x={};var V="protocol hostname host pathname port search hash href".split(" ");var ai={};var X={methodRunFirstExecution:null,methodHeartbeatFirstStartExecution:null};var ag={aData:[],timer:0,timer_clearTimeoutDelayed:false,startTime:null,requestCounter:0,pageViewId:null,aRequestHistory:[]};var N="{old}";var U="hasOwnProperty";var n={};var ae={version:function(e){return"campaign=20180221"},get:function(i){switch(i[1]){case"initTimeout":return w;case"finish":return u;case"q":return ad;case"campaign":return G;case"uid":return j;case"co":return L;case"x":return 222222222222222;case"jQuery":return b._abt_jQuery;case"initArgs":return Q;case"urlInitHash":var e="#&_abt_init=hash&_abt_uid="+O("get","uid")+"&_abt_co="+encodeURIComponent(O("get","co").split("&").join(",").split("=").join(":"));return e;case"namespace":return s;case"urlServerTrack":return t}throw v(i,1,"is unknown")},parseQuery:function(ap){if(Z(ap[1])){console.warn("_abt('parseQuery', *arg[1]*) ... arg[1] is object");return ap[1]}console.log("parseQuery",ap[1]);var au={};if(!R.trim(ap[1])){return au}var q=ap[1].split(ap[2]||"&"),at=ap[3]||"=";for(var ar in q){if(!q[U](ar)){continue}var e=q[ar].split(at),aq=e.shift();au[A(aq)]=A(e.join(at))}return au},buildUrlQuery:function(e){return O("buildQuery",e[1])},buildQuery:function(q){var ar=q[1],aq=[],i=q[3]||"=",ap=B;if(q[4]===undefined){q[4]=true}if(!q[4]){ap=function(at){return at}}for(var e in ar){if(!ar[U](e)){continue}aq.push(ap(e)+i+ap(ar[e]))}return aq.join(q[2]||"&")},parseUrl:function(au){var e=P.createElement("a"),i,ar={},aw={},q,at,ap={port:function(aA,az){var ay=aA[az];return parseInt(ay?ay:80)},pathname:function(aA,az){var ay=aA[az];if(ay.indexOf("/")!==0){ay="/"+ay}return ay},hash:function(az,ay){return az[ay].substr(1)}},aq,ax,av;e.href=au[1];for(aq=0,ax=V.length;aqaq.expires){delete m[av];return undefined}q=aq.value;if(!Z(q)){if(ax[2]){q=O("parseQuery",q)}}if(ax[2]&&ax[2]!==true){q=q[ax[2]]||undefined}return q}if(Q[1].storage.type[0]==="c"){var ap=ax[1]+"=";var ar=P.cookie.split(";");for(var at=0;at>3;return ap}throw v(ar,1,"is unknown")},uniqueId:function(i){var ar=i[1],q=i[2],e=i[3];if(Z(ar)){ar="acquire";q=i[1];e=i[2]}function aq(at){var au="abt-unique-id";var av=at.data(au);if(!av){while(true){av=O("rnd","unif",100000,999999);if(n[av]===undefined){break}}n[av]={$el:at,id:av,uniqueId:av,htmlId:at.attr("id"),};at.data(au,av);at.attr("data-"+au,av)}n[av].htmlId=at.attr("id");return n[av]}if(ar==="acquire"){var ap=[];q.each(function(au){var at=R(this);ap.push(aq(at))});return ap}if(ar==="get"){return Object.keys(n)}if(ar==="aIds"){return Object.keys(n)}if(ar==="list"){return n}throw v(i,1,"is unknown")},localStorage:function(i){var ar=i[1],q=i[2],aq=i[3];if(!p){return}function ap(at){return s+"."+at}if(ar==="get"){var e=m.getItem(ap(q));if(e===null){return aq}return JSON.parse(e)}if(ar==="set"){m.setItem(ap(q),JSON.stringify(aq));return}throw v(i,1,"is unknown")},nextTime:function(at){var e=at[1];if(!p){return}var aq=s+".aNextTime";var q=JSON.parse(m.getItem(aq)||"[]");function ar(ax,ay){var aw=JSON.stringify(ay);m.setItem(ax,aw);return aw}function au(){return ar(aq,[])}var i=[{},{},{"goal,track":function(aw,ax){if(ax[2]===undefined){ax[2]={}}if(ax[2]["url"]===undefined){ax[2]["url"]=aw.mMeta.url}return ax}}];function av(ax,aA){var az,aB=i.length,aw=aA;for(var ay=0;ay ");q.css("display","none");R("body").append(q);for(var aA=0;aA<100000;aA++){aq*=aq}q.text(aq)}if(ay.alert){var aH=ay.alert;if(aH===true){aH=JSON.stringify({aData:I,args:ap})}alert(aH)}}var ax={key:aB,url:aG,aData:I,execute:ar,args:ap};O("callback","run","goal.track",ax);W.push(ax);I=[];D={};return}throw v(ap,1,"is unknown")},callback:function(au){var e=au[1],av=au[2];var ax,ar,at,aq,aw,q,i;var ap={debug:function(){if(av===undefined){cinfo(K);return K}cinfo(K[av]);return K[av]},add:function(){var ay=au[3],az=au[4];if(!J(ay)){ay=[undefined,ay]}if(K[av]===undefined){K[av]=[]}K[av].push({key:ay[0],callable:ay[1],defaultParams:az||{}})},run:function(){if(K[av]===undefined){return}var aB=au[3]||{},ay=au[4]||this;var az=K[av],aC=[];for(at=aq=0,aw=az.length;aq120000){ax=10000}if(az>30000){ax=5000}else{if(az>10000){ax=2000}else{ax=1000}}console.info("heartbeat.planExecute next t+"+ax+"ms",az);ag.timer=window.setTimeout(function(){av(function(){at()})},ax)}if(aq==="start"){var i=new Date().getTime();ag.startTime=i;if(X.methodHeartbeatFirstStartExecution===null){X.methodHeartbeatFirstStartExecution=i}if(ag.pageViewId===null){if(p){var ap=m.getItem(H);if(!ap){ap=Math.floor(10000*Math.random()+10000)}ap++;ag.pageViewId=ap;m.setItem(H,ap)}else{ag.pageViewId=Math.floor(8999999*Math.random()+1000000)}}ag.timer_clearTimeoutDelayed=false;av(function(){at()});return}if(aq==="beat"){av(function(){});return}if(aq==="stop"){au();return}if(aq==="data"){if(aw==="add"){var e=[];if(ar[3]){e.push(ar[3]);if(ar[4]){e.push(ar[4]);if(ar[5]){throw v(ar,5,"is not supported");e.push(ar[5])}}}else{throw v(ar,3,"is unknown")}ag.aData.push(e);return}throw v(ar,2,"is unknown")}if(aq==="debug"){console.log("_ABT('heartbeat', 'debug') ... ",ag);return}throw v(ar,1,"is unknown")},run:function(aR){console.info("ABT:RUN",aR);if(X.methodRunFirstExecution===null){X.methodRunFirstExecution=new Date().getTime()}var aA=P.getElementsByTagName("body")[0];if(aR[1]==="live"){if(aA.className.indexOf("_abt-run-live")!==-1){console.warn(v(aR,"1="," can be called only once! Current version ["+b[b._abtHandler]("version")+"] ERROR: 9002"));return}}if(aA.className.indexOf("_abt-run-"+aR[1])===-1){aA.className+=" _abt-run-"+aR[1]}function au(){y=true;O("action","js-execute","_abt_action_fce_static")}function aZ(){if(y){return}au()}cinfo(aR);O("callback","run","run:call",{args:aR});var aK=undefined;var ap=false;if(aR[1]==="live"){var aN=parseInt(O("getCookie","_abt_ssri")||0);if(aN==1){console.info(v(aR,"1="," _abt_ssri is active! END OF LOADING"));return}ap=true}else{if(aR[1]==="static"){if(aR[2]===undefined){aR[2]=false}if(aR[2]){au()}else{aZ()}}else{if(aR[1]==="group"||aR[1]==="group.loader"){O("callback","run","run:begin",{args:aR});O("callback","run","run.group:begin",{args:aR});if(aR[1]==="group"){aZ()}var aM,aJ,aO,a0={};var a1=aR[2]||[];if(!J(a1)){a1=[a1]}aM=a1.length;for(var aW=0;aW=aB){console.info("_abt incorrectly loaded configuration, cancaling configuration and STOP PAGE SETUP",aP,aB);O("delCookie","_abt_uid");O("delCookie","_abt_co");O("delCookie","_abt_sl");O("delCookie","_abt_t");O("callback","run","run:delCookie",{args:aR});return}aZ();if(az){var at=O("getCookie","_abt_uid")||"";var aG=t+"/v1b.userUpdate.php?&c="+G+"&uid="+at+"&jsHandler="+s+"&"+R.param({co:aF});O("loadJs",aG+"&_="+Math.random(),true)}var aq=0,aD=0;R.each(aF,function(i,e){aD++;var q=i+"-"+e;P.body.className+=" _abt-option-"+q;if(b._abt_p[q]===undefined){aq++;return}b._abt_p[q]()});if(aq===aD){console.log("X");O("delCookie","_abt_uid");O("delCookie","_abt_co");O("delCookie","_abt_sl");O("delCookie","_abt_t");O("callback","run","run:delCookie",{args:aR})}O("callback","run","run.live:end",{args:aR});O("callback","run","run:end",{args:aR})}},stat:function(e){var aq=e[1],q=e[2],i=e[3];var ap={debug:function(){cinfo(ai);return ai},add:function(){if(ai[q]===undefined){ai[q]={}}if(ai[q][i]!==undefined){throw v(e,3,"key is already defined")}var ar=e[4]||{};ai[q][i]={meta:{group:q,key:i,created:new Date().getTime()},value:ar};console.log(ai);return ai[q][i].value},get:function(){if(ai[q]===undefined){throw v(e,2,"group is not defined")}if(ai[q][i]===undefined){throw v(e,3,"key is not defined")}return ai[q][i].value},remove:function(){if(ai[q]===undefined){throw v(e,2,"group is not defined")}if(i===undefined){delete ai[q];return true}if(ai[q][i]===undefined){throw v(e,3,"key is not defined")}delete ai[q][i];return true}};if(ap[aq]===undefined){throw v(e,1,"is unknown")}return ap[aq]()},getLastReferrer:function(i){try{var q=d(function(e){return e.getItem(c)});return q}catch(ap){throw v(i,-1,ap)}},action:function(e){var i={"css-raw":function(q){return O("addCss",q[2],q[3])},"css-element":function(ap){var at=ap[3],q=at.length,ar,av,aq;if(ap[2].indexOf(":hover")!==-1){var au="";for(ar=0;ar=0,at;if(au){aq.filter(q).each(function(){at=R(this);at.val(ar.split(N).join(at.val()||""))});aq.not(q).each(function(){this.innerHTML=ar.split(N).join(this.innerHTML||"")})}else{aq.filter(q).val(ar);aq.not(q).html(ar)}aq.addClass("_abt-action-content-element");aq.addClass("_abt-change")},"url-element":function(ax){var q=ax[2],au,aw,aD;var ar=window._abt_jQuery;var aA=ar(q);if(!aA.length){return false}aA=aA.eq(0);switch(aA[0].nodeName){case"A":aw="href";break;case"FORM":aw="action";break;case"IMG":case"IFRAME":aw="src";break;default:throw"Zdrojový element neznámý"}aA.addClass("_abt-action-url-element");aA.addClass("_abt-change");var aB=O("parseUrl",aA.attr(aw));var az={};var av=b._abt_f[ax[3]];for(var at,aq=0,aC=av.length;aq=0;--aw){ax.attributes.setNamedItem(av.attributes[aw].cloneNode())}av.parentNode.insertBefore(ax,av);av.parentNode.removeChild(av);if(ay&&!az){ax.innerHTML=au}else{if(!ay&&az){ax.value=au}}ax.className+=" _abt-change _abt-action-tag-change-element _abt-action-tag-change-element-tagName _abt-action-tag-change-element-tagName-from-"+this.tagName+" _abt-action-tag-change-element-tagName-to-"+ax.tagName;at.push(ax)});return R(at)},"tag-change-element:attr":function(ap){var ar=ap[2],aq=ap[3];var q=ar.attr(aq.attr);ar.attr(aq.attr,aq.value.split(N).join(q));return ar},"tag-change-element:content":function(q){var aq=q[2],ap=q[3];if(aq.is("input")){return i["tag-change-element:value"](q)}else{return i["tag-change-element:html"](q)}},"tag-change-element:html":function(q){var aq=q[2],ap=q[3];aq.html(ap.value.split(N).join(aq.html()));return aq},"tag-change-element:value":function(q){var aq=q[2],ap=q[3];aq.val(ap.value.split(N).join(aq.val()));return aq},"tag-change-element:textContent":function(at){function aw(aH,aI){aH.textContent=aI}function aq(aK,aJ){var aI=aK.length;for(var aH=0;aH1||aA.length===1&&aA[0][0]==="["){aA[0]=aA[0].substring(1);aA[aC-1]=aA[aC-1].substring(0,aA[aC-1].length-1)}for(var az=0;az1){q[1]=R.trim(q[1]);if(!F(q[1])){throw v(ap,3," setCaret.settings: positionEnd is not a number")}}}ar.each(function(){O("setCaret",this,q[0],q[1])});ar.addClass("_abt-change _abt-action-tag-change-element _abt-action-tag-change-element-setCaret");return ar},end:undefined};if(i[e[1]]===undefined){throw v(e,1," type of action is unknown")}return i[e[1]](e)}};cinfo("INIT",O("version"),"co",L,"|",Q);var E=Q[1].cookieLifetime;if(!E){E=0}E=parseInt(E);if(E<0){E=0}E=E||604800;if(Q[1].source!=true&&j){if(O("getCookie","_abt_uid")!=j){O("delCookie","_abt_uid");O("setCookie","_abt_uid",j,E)}}if(Q[1].source!=true&&L){if(O("getCookie","_abt_co")!=L){L=ak(L);O("delCookie","_abt_co");O("setCookie","_abt_co",L,E)}}b[s].t=new Date().getTime();var T,S;function ao(){d(false,function(q){if(q.getItem(c)===null){q.setItem(c,"")}});var e,i;if(P.referrer){T=O("parseUrl",P.referrer);e=T.host.split(/^www\./).join("")}S=O("parseUrl",location.href);i=S.host.split(/^www\./).join("");if(e==i){return}if(P.referrer){d(false,function(q){q.setItem(c,P.referrer)})}}ao();function l(ap,e){var aq,ar,q=e.length;for(aq=0;aq is undefined, waiting...")}}else{if(_isConsole){console.info("ABT:_abtLoader:prepare ... call")}_abtLoader(_window,_document);_abtLoader=null};
// --
var _ABT_DEBUG = false;
(function (_window, _performance) {
if (!_performance) return;
var _timeDiffFromBegining = _performance.timing.domLoading - _performance.timing.navigationStart
_window['_abt_timeFromDomLoading'] = function () {
return performance.now() - _timeDiffFromBegining;
};
var _timeDiffFromBegining2 = _performance.timing.domInteractive - _performance.timing.navigationStart
function _setup(_step) {
if (_ABT_DEBUG) {
console.log('_abt_performance>_setup', _step);
}
_window['_abt_timeFromDomInteractive'] = function () {
return performance.now() - _timeDiffFromBegining2;
};
if (_ABT_DEBUG) {
console.log('_abt_performance>_abt_timeFromDomLoading', _abt_timeFromDomLoading(), _performance.now());
console.log('_abt_performance>_abt_timeFromDomInteractive', _abt_timeFromDomInteractive(), _performance.now());
}
};
_setup('raw');
document.addEventListener('readystatechange', function() {
if (_ABT_DEBUG) {
console.info('_abt_performance>document.readyState', document.readyState, _performance.now());
}
if (document.readyState === 'interactive') {
_setup('interactive');
}
});
})(window, performance);
function bindReady(handler, callbackOnReady){
if (_ABT_DEBUG) {
console.warn('bindReady');
}
var called = false;
function ready(_helperWhen_3) {
if (_ABT_DEBUG) {
console.info('->ready', _helperWhen_3);
console.log('->_abt_timeFromDomLoading', _abt_timeFromDomLoading(), performance.now());
console.log('->_abt_timeFromDomInteractive', _abt_timeFromDomInteractive(), performance.now());
}
/*console.trace();*/
if (called) {
if (_ABT_DEBUG) {
console.info('-->cancel', _helperWhen_3);
}
return;
}
called = true;
handler(_helperWhen_3);
callbackOnReady(_helperWhen_3);
}
if (document.readyState == "interactive") { // Nebere FF
if (_ABT_DEBUG) {
console.warn('I');
}
ready('document.readyState='+document.readyState);
return ;
}
if (document.readyState == "complete" || document.readyState == "loaded") {
if (_ABT_DEBUG) {
console.warn('G');
}
ready('document.readyState='+document.readyState);
return ;
}
if ( document.addEventListener ) {
if (_ABT_DEBUG) {
console.warn('A0');
}
/* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState */
document.addEventListener('readystatechange', function() {
if (_ABT_DEBUG) {
console.info('document.readyState', document.readyState);
}
if (document.readyState === 'interactive') {
if (_ABT_DEBUG) {
console.warn('H', performance.now());
}
ready('document.readyState is interactive');
}
});
document.addEventListener( "DOMContentLoaded", function(){
if (_ABT_DEBUG) {
console.warn('F', performance.now());
}
ready('DOMContentLoaded');
}, false );
}
else if ( document.attachEvent ) {
if (_ABT_DEBUG) {
console.warn('A1');
}
if ( document.documentElement.doScroll && window == window.top ) {
function tryScroll(){
if (called) return
if (!document.body) return
try {
document.documentElement.doScroll("left");
if (_ABT_DEBUG) {
console.warn('E');
}
ready('tryScroll');
} catch(e) {
setTimeout(tryScroll, 0)
}
}
tryScroll()
}
document.attachEvent("onreadystatechange", function(){
if ( document.readyState === "complete" ) {
if (_ABT_DEBUG) {
console.warn('D');
}
ready('onreadystatechange & document.readyState = '+document.readyState);
}
})
}
if (window.addEventListener) {
if (_ABT_DEBUG) {
console.warn('A2');
}
window.addEventListener('load', ready, false);
}
else if (window.attachEvent) {
if (_ABT_DEBUG) {
console.warn('A3');
}
window.attachEvent('onload', ready);
}
else { // use this 'else' statement for very old browsers :)
if (_ABT_DEBUG) {
console.warn('A4');
}
window.onload=ready;
}
}
readyList = []
function onReady(handler) {
if (_ABT_DEBUG) {
console.warn('onReady');
}
var isCalled = false;
var calledBy = null;
if (!readyList.length) {
bindReady(function(_helperWhen_2) {
for(var i=0; i