var _i_ = this._i_ || function() {}, _r_ = this._r_ || function(t) { return t; }; window.BookingAff = window.BookingAff || function() { "use strict"; _i_("dbf:1"); var t = { resize:function(t) { _i_("dbf:21"); var e = d(t.data.aid, t.data.fid); e && (e.setAttribute("height", t.data.height), e.style.height = t.data.height + "px", "0" != e.getAttribute("width") || t.data.width || (e.setAttribute("width", "auto"), e.style.width = "auto"), t.data.width && (e.setAttribute("width", t.data.width), e.style.width = t.data.width + "px")), _r_(); }, prodLoaded:function(t) { _i_("dbf:22"); var e = d(t.data.aid, t.data.fid); if (!e) return _r_(); if (l(e)) return m(e), _r_(); var n = g(e, function() { _i_("dbf:25"), o("DOMContentLoaded", n), o("load", n), o("scroll", n), o("resize", n), m(e), _r_(); }); r("DOMContentLoaded", n), r("load", n), r("scroll", n), r("resize", n), _r_(); } }; document.getElementsByClassName || (document.getElementsByClassName = function(t) { _i_("dbf:23"); var e, n, i, r = document, o = []; if (r.querySelectorAll) return _r_(r.querySelectorAll("." + t)); if (r.evaluate) for (n = ".//*[contains(concat(' ', @class, ' '), ' " + t + " ')]", e = r.evaluate(n, r, null, 0, null); i = e.iterateNext(); ) o.push(i); else for (e = r.getElementsByTagName("*"), n = new RegExp("(^|\\s)" + t + "(\\s|$)"), i = 0; i < e.length; i++) n.test(e[i].className) && o.push(e[i]); return _r_(o); }), String.prototype.trim || (String.prototype.trim = function() { return _i_("dbf:24"), _r_(this.replace(/^\s+|\s+$/g, "")); }); function e(t) { _i_("dbf:2"), window.console && "function" == typeof window.console.error && console.error(t), _r_(); } function n(t) { return _i_("dbf:3"), _r_(!isNaN(parseInt(t, 10))); } function i(t) { return _i_("dbf:4"), _r_("function" == typeof t); } function r(t, e) { _i_("dbf:5"), window.addEventListener ? window.addEventListener(t, e, !1) :window.attachEvent && window.attachEvent("on" + t, e), _r_(); } function o(t, e) { _i_("dbf:6"), window.removeEventListener ? window.removeEventListener(t, e, !1) :window.detachEvent && window.detachEvent("on" + t, e), _r_(); } function d(t, e) { return _i_("dbf:7"), _r_(document.getElementById("booking_widget__" + t + "__" + e)); } function _(t) { _i_("dbf:8"); var e, n = ""; for (e in t) "undefined" != typeof t[e] && (n += e + '="' + t[e] + '" '); return _r_(n); } function a(t, e, n) { if (_i_("dbf:9"), "undefined" == typeof n) return _r_(t.getAttribute(e)); t.setAttribute(e, n), _r_(); } function f(t) { _i_("dbf:10"); var e, n = ""; for (e in t) "undefined" != typeof t[e] && (n += e + "=" + encodeURIComponent(t[e]) + "&"); return _r_(n); } function c(t) { _i_("dbf:11"); var e = "string" == typeof t.tdomain && -1 !== t.tdomain.search("booking.com") ? t.tdomain :"www.booking.com", n = "//" + e + "/flexiproduct.html?", i = +new Date(), r = "