var G,SearchBar;$(".close-btn").bind("click",function(){$(this).parent(".label-close,.dropbox").fadeOut(500,function(){$(this).remove()})});$(document).ready(function(){window.devicePixelRatio>1&&$(".hri").each(function(){var n=$(this).attr("src"),t=n.replace(".","@2x.");$(this).attr("src",t)});$.fn.popup.defaults.pagecontainer=".container";$("#branches").popup({transition:"all 0.3s",autozindex:!0});$("#all-reviews").popup({transition:"all 0.3s",autozindex:!0});$(".clickable").bind("click",function(){$(this).toggleClass("active-tt")});$(".clickable").hover(function(){$(this).toggleClass("active-tt")});$(".clickable-payment").bind("click",function(){var n=$(this).hasClass("active");return $(".clickable-payment").removeClass("active"),n||$(this).toggleClass("active"),!1});$(".button.filter").bind("click",function(){$(this).toggleClass("active");$("#filters").slideToggle("slow")})});$("html").hasClass("ie8")&&$('img[src*="svg"]').attr("src",function(){return $(this).attr("src").replace(".svg",".png")});$(window).load(function(){$("#animate-devices").addClass("slideLeft")}),function(n){var t=function(){function n(){}return n.trackEvent=function(n,t,i){_gaq.push(["_trackEvent",n,t,i])},n}();n.GA=t}(G||(G={})),function(n){var t=function(){function n(){var n=this;this._locationToggle=$("#search-arrow");this._searchBubble=$("#search-bubble-box");this._locationInput=document.getElementById("my-location");(Settings.EnableMyLocation||Settings.IsMobileDevice)&&this.toggleLocation();this._locationToggle.bind("click",function(){n.toggleLocation()});this.initAutocomplete()}return n.prototype.toggleLocation=function(){var n=this;this._locationToggle.toggleClass("active");this._searchBubble.text(this.isLocationEnabled()?"Vypnúť vyhľadávanie v okolí":"Zapnúť vyhľadávanie v okolí");this.isLocationEnabled()?navigator.geolocation.getCurrentPosition(function(t){n._locationInput.value=t.coords.latitude.toString()+","+t.coords.longitude.toString()},function(){alert("Vašu lokalitu sa nepodarilo zistiť.")},{enableHighAccuracy:!0}):this._locationInput.value=""},n.prototype.initAutocomplete=function(){$("#search-string").autocomplete({source:"/api/1.0/Suggest",minLength:2,delay:100})},n.prototype.isLocationEnabled=function(){return this._locationToggle.hasClass("active")},n}();n.Bar=t}(SearchBar||(SearchBar={}));$(document).ready(function(){new SearchBar.Bar});$(document).ready(function(){$(".t-c").each(function(){var t=$(this).closest("section.profile"),n=$(this).data("td")||{};typeof n.id=="undefined"&&typeof t.data("id")!="undefined"&&(n.id=t.data("id"));$.isEmptyObject(n)||$(this).data("td",n)});$(".t-c").click(function(){var t=Settings.pageType||"UNKNOWN",i=$(this).data("ta")||"UNKNOWN CLICK",n=Settings.pageData||{};typeof $(this).data("td")!="undefined"&&(n.actionData=$(this).data("td"));G.GA.trackEvent(t,i,JSON.stringify(n))});$(".t-cz").click(function(){var t=Settings.pageType||"UNKNOWN",i=$(this).data("ta")||"UNKNOWN CLICK",n=Settings.pageZonalData||{};typeof $(this).data("td")!="undefined"&&(n.actionData=$(this).data("td"));G.GA.trackEvent(t,i,JSON.stringify(n))});$(".t-fpbc").click(function(){var n=jQuery.extend(!0,{},Settings.pageData),t=$(this).closest("section.profile");n.l=t.data("id")||"unknown";n.lo=t.data("index")||0;G.GA.trackEvent(Settings.pageType,"FullProfileButtonClick",JSON.stringify(n))})})