');i.append('
');var o=$('
').text(e.title);if(i.append(o),""!=e.address){var a=$('').text(e.address);i.append(a)}if(""!=e.tel){var l=$("").text(_Telefon),d=e.tel.split("-"),p="";if(d.length>1)for(var m=0;m0?""+n+"
":""+n+"
"}else p=""+e.tel+"";var u=$('').append(l,p);i.append(u)}if(""!=e.fax){l=$("").text(_Fax);var r=$("").text(e.fax),h=$('').append(l,r);i.append(h)}if(""!=e.weekdays){l=$("").text(_HaftaIci),r=$("").text(e.weekdays);var c=$('').append(l,r);i.append(c)}if(""!=e.weekend){l=$("").text(_HaftaSonu),r=$("").text(e.weekend);var _=$('').append(l,r);i.append(_)}if(""!=e.map.url){var g=$('').text(_HaritadaGoster),b=$('').append(g);i.append(b)}if(""!=e.note){var k=$('').text(e.note);i.append(k)}var y='",y+='",i.append(y),new InfoBox({content:i[0],disableAutoPan:!1,maxWidth:0,pixelOffset:new google.maps.Size(10,110),closeBoxMargin:"5px -20px 2px 2px",closeBoxURL:"http://www.google.com/intl/en_us/mapfiles/close.gif",isHidden:!1,alignBottom:!0,pane:"floatPane",enableEventPropagation:!0})}function errorLocation(e){var t=new google.maps.LatLng(default_lat,default_long);map.fitBounds(bounds);var s=google.maps.event.addListener(map,"idle",(function(){google.maps.event.removeListener(s),marker.setMap(map),map.setCenter(t),map.setZoom(10)}))}function getLocation(){if(navigator.geolocation)navigator.geolocation.getCurrentPosition(showPosition,errorLocation);else{map.fitBounds(bounds);var e=google.maps.event.addListener(map,"idle",(function(){google.maps.event.removeListener(e),map.setZoom(11)}))}}function showPosition(e){var t=new google.maps.LatLng(e.coords.latitude,e.coords.longitude),s=new MarkerWithLabel({map,position:t,icon:current_markerIcon(!0),title:"Konumunuz",labelAnchor:new google.maps.Point(24,65),labelClass:"map-custom-label",labelInBackground:!0});map.fitBounds(bounds);var i=google.maps.event.addListener(map,"idle",(function(){google.maps.event.removeListener(i),s.setMap(map),map.setCenter(t),map.setZoom(10)}))}function load_cities(e){var t=document.getElementById("chcCity");$("#chcCity").empty().append(''),$.each(city_list,(function(s,i){if(i.country_id.toString()===e.toString()){var o=new google.maps.LatLng(i.lat,i.lng);map.fitBounds(bounds);var a=google.maps.event.addListener(map,"idle",(function(){google.maps.event.removeListener(a),map.setCenter(o),map.setZoom(6)})),l=document.createElement("option");l.value=i.id,l.innerHTML=i.title,t.appendChild(l)}}))}function load_branchs(e){var t=document.getElementById("chcBranch");$("#chcBranch").empty().append(''),$.each(locations,(function(s,i){if(i.id.toString()===e.toString()){var o=new google.maps.LatLng(i.lat,i.lng);map.fitBounds(bounds);var a=google.maps.event.addListener(map,"idle",(function(){google.maps.event.removeListener(a),map.setCenter(o),map.setZoom(9)}));$.each(i.items,(function(e,s){var i=document.createElement("option");i.value=s.id,i.innerHTML=s.title,t.appendChild(i)}))}}))}$.each(locations,(function(e,t){$.each(t.items,(function(e,t){t.title;var s=t.map.lat_lng.split(","),i=s[0],o=s[1],a=new MarkerWithLabel({map,position:new google.maps.LatLng(i,o),icon:markerIcon(!0),labelContent:"",labelAnchor:new google.maps.Point(24,65),labelClass:"map-custom-label",labelInBackground:!0});a.addListener("click",(function(){closeInfoBox(),getInfoBox(t,i,o).open(map,this),map.setCenter(new google.maps.LatLng(i,o))})),bounds.extend(a.position),markers["FLX"+t.id]=a}))})),$((function(){getLocation()}));