'+t.ShortDescription+"<\/div>");t.GoogleMapLocation&&(r+='
<\/i> Show in Map<\/a><\/div>');r+="<\/div><\/div>";i.append(r)})}else{for(i.html("No stores found.<\/span>"),f=0;f=t||(z=google.maps.event.addListener(n,"zoom_changed",function(){google.maps.event.removeListener(z);smoothZoom(n,t,i+1)}),setTimeout(function(){n.setZoom(i)},80))}var countryId=0,markers=[],map;$(document).ready(function(){$.getScript("https://maps.googleapis.com/maps/api/js?key=AIzaSyAGFq4_CtQxMawtxh1PxGvroeZo5ll0k8c&libraries=places&callback=initMap",function(){});$(document).on("click",".marker-link",function(){$("html, body").animate({scrollTop:0},600);map.setZoom(12);setTimeout(function(n){google.maps.event.trigger(n,"click")},1e3,markers[$(this).data("markerid")]);setTimeout(function(n,t){n.panTo(t)},1500,map,markers[$(this).data("markerid")].position);setTimeout(function(n){smoothZoom(n,15,n.getZoom())},1500,map)});var n=$('input[name="FilterByRadious"]');n.change(function(){var n=$(this).val();$(".additional-info").text("");navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(n){var t=n.coords.latitude,i=n.coords.longitude;LoadStoresByLatAndLong(t,i)},function(n){console.log(n);LoadStoresByLatAndLong(latitudeSettingsValue,longitudeSettingsValue);$(".additional-info").text("User Geolocation denied. You should enable it from browser permissions settings. Setting the marker to default position...")})})})