function loader()
{
const el = document.getElementById('tl-search-form');
if(el)
{
document.querySelector('.block_loading').style.display = 'none';
document.querySelector('.wj_visibility').style.visibility = 'visible';
}
else {
console.log('нету');
loader();
}
}
loader();
(function(w){
var selectHotel = (function() {
var hotel = '';
switch (window.location.host) {
case 'krasnodar.olympia-hotel.ru': hotel = 'krasnodar'; break;
case 'sochi.olympia-hotel.ru': hotel = 'sochi'; break;
case 'mountain.olympia-hotel.ru': hotel = 'mountain'; break;
case 'red.olympia-hotel.ru': hotel = 'red'; break;
case 'gala.olympia-hotel.ru': hotel = 'plaza'; break;
case 'mont-blanc.olympia-hotel.ru': hotel = 'mont-blanc'; break;
case 'lasarevskoye.olympia-hotel.ru': hotel = 'lasarevskoye'; break;
case 'adler-home.olympia-hotel.ru': hotel = 'adler-home'; break;
default:
hotel = '';
break;
}
if (hotel !== '') {
hotel = '.' + hotel;
}
return hotel;
}());
var q=[
['setContext', 'TL-INT-olympia-hotel' + selectHotel, 'ru'],
['embed', 'search-form', {container: 'tl-search-form'}]
];
var t=w.travelline=(w.travelline||{}),ti=t.integration=(t.integration||{});
ti.__cq=ti.__cq?ti.__cq.concat(q):q;
if (!ti.__loader){
ti.__loader=true;var d=w.document,p=d.location.protocol,s=d.createElement('script');s.type='text/javascript';s.async=true;s.src=(p=='https:'?p:'http:')+'//ibe.tlintegration.com/integration/loader.js';(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(s);
}
})(window);