console.log('PHP: {"ostrovok":"https:\/\/ostrovok.ru\/hotel\/russia\/st._petersburg\/mid7829455\/nevsky_bereg_hotel_i\/","booking":"https:\/\/www.booking.com\/hotel\/ru\/nevsky-bereg.ru.html","oktogo":"http:\/\/oktogo.ru\/gostinica-arkada-sankt-peterburg\/","trivago":"https:\/\/www.trivago.ru\/%D1%81%D0%B0%D0%BD%D0%BA%D1%82-%D0%BF%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3-86676\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C-%D0%BD%D0%B5%D0%B2%D1%81%D0%BA%D0%B8%D0%B9-%D0%B1%D0%B5%D1%80%D0%B5%D0%B3-122-1824001"}');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;
});