$(function(){$(".navbar-nav li a").click(function(n){$(this).parent().hasClass("dropdown")||$(".navbar-collapse").collapse("hide")})}),$(document).ready(function(){$(".fancybox").fancybox({fitToView:!1,width:"95%",height:"95%",autoSize:!1,closeClick:!1,openEffect:"none",closeEffect:"none"})}),$(function(){var n=$("html, body");$("a.page-scroll").click(function(){return n.animate({scrollTop:$($.attr(this,"href")).offset().top},500),!1})}),$(document).ready(function(){try{$.browserSelector(),$("html").hasClass("chrome")&&$.smoothScroll()}catch(n){}}),$(document).ready(function(){$(".listen1").hover(function(){$("#span_bw_1").css("background","url(https://www.inferrapack.com/engine/images/tile-1.jpg)")},function(){$("#span_bw_1").css("background","url(https://www.inferrapack.com/engine/images/33.jpg)")}),$(".listen2").hover(function(){$("#span_bw_2").css("background","url(https://www.inferrapack.com/engine/images/tile-2.jpg)")},function(){$("#span_bw_2").css("background","url(https://www.inferrapack.com/engine/images/44.jpg)")}),$(".listen3").hover(function(){$("#span_bw_3").css("background","url(https://www.inferrapack.com/engine/images/tile-3.jpg)")},function(){$("#span_bw_3").css("background","url(https://www.inferrapack.com/engine/images/11.jpg)")}),$(".listen4").hover(function(){$("#span_bw_4").css("background","url(https://www.inferrapack.com/engine/images/tile-4.jpg)")},function(){$("#span_bw_4").css("background","url(https://www.inferrapack.com/engine/images/22.jpg)")})}),$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>50?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()}),$("#back-to-top").click(function(){return $("#back-to-top").tooltip("hide"),$("body,html").animate({scrollTop:0},800),!1})}),$(document).ready(function(){$("#hexagon-slider").carousel({interval:!1}),$("#hexagon-slider").bind("slide.bs.carousel",function(n){$(n.target).find(".carousel-inner > .item.active").index();var e=$(n.relatedTarget),t=(e.index(),$(e).attr("img-bg"));$("#section-2-img").fadeOut(1e3,function(){$("#section-2-img").attr("src",t),$("#section-2-img").fadeIn(1e3)})})}),$(document).ready(function(){$("#hexagon-slider2").carousel({interval:!1}),$("#hexagon-slider2").bind("slide.bs.carousel",function(n){$(n.target).find(".carousel-inner > .item.active").index();var e=$(n.relatedTarget),t=(e.index(),$(e).attr("img-bg"));$("#section-3-img").fadeOut(1e3,function(){$("#section-3-img").attr("src",t),$("#section-3-img").fadeIn(1e3)})})}),$(document).ready(function(){$("#hexagon-slider3").carousel({interval:!1}),$("#hexagon-slider3").bind("slide.bs.carousel",function(n){$(n.target).find(".carousel-inner > .item.active").index();var e=$(n.relatedTarget),t=(e.index(),$(e).attr("img-bg"));$("#section-4-img").fadeOut(1e3,function(){$("#section-4-img").attr("src",t),$("#section-4-img").fadeIn(1e3)})})}),$(document).ready(function(){$("#hexagon-slider4").carousel({interval:!1}),$("#hexagon-slider4").bind("slide.bs.carousel",function(n){$(n.target).find(".carousel-inner > .item.active").index();var e=$(n.relatedTarget),t=(e.index(),$(e).attr("img-bg"));$("#section-5-img").fadeOut(1e3,function(){$("#section-5-img").attr("src",t),$("#section-5-img").fadeIn(1e3)})})}),$(function(){$("#quick_nav");var n=$("#navigation"),e=($("#gmap_container"),$("#bricks_container"),$("#scroll_direction"),$("#scenes").children().map(function(){return $(this).position().top}).sort(function(n,e){return n[0]-e[0]}),n.children().slice(0,4),$(window));e.height();e.resize(function(){var n,t,i=e.width(),o=e.height(),a={top:0,left:0};(t=.5625*(n=i))>=o||(n=(t=o)/.5625),$(".cover").each(function(){$(this).css({width:n,height:t}).css(a)})}).resize()}),$(window).scroll(function(){if($(".contacts-container").html()){var n=$(".contacts-container").offset().top-$(window).height(),e=!1;$(window).scrollTop()>n&&!1===e?($(".contacts-container").stop().animate({width:"show"},350),e=!0):$(window).scrollTop()<n&&($(".contacts-container").stop().animate({width:"hide"},350),e=!1)}}),$(document).ready(function(){$(".carousel-inner").swiperight(function(){$(this).parent().carousel("prev")}),$(".carousel-inner").swipeleft(function(){$(this).parent().carousel("next")})});