console.log('PHP: {"ostrovok":"https:\/\/ostrovok.ru\/hotel\/united_arab_emirates\/dubai\/mid7490514\/coral_deira_hotel\/","booking":"https:\/\/www.booking.com\/hotel\/ae\/coral-deira-dubai.ru.html","trivago":"https:\/\/www.trivago.ru\/%D0%B4%D1%83%D0%B1%D0%B0%D0%B9-549\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C\/hotel-coral-dubai-deira-8919"}');console.log('PHP: h');$('#topad').html("
");jQuery.getScript("http://sopt.ru/pimcore/static/js/frontend/geoip.js/", function(){
//alert(pimcore["location"]);
});
$( "#searchprices" ).click(function() {
if (typeof metrikaCounter != "undefined") {metrikaCounter.reachGoal('bookingbuttonclick');}
$.get( "http://sopt.ru/offers-notify.php?host=" );
var mainlink="h";
var checkin_date=jQuery("#dateFrom").val();
var checkout_date=jQuery("#dateTo").val();
mainlink=mainlink.replace("CHECKINDAY", checkin_date.split(".")[0]);
mainlink=mainlink.replace("CHECKINMONTH", checkin_date.split(".")[1]);
mainlink=mainlink.replace("CHECKINYEAR", checkin_date.split(".")[2]);
mainlink=mainlink.replace("CHECKOUTDAY", checkout_date.split(".")[0]);
mainlink=mainlink.replace("CHECKOUTMONTH", checkout_date.split(".")[1]);
mainlink=mainlink.replace("CHECKOUTYEAR", checkout_date.split(".")[2]);
window.open(mainlink, 'booking', 'window settings');
var secoundlink="h";
secoundlink=secoundlink.replace("CHECKINDAY", checkin_date.split(".")[0]);
secoundlink=secoundlink.replace("CHECKINMONTH", checkin_date.split(".")[1]);
secoundlink=secoundlink.replace("CHECKINYEAR", checkin_date.split(".")[2]);
secoundlink=secoundlink.replace("CHECKOUTDAY", checkout_date.split(".")[0]);
secoundlink=secoundlink.replace("CHECKOUTMONTH", checkout_date.split(".")[1]);
secoundlink=secoundlink.replace("CHECKOUTYEAR", checkout_date.split(".")[2]);
window.location = secoundlink;
return false;
});