text: "use strict";
  
  function hideElem() { $block.fadeOut() }
  
  function showElem() { $block.fadeIn() }
  
  function init_Elements() {
      function e(e) {
          $(".progress").each(function() {
              var t = $(this).find(".progress__bar").attr("data-level");
              e ? $(this).find(".progress__current").animate({ width: t + "%" }, e) : $(this).find(".progress__current").css({ width: t + "%" })
          })
      }
      $("#accordion").collapse(), $("#accordion-dark").collapse(), $("#select-sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".datepicker__input").datepicker({ showOtherMonths: !0, selectOtherMonths: !0, showAnim: "fade" }), $(document).click(function(e) {
          var t = $(e.target);
          t.hasClass("datepicker__input") || t.hasClass("ui-datepicker") || t.hasClass("ui-icon") || $(t).parent().parents(".ui-datepicker").length || $(".datepicker__input").datepicker("hide")
      }), $("#hTab a").click(function(e) { e.preventDefault(), $(this).tab("show") }), $("#vTab a").click(function(e) { e.preventDefault(), $(this).tab("show") }), $(".mega-select__filter").click(function(e) {
          e.preventDefault(), $(".select__field").val(""), $(".mega-select__filter").removeClass("filter--active"), $(this).addClass("filter--active");
          var t = $(this).attr("data-filter");
          $(".select__btn a").show(), $(".select__btn a:not(." + t + ")").hide(), $(".select__group").removeClass("active-dropdown"), $(".select__group").show(), $(".select__group." + t).addClass("active-dropdown"), $(".select__group:not(." + t + ")").hide()
      }), $(".filter--active").trigger("click"), $(".select__field").focus(function() { $(this).parent().find(".active-dropdown").css("opacity", 1) }), $(".select__field").blur(function() { $(this).parent().find(".active-dropdown").css("opacity", 0) }), $(".select__variant").click(function() {
          var e = $(this).attr("data-value");
          $(".select__field").val(e)
      });
      new Waypoint.Inview({ element: $(".progress")[0], enter: function(t) { e(2e3) } });
      $(".auth__show").click(function(e) { e.preventDefault(), $(".auth__function").toggleClass("open-function") }), $(".btn--singin").click(function(e) { e.preventDefault(), $(".auth__function").toggleClass("open-function") })
  }
  
  function init_Home() {
      $(".banner").show().revolution({ delay: 9e3, startwidth: 1170, startheight: 500, navigation: { arrows: { enable: !0, style: "hebe", hide_onleave: !1, tmp: '<span class="slider__info">{{title}}</span>' } }, spinner: "spinner2" });
      $(".auth__show").click(function(e) { e.preventDefault(), $(".auth__function").toggleClass("open-function") }), $(".btn--singin").click(function(e) { e.preventDefault(), $(".auth__function").toggleClass("open-function") }), $(".mega-select__filter").click(function(e) {
          e.preventDefault(), $(".select__field").val(""), $(".mega-select__filter").removeClass("filter--active"), $(this).addClass("filter--active");
          var t = $(this).attr("data-filter");
          $(".select__btn a").show(), $(".select__btn a").css("display", "inline-block"), $(".select__btn a:not(." + t + ")").hide(), $(".select__group").removeClass("active-dropdown"), $(".select__group").show(), $(".select__group." + t).addClass("active-dropdown"), $(".select__group:not(." + t + ")").hide(), $(".marker-indecator").show(), $(".marker-indecator:not(." + t + ")").hide()
      }), $(".filter--active").trigger("click"), $(".active-dropdown").css("z-index", "-1"), $(".select__field").focus(function() { $(this).parent().find(".active-dropdown").css("opacity", 1), $(this).parent().find(".active-dropdown").css("z-index", "50") }), $(".select__field").blur(function() { $(this).parent().find(".active-dropdown").css("opacity", 0), $(this).parent().find(".active-dropdown").css("z-index", "-1") }), $(".select__variant").click(function(e) {
          e.preventDefault(), $(this).parent().find(".active-dropdown").css("z-index", "50");
          var t = $(this).attr("data-value");
          $(".select__field").val(t), $(this).parent().find(".active-dropdown").css("z-index", "-1")
      }), $("body").click(function(e) { console.log(e.target) }), $(".score").raty({ width: 130, score: 0, path: "images/rate/", starOff: "star-off.svg", starOn: "star-on.svg" }), $(".movie-best__check").click(function(e) { e.preventDefault(), $("html, body").stop().animate({ scrollTop: $("#target").offset().top - 30 }, 900, "swing") })
  }
  
  function init_BookingOne() {
      $(".order__control-btn").click(function(e) { e.preventDefault(), $(".order__control-btn").removeClass("active"), $(this).addClass("active") });
      var e = $(".choosen-movie"),
          t = $(".choosen-city"),
          i = $(".choosen-date"),
          a = $(".choosen-cinema"),
          o = $(".choosen-time"),
          n = new Swiper(".swiper-container", { slidesPerView: 10, loop: !0 });
      $(".swiper-slide-active").css({ marginLeft: "-2px" }), $(window).width() > 1930 ? n.params.slidesPerView = 13 : $(window).width() > 993 & $(window).width() < 1199 ? n.params.slidesPerView = 6 : $(window).width() > 768 & $(window).width() < 992 ? n.params.slidesPerView = 5 : $(window).width() < 767 & $(window).width() > 481 ? n.params.slidesPerView = 4 : $(window).width() < 480 ? n.params.slidesPerView = 2 : n.params.slidesPerView = 10, $(window).resize(function() { $(window).width() > 1930 && (n.params.slidesPerView = 13, n.update()), $(window).width() > 993 & $(window).width() < 1199 ? (n.params.slidesPerView = 6, n.update()) : $(window).width() > 768 & $(window).width() < 992 ? (n.params.slidesPerView = 5, n.update()) : $(window).width() < 767 & $(window).width() > 481 ? (n.params.slidesPerView = 4, n.update()) : $(window).width() < 480 ? (n.params.slidesPerView = 2, n.update()) : (n.params.slidesPerView = 10, n.update()) }), $("#select-sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".datepicker__input").datepicker({ showOtherMonths: !0, selectOtherMonths: !0, showAnim: "fade" }), $(document).click(function(e) {
          var t = $(e.target);
          t.hasClass("datepicker__input") || t.hasClass("ui-datepicker") || t.hasClass("ui-icon") || $(t).parent().parents(".ui-datepicker").length || $(".datepicker__input").datepicker("hide")
      }), $(".film-images").click(function(t) {
          $(".film-images").removeClass("film--choosed"), $(this).addClass("film--choosed");
          var i = $(this).parent().attr("data-film");
          $(".choose-indector--film").find(".choosen-area").text(i), e.val(i)
      }), $(".time-select__item").click(function() {
          $(".time-select__item").removeClass("active"), $(this).addClass("active");
          var e = $(this).attr("data-time");
          $(".choose-indector--time").find(".choosen-area").text(e);
          var t = $(this).parent().parent().find(".time-select__place").text();
          o.val(e), a.val(t)
      });
      var s = $(".select .sbSelector").text(),
          l = $(".datepicker__input").val();
      t.val(s), i.val(l), $(".select .sbOptions").click(function() {
          var e = $(".select .sbSelector").text();
          t.val(e)
      }), $(".datepicker__input").change(function() {
          var e = $(".datepicker__input").val();
          i.val(e)
      }), $(".booking-form").submit(function() {
          var e = $(this).serialize();
          $.get($(this).attr("action"), e)
      }), $(".choose-indector--film").click(function(e) { e.preventDefault(), $(this).toggleClass("hide-content"), $(".choose-film").slideToggle(400) }), $(".choose-indector--time").click(function(e) { e.preventDefault(), $(this).toggleClass("hide-content"), $(".time-select").slideToggle(400) })
  }
  
  function init_BookingTwo() {
      function e(t) {
          t.preventDefault();
          var i = $(this).parent().find('.sit-row option[selected="selected"]').text(),
              a = $(this).parent().find('.sit-number option[selected="selected"]').text(),
              o = i + a,
              n = 0;
          if ($(".checked-place").find(".choosen-place[data-sit='" + o + "']").length) return alert("same place"), 0;
          switch ($(".sits-area--mobile .checked-place").prepend('<span class="choosen-place" data-sit="' + o + '">' + o + "</span>"), "A" == i || "B" == i || "C" == i || "D" == i ? n = 10 : "E" == i || "F" == i || "G" == i || "I" == i ? n = 20 : ("J" == i || "K" == i || "L" == i) && (n = 30), n) {
              case 10:
                  l += 10;
                  break;
              case 20:
                  l += 20;
                  break;
              case 30:
                  l += 30
          }
          $(".checked-result").text("$" + l), $(this).removeClass("btn--warning").unbind("click", e), $(this).addClass("btn--danger").text("remove sit").blur(), $(this).click(function(e) {
              e.preventDefault();
              var t = $(this).parent().find('.sit-row option[selected="selected"]').text(),
                  i = ($(this).parent().find('.sit-number option[selected="selected"]').text(), $(".checked-place").find(".choosen-place[data-sit='" + o + "']"));
              if (i.length) {
                  switch (i.remove(), $(this).parent().remove(), "A" == t || "B" == t || "C" == t || "D" == t ? n = 10 : "E" == t || "F" == t || "G" == t || "I" == t ? n = 20 : ("J" == t || "K" == t || "L" == t) && (n = 30), n) {
                      case 10:
                          l -= 10;
                          break;
                      case 20:
                          l -= 20;
                          break;
                      case 30:
                          l -= 30
                  }
                  $(".checked-result").text("$" + l)
              }
          })
      }
      $(".order__control-btn").click(function(e) { e.preventDefault(), $(".order__control-btn").removeClass("active"), $(this).addClass("active") });
      var t = $(".choosen-number"),
          i = $(".choosen-cost"),
          a = $(".choosen-number--cheap"),
          o = $(".choosen-number--middle"),
          n = $(".choosen-number--expansive"),
          s = $(".choosen-sits"),
          l = 0,
          r = 0,
          p = 0,
          c = 0;
      $(".sits__place").click(function(e) {
          e.preventDefault();
          var d = $(this).attr("data-place"),
              m = $(this).attr("data-price");
          if ($(e.target).hasClass("sits-state--your")) {
              switch ($(this).removeClass("sits-state--your"), $("." + d).remove(), m) {
                  case "10":
                      l -= 10, r -= 1;
                      break;
                  case "20":
                      l -= 20, p -= 1;
                      break;
                  case "30":
                      l -= 30, c -= 1
              }
              $(".checked-result").text("$" + l)
          } else if (!$(this).hasClass("sits-state--not")) {
              switch ($(this).addClass("sits-state--your"), $(".checked-place").prepend('<span class="choosen-place ' + d + '">' + d + "</span>"), m) {
                  case "10":
                      l += 10, r += 1;
                      break;
                  case "20":
                      l += 20, p += 1;
                      break;
                  case "30":
                      l += 30, c += 1
              }
              $(".checked-result").text("$" + l)
          }
          var f = $(".checked-place").children().length;
          t.val(f), i.val(l), a.val(r), o.val(p), n.val(c);
          var w = "";
          $(".choosen-place").each(function() { w += ", " + $(this).text() }), s.val(w.substr(2))
      });
      var d = decodeURIComponent(document.URL),
          m = d.substr(d.indexOf("?") + 1);
      $(".booking-form").submit(function(e) {
          e.preventDefault();
          var t, i = $(this).serialize(),
              a = m + "&" + i,
              o = $(".order__control-btn.active").text();
          "Purchase" == o ? t = "book3-buy.html" : "Reserve" == o && (t = "book3-reserve.html"), $.get(t, a, function(e) {})
      }), $(".top-scroll").parent().find(".top-scroll").remove(), $(".sits__sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".add-sits-line").click(function(t) {
          t.preventDefault();
          var i = $('<div class="sits-select"><select name="sorting_item" class="sits__sort sit-row" tabindex="0"><option selected="selected" value="1">A</option><option value="2">B</option><option value="3">C</option><option value="4">D</option><option value="5">E</option><option value="6">F</option><option value="7">G</option> <option value="8">I</option><option value="9">J</option><option value="10">K</option><option value="11">L</option></select><select name="sorting_item" class="sits__sort sit-number" tabindex="1"><option selected="selected" value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option></select><a href="#" class="btn btn-md btn--warning toogle-sits">Choose sit</a></div>');
          i.find(".toogle-sits").click(e), i.find(".sits__sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".sits-area--mobile-wrap").append(i), $(this).blur()
      }), $(".toogle-sits").click(e)
  }
  
  function init_CinemaList() {
      $(".select__sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".tags__item").click(function(e) {
          e.preventDefault(), $(".tags__item").removeClass("item-active"), $(this).addClass("item-active");
          var t = $(this).attr("data-filter");
          $(".cinema-item").show(), $(".adv-place").show(), $(".pagination").show(), "all" !== t.toLowerCase() && ($(".cinema-item:not(." + t + ")").hide(), $(".pagination").hide(), $(".adv-place").hide(), $(".row").css("clear", "none"))
      })
  }
  
  function init_Contact() {
      var e = { scaleControl: !0, center: new google.maps.LatLng(51.509708, -.130539), zoom: 15, navigationControl: !1, streetViewControl: !1, mapTypeControl: !1, mapTypeId: google.maps.MapTypeId.ROADMAP },
          t = new google.maps.Map(document.getElementById("location-map"), e),
          i = new google.maps.Marker({ map: t, position: t.getCenter() }),
          a = [{ stylers: [{ saturation: -100 }, { gamma: 3 }] }, { elementType: "labels.text.stroke", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "road", elementType: "geometry", stylers: [{ visibility: "simplified" }] }, { featureType: "water", stylers: [{ visibility: "on" }, { saturation: 0 }, { gamma: 2 }, { hue: "#aaaaaa" }] }, { featureType: "administrative.neighborhood", elementType: "labels.text.fill", stylers: [{ visibility: "off" }] }, { featureType: "road.local", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "transit.station", elementType: "labels.icon", stylers: [{ visibility: "off" }] }],
          o = new google.maps.StyledMapType(a, { name: "Cusmome style" });
      t.mapTypes.set("map_styles", o), t.setMapTypeId("map_styles");
      var n = document.createElement("div");
      n.innerHTML = '<span class="pop_up_box_text">Leicester Sq, London, WC2H 7LP</span>';
      var s = { content: n, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          l = new InfoBox(s);
      google.maps.event.addListener(i, "click", function(e) { l.open(t, this), t.setCenter(i.getPosition()) })
  }
  
  function init_Gallery() { $(".gallery-item--photo").magnificPopup({ type: "image", closeOnContentClick: !0, mainClass: "mfp-fade", image: { verticalFit: !0 }, gallery: { enabled: !0, navigateByImgClick: !0, preload: [0, 1] } }), $(".gallery-item--photo-link").magnificPopup({ type: "image", closeOnContentClick: !0, mainClass: "mfp-fade", image: { verticalFit: !0 }, gallery: { enabled: !0, navigateByImgClick: !0, preload: [0, 1] } }), $(".gallery-item--video").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !1, gallery: { enabled: !0, preload: [0, 1] } }), $(".gallery-item--video-link").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !1, gallery: { enabled: !0, preload: [0, 1] } }) }
  
  function init_MovieList() {
      $(".select__sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".datepicker__input").datepicker({ showOtherMonths: !0, selectOtherMonths: !0, showAnim: "fade" }), $(document).click(function(e) {
          var t = $(e.target);
          t.hasClass("datepicker__input") || t.hasClass("ui-datepicker") || t.hasClass("ui-icon") || $(t).parent().parents(".ui-datepicker").length || $(".datepicker__input").datepicker("hide")
      }), $(".score").raty({ width: 130, score: 0, path: "images/rate/", starOff: "star-off.svg", starOn: "star-on.svg" }), $(".tags__item").click(function(e) {
          e.preventDefault(), $(".tags__item").removeClass("item-active"), $(this).addClass("item-active");
          var t = $(this).attr("data-filter");
          $(".movie--preview").show(), $(".pagination").show(), "all" !== t.toLowerCase() && ($(".movie--preview:not(." + t + ")").hide(), $(".pagination").hide())
      }), $(".movie__show-btn").click(function(e) { e.preventDefault(), $(this).parents(".movie--preview").find(".time-select").slideToggle(500) }), $(".time-select__item").click(function() { $(".time-select__item").removeClass("active"), $(this).addClass("active") })
  }
  
  function init_MoviePage() {
      $(".score").raty({ width: 130, score: 5, path: "images/rate/", starOff: "star-off.svg", starOn: "star-on.svg" });
      var e = new Swiper(".swiper-container", { slidesPerView: 4 });
      $(".swiper-slide-active").css({ marginLeft: "-1px" }), $(".list--photo").click(function(t) {
          t.preventDefault();
          var i = $(this).attr("data-filter");
          $(".swiper-slide").hide(), $("." + i).show(), $(".swiper-wrapper").css("transform", "translate3d(0px, 0px, 0px)"), e.params.slideClass = i, e.update(), $(".swiper-slide-active").css({ marginLeft: "-1px" })
      }), $(".list--video").click(function(t) {
          t.preventDefault();
          var i = $(this).attr("data-filter");
          $(".swiper-slide").hide(), $("." + i).show(), $(".swiper-wrapper").css("transform", "translate3d(0px, 0px, 0px)"), e.params.slideClass = i, e.update(), $(".swiper-slide-active").css({ marginLeft: "-1px" })
      }), $(window).width() > 760 & $(window).width() < 992 ? e.params.slidesPerView = 2 : $(window).width() < 767 & $(window).width() > 481 ? e.params.slidesPerView = 3 : $(window).width() < 480 & $(window).width() > 361 ? e.params.slidesPerView = 2 : $(window).width() < 360 ? e.params.slidesPerView = 1 : e.params.slidesPerView = 4, $(".swiper-container").width() > 900 && (e.params.slidesPerView = 5), $(window).resize(function() { $(window).width() > 760 & $(window).width() < 992 ? (e.params.slidesPerView = 2, e.update()) : $(window).width() < 767 & $(window).width() > 481 ? (e.params.slidesPerView = 3, e.update()) : $(window).width() < 480 & $(window).width() > 361 ? (e.params.slidesPerView = 2, e.update()) : $(window).width() < 360 ? (e.params.slidesPerView = 1, e.update()) : (e.params.slidesPerView = 4, e.update()) });
      var t = !0;
      $(".media-video .movie__media-item").magnificPopup({ type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !1, gallery: { enabled: !0, preload: [0, 1] }, disableOn: function() { return t } }), $(".media-photo .movie__media-item").magnificPopup({ type: "image", closeOnContentClick: !0, mainClass: "mfp-fade", image: { verticalFit: !0 }, gallery: { enabled: !0, navigateByImgClick: !0, preload: [0, 1] }, disableOn: function() { return t } }), $(".movie__media .swiper-slide").on("mousedown", function(e) { t = !0, $(this).on("mousemove", function() { t = !1 }) }), $("#select-sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".datepicker__input").datepicker({ showOtherMonths: !0, selectOtherMonths: !0, showAnim: "fade" }), $(document).click(function(e) {
          var t = $(e.target);
          t.hasClass("datepicker__input") || t.hasClass("ui-datepicker") || t.hasClass("ui-icon") || $(t).parent().parents(".ui-datepicker").length || $(".datepicker__input").datepicker("hide")
      }), $("#hide-comments").hide(), $(".comment-more").click(function(e) { e.preventDefault(), $("#hide-comments").slideDown(400), $(this).hide() }), $(".comment__reply").click(function(e) { e.preventDefault(), $(".comment").find(".comment-form").remove(), $(this).parent().append("<form id='comment-form' class='comment-form' method='post'>                            <textarea class='comment-form__text' placeholder='Add you comment here'></textarea>                            <label class='comment-form__info'>250 characters left</label>                            <button type='submit' class='btn btn-md btn--danger comment-form__btn'>add comment</button>                        </form>") }), $(".time-select__item").click(function() { $(".time-select__item").removeClass("active"), $(this).addClass("active") }), $("#map-switch").click(function(e) { e.preventDefault(), $(".time-select").slideToggle(500), $(".map").slideToggle(500), $(".show-map").toggle(), $(".show-time").toggle(), $(this).blur() }), $(window).load(function() { $(".map").addClass("hide-map") });
      var i = { scaleControl: !0, center: new google.maps.LatLng(51.508798, -.131687), zoom: 15, navigationControl: !1, streetViewControl: !1, mapTypeControl: !1, mapTypeId: google.maps.MapTypeId.ROADMAP },
          a = new google.maps.Map(document.getElementById("cimenas-map"), i),
          o = new google.maps.Marker({ map: a, position: a.getCenter() }),
          n = new google.maps.Marker({ map: a, position: new google.maps.LatLng(51.510838, -.1304) }),
          s = new google.maps.Marker({ map: a, position: new google.maps.LatLng(51.512615, -.130607) }),
          l = new google.maps.Marker({ map: a, position: new google.maps.LatLng(51.509859, -.130213) }),
          r = new google.maps.Marker({ map: a, position: new google.maps.LatLng(51.509194, -.130091) }),
          p = [{ stylers: [{ saturation: -100 }, { gamma: 3 }] }, { elementType: "labels.text.stroke", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "road", elementType: "geometry", stylers: [{ visibility: "simplified" }] }, { featureType: "water", stylers: [{ visibility: "on" }, { saturation: 0 }, { gamma: 2 }, { hue: "#aaaaaa" }] }, { featureType: "administrative.neighborhood", elementType: "labels.text.fill", stylers: [{ visibility: "off" }] }, { featureType: "road.local", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "transit.station", elementType: "labels.icon", stylers: [{ visibility: "off" }] }],
          c = new google.maps.StyledMapType(p, { name: "Cusmome style" });
      a.mapTypes.set("map_styles", c), a.setMapTypeId("map_styles");
      var d = document.createElement("div");
      d.innerHTML = '<span class="pop_up_box_text">Cineworld, 63-65 Haymarket, London</span>';
      var m = { content: d, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          f = new InfoBox(m);
      google.maps.event.addListener(o, "click", function(e) { f.open(a, this), a.setCenter(o.getPosition()) });
      var w = document.createElement("div");
      w.innerHTML = '<span class="pop_up_box_text">Empire Cinemas, 5-6 Leicester Square, London</span>';
      var u = { content: w, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          h = new InfoBox(u);
      google.maps.event.addListener(n, "click", function(e) { h.open(a, this), a.setCenter(n.getPosition()) });
      var v = document.createElement("div");
      v.innerHTML = '<span class="pop_up_box_text">Curzon Soho, 99 Shaftesbury Ave , London</span>';
      var g = { content: v, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          _ = new InfoBox(g);
      google.maps.event.addListener(s, "click", function(e) { _.open(a, this), a.setCenter(s.getPosition()) });
      var b = document.createElement("div");
      b.innerHTML = '<span class="pop_up_box_text">Odeon Cinema West End, Leicester Square, London</span>';
      var y = { content: b, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          x = new InfoBox(y);
      google.maps.event.addListener(l, "click", function(e) { x.open(a, this), a.setCenter(l.getPosition()) });
      var k = document.createElement("div");
      k.innerHTML = '<span class="pop_up_box_text">Picturehouse Cinemas Ltd, Orange Street, London</span>';
      var C = { content: k, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          P = new InfoBox(C);
      google.maps.event.addListener(r, "click", function(e) { P.open(a, this), a.setCenter(r.getPosition()) }), $(".comment-link").click(function(e) { e.preventDefault(), $("html, body").stop().animate({ scrollTop: $(".comment-wrapper").offset().top - 90 }, 900, "swing") })
  }
  
  function init_MoviePageFull() {
      var e = new Swiper(".swiper-container", { slidesPerView: 5 });
      $(".swiper-slide-active").css({ marginLeft: "-1px" }), $(".list--photo").click(function(t) {
          t.preventDefault();
          var i = $(this).attr("data-filter");
          $(".swiper-slide").hide(), $("." + i).show(), $(".swiper-wrapper").css("transform", "translate3d(0px, 0px, 0px)"), e.params.slideClass = i, e.update(), $(".swiper-slide-active").css({ marginLeft: "-1px" })
      }), $(".list--video").click(function(t) {
          t.preventDefault();
          var i = $(this).attr("data-filter");
          $(".swiper-slide").hide(), $("." + i).show(), $(".swiper-wrapper").css("transform", "translate3d(0px, 0px, 0px)"), e.params.slideClass = i, e.update(), $(".swiper-slide-active").css({ marginLeft: "-1px" })
      }), $(window).width() > 768 & $(window).width() < 992 ? e.params.slidesPerView = 3 : $(window).width() < 767 & $(window).width() > 481 ? e.params.slidesPerView = 3 : $(window).width() < 480 & $(window).width() > 361 ? e.params.slidesPerView = 2 : $(window).width() < 360 ? e.params.slidesPerView = 1 : e.params.slidesPerView = 5, $(".swiper-container").width() > 900 && (e.params.slidesPerView = 5), $(window).resize(function() { $(window).width() > 993 & $(".swiper-container").width() > 900 && (e.params.slidesPerView = 5, e.update()), $(window).width() > 768 & $(window).width() < 992 ? (e.params.slidesPerView = 3, e.update()) : $(window).width() < 767 & $(window).width() > 481 ? (e.params.slidesPerView = 3, e.update()) : $(window).width() < 480 & $(window).width() > 361 ? (e.params.slidesPerView = 2, e.update()) : $(window).width() < 360 ? (e.params.slidesPerView = 1, e.update()) : (e.params.slidesPerView = 5, e.update()) })
  }
  
  function init_Rates() { $(".score").raty({ width: 130, score: 0, path: "images/rate/", starOff: "star-off.svg", starOn: "star-on.svg" }), $(".score").click(function() { $(this).children().hide(), $(this).html('<span class="rates__done">Thanks for your vote!<span>') }) }
  
  function init_Cinema() {
      var e = new Swiper(".swiper-container", { slidesPerView: 8, loop: !0 });
      $(".swiper-slide-active").css({ marginLeft: "-1px" }), $(window).width() > 993 & $(window).width() < 1199 ? e.params.slidesPerView = 6 : $(window).width() > 768 & $(window).width() < 992 ? e.params.slidesPerView = 5 : $(window).width() < 767 & $(window).width() > 481 ? e.params.slidesPerView = 4 : $(window).width() < 480 ? e.params.slidesPerView = 2 : e.params.slidesPerView = 8, $(window).resize(function() { $(window).width() > 993 & $(window).width() < 1199 ? (e.params.slidesPerView = 6, e.update()) : $(window).width() > 768 & $(window).width() < 992 ? (e.params.slidesPerView = 5, e.update()) : $(window).width() < 767 & $(window).width() > 481 ? (e.params.slidesPerView = 4, e.update()) : $(window).width() < 480 ? (e.params.slidesPerView = 2, e.update()) : (e.params.slidesPerView = 8, e.update()) }), $(".datepicker__input").datepicker({ showOtherMonths: !0, selectOtherMonths: !0, showAnim: "fade" }), $(document).click(function(e) {
          var t = $(e.target);
          t.hasClass("datepicker__input") || t.hasClass("ui-datepicker") || t.hasClass("ui-icon") || $(t).parent().parents(".ui-datepicker").length || $(".datepicker__input").datepicker("hide")
      }), $("#hide-comments").hide(), $(".comment-more").click(function(e) { e.preventDefault(), $("#hide-comments").slideDown(400), $(this).hide() }), $(".comment__reply").click(function(e) { e.preventDefault(), $(".comment").find(".comment-form").remove(), $(this).parent().append("<form id='comment-form' class='comment-form' method='post'>                            <textarea class='comment-form__text' placeholder='Add you comment here'></textarea>                            <label class='comment-form__info'>250 characters left</label>                            <button type='submit' class='btn btn-md btn--danger comment-form__btn'>add comment</button>                        </form>") });
      var t = { scaleControl: !0, center: new google.maps.LatLng(51.508798, -.131687), zoom: 16, navigationControl: !1, streetViewControl: !1, mapTypeControl: !1, mapTypeId: google.maps.MapTypeId.ROADMAP },
          i = new google.maps.Map(document.getElementById("cinema-map"), t),
          a = new google.maps.Marker({ map: i, position: i.getCenter() }),
          o = [{ stylers: [{ saturation: -100 }, { gamma: 3 }] }, { elementType: "labels.text.stroke", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.business", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "poi.place_of_worship", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "road", elementType: "geometry", stylers: [{ visibility: "simplified" }] }, { featureType: "water", stylers: [{ visibility: "on" }, { saturation: 0 }, { gamma: 2 }, { hue: "#aaaaaa" }] }, { featureType: "administrative.neighborhood", elementType: "labels.text.fill", stylers: [{ visibility: "off" }] }, { featureType: "road.local", elementType: "labels.text", stylers: [{ visibility: "off" }] }, { featureType: "transit.station", elementType: "labels.icon", stylers: [{ visibility: "off" }] }],
          n = new google.maps.StyledMapType(o, { name: "Cusmome style" });
      i.mapTypes.set("map_styles", n), i.setMapTypeId("map_styles");
      var s = document.createElement("div");
      s.innerHTML = '<span class="pop_up_box_text">Cineworld, 63-65 Haymarket, London</span>';
      var l = { content: s, disableAutoPan: !1, maxWidth: 0, pixelOffset: new google.maps.Size(30, -50), zIndex: null, boxStyle: { background: "#4c4145", opacity: 1, width: "300px", color: " #b4b1b2", fontSize: "13px", padding: "14px 20px 15px" }, closeBoxMargin: "6px 2px 2px 2px", infoBoxClearance: new google.maps.Size(1, 1), closeBoxURL: "images/components/close.svg", isHidden: !1, pane: "floatPane", enableEventPropagation: !1 },
          r = new InfoBox(l);
      google.maps.event.addListener(a, "click", function(e) { r.open(i, this), i.setCenter(a.getPosition()) })
  }
  
  function init_SinglePage() {
      var e = new Swiper(".swiper-container", {
              slidesPerView: 1,
              onSlideChangeStart: function(t) {
                  var a = e.activeIndex,
                      o = a - 1,
                      n = a + 1,
                      s = $(".post__preview .swiper-slide").eq(o).attr("data-text");
                  $(".arrow-left").find(".slider__info").text(s);
                  var l = $(".post__preview .swiper-slide").eq(n).attr("data-text");
                  $(".arrow-right").find(".slider__info").text(l), $(".arrow-left , .arrow-right").removeClass("no-hover"), 0 == a && ($(".arrow-left").find(".slider__info").text(""), $(".arrow-left").addClass("no-hover")), a == i && ($(".arrow-right").find(".slider__info").text(""), $(".arrow-right").addClass("no-hover"))
              }
          }),
          t = e.activeIndex,
          i = e.slides.length - 1,
          a = t - 1,
          o = t + 1,
          n = $(".post__preview .swiper-slide").eq(a).attr("data-text"),
          s = $(".post__preview .swiper-slide").eq(o).attr("data-text");
      $(".arrow-left").find(".slider__info").text(n), $(".arrow-right").find(".slider__info").text(s), 0 == t && $(".arrow-left").find(".slider__info").text(""), t == i && $(".arrow-right").find(".slider__info").text(""), $(".arrow-left").on("click", function(t) { t.preventDefault(), e.slidePrev() }), $(".arrow-right").on("click", function(t) { t.preventDefault(), e.slideNext() }), $("#hide-comments").hide(), $(".comment-more").click(function(e) { e.preventDefault(), $("#hide-comments").slideDown(400), $(this).hide() }), $(".comment__reply").click(function(e) { e.preventDefault(), $(".comment").find(".comment-form").remove(), $(this).parent().append("<form id='comment-form' class='comment-form' method='post'>                            <textarea class='comment-form__text' placeholder='Add you comment here'></textarea>                            <label class='comment-form__info'>250 characters left</label>                            <button type='submit' class='btn btn-md btn--danger comment-form__btn'>add comment</button>                        </form>") })
  }
  
  function init_Trailer() {
      $(".trailer-sample").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !1 }), $(".trailer-btn").click(function(e) {
          e.preventDefault(), $(this).hide(),
              $(this).parent().addClass("trailer-block--short").find(".hidden-content").slideDown(500)
      })
  }
  Modernizr.load({ test: Modernizr.touch, yep: ["css/touch.css?v=1"], nope: [] });
  var $block = $("<div/>", { "class": "top-scroll" }).append('<a href="#"/>').hide().appendTo("body").click(function() { return $("body,html").animate({ scrollTop: 0 }, 800), !1 }),
      $window = $(window);
  $window.scrollTop() > 35 ? showElem() : hideElem(), $window.scroll(function() { $(this).scrollTop() > 35 ? showElem() : hideElem() }), $("#navigation").mobileMenu({ triggerMenu: "#navigation-toggle", subMenuTrigger: ".sub-nav-toggle", animationSpeed: 500 }), $("#search-sort").selectbox({ onChange: function(e, t) { $(t.input[0]).children().each(function(e) { $(this).removeAttr("selected") }), $(t.input[0]).find('[value="' + e + '"]').attr("selected", "selected") } }), $(".login-window").click(function(e) { e.preventDefault(), $(".overlay").removeClass("close").addClass("open") }), $(".overlay-close").click(function(e) { e.preventDefault, $(".overlay").removeClass("open").addClass("close"), setTimeout(function() { $(".overlay").removeClass("close") }, 500) });