{"id":48,"date":"2013-02-02T17:01:00","date_gmt":"2013-02-02T15:01:00","guid":{"rendered":"http:\/\/www.alpego.gr\/?page_id=48"},"modified":"2013-03-07T06:54:51","modified_gmt":"2013-03-07T04:54:51","slug":"store-locator","status":"publish","type":"page","link":"https:\/\/www.alpellas.gr\/en\/store-locator\/","title":{"rendered":"Store Locator"},"content":{"rendered":"<p><div id=\"map_search\" ><a id=\"map_top\"><\/a><form  onsubmit=\"searchLocations( 1 ); return false; \" name=\"location_search_form\" id=\"location_search_form\" action=\"https:\/\/www.alpellas.gr\/en\/store-locator\/\" method=\"post\"><div class=\"location_search\"><div><div class=\"location_search_title\">Find Locations Near:<\/div><\/div>\n\t<div id='location_search_0_tr' class='location_search_row'>\n\t\t<div class='location_search_city_cell  location_search_cell'>City: <br \/><input type=\"text\"  id=\"location_search_city_field\" name=\"location_search_city\" value=\"\" \/><\/div>\n\t\t<div class='location_search_zip_cell  location_search_cell'>Zip: <br \/><input type=\"text\" id=\"location_search_zip_field\" name=\"location_search_zip\" value=\"\" \/><\/div>\n\t\t<div class='location_search_distance_cell  location_search_cell'>Select a distance: <br \/><select id=\"location_search_distance_field\" name=\"location_search_distance\" ><option value=\"1\">1 km<\/option>\n<option value=\"5\">5 km<\/option>\n<option value=\"10\">10 km<\/option>\n<option value=\"25\">25 km<\/option>\n<option value=\"50\">50 km<\/option>\n<option value=\"100\">100 km<\/option>\n<option value=\"500\">500 km<\/option>\n<option value=\"1000\" selected='selected'>1000 km<\/option>\n<\/select><\/div>\n\t<\/div> \n\t<div id='location_search_1_tr' class='location_search_row'>\n\t\t<div class='location_search_submit_cell  location_search_cell'><input type=\"submit\" value=\"Search\" id=\"location_search_submit_field\" class=\"submit\" \/><\/div>\n\t\t<div class='location_search_empty_cell location_search_cell'><\/div>\n\t\t<div class='location_search_empty_cell location_search_cell'><\/div>\n\t<\/div><\/div><input type=\"hidden\" name=\"location_search_sm_category_field\" value=\"1\" \/> <input type=\"hidden\" name=\"location_search_sm_tag_field\" value=\"1\" \/> <input type=\"hidden\" id=\"avail_sm_category\" value=\"\" \/> <input type=\"hidden\" id=\"avail_sm_tag\" value=\"\" \/><input type='hidden' id='location_search_default_lat' value='44.968684' \/><input type='hidden' id='location_search_default_lng' value='-93.215561' \/><input type='hidden' id='location_search_limit' value='20' \/><input type='hidden' id='location_is_search_results' name='sm-location-search' value='0' \/><\/form><\/div><div id=\"simplemap-updating\" style=\"height:350px;width:100%;\"><img src=\"https:\/\/www.alpellas.gr\/wp-content\/plugins\/simplemap\/inc\/images\/loading.gif\" alt=\"Loading new locations\" \/><\/div><div id=\"simplemap\" style=\"width: 100%; height: 350px;\"><\/div><div id=\"results\" style=\"width: 100%;\"><\/div><script type=\"text\/javascript\">(function($) { jQuery(document).ready(function() {\n\t\t\t\tvar lat = \"44.968684\";\n\t\t\t\tvar lng = \"-93.215561\";\n\t\t\t\tvar aspid = \"0\";\n\t\t\t\tvar ascid = \"0\";\n\t\t\t\tvar asma = \"0\";\n\t\t\t\tvar shortcode_zoom_level = \"12\";\n\t\t\t\tvar map_type = \"ROADMAP\";\n\t\t\t\tvar shortcode_autoload = \"all\";\n\t\t\t\tvar shortcode_scrollwheel = \"1\";\n\t\t\t\tvar shortcode_draggable = \"1\";\n\t\t\t\tvar auto_locate = \"ip\";\n\t\t\t\tvar sm_autolocate_complete = false;\n\t\t\t\tgeocoder = new google.maps.Geocoder();\n\n\t\t\t\tif ( !0 && auto_locate == \"ip\" ) {\n\t\t\t\t\tjQuery.getJSON( \"https:\/\/freegeoip.net\/json\/?callback=?\", function(location) {\n\t\t\t\t\t\tlat = location.latitude;\n\t\t\t\t\t\tlng = location.longitude;\n\n                    \tif ( document.getElementById(\"location_search_city_field\") ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_city_field\").value = location.city;\n\t\t\t\t\t\t}\n\t                    if ( document.getElementById(\"location_search_country_field\") ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_country_field\").value = location.country_code;\n\t\t\t\t\t\t}\n        \t            if ( document.getElementById(\"location_search_state_field\") ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_state_field\").value = location.region_code;\n\t\t\t\t\t\t}\n\t\t\t    if ( document.getElementById(\"location_search_zip_field\") && typeof location.zipcode != \"undefined\" && location.zipcode != \"undefined\" ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_zip_field\").value = location.zipcode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( document.getElementById(\"location_search_default_lat\" ) ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_default_lat\").value = lat;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( document.getElementById(\"location_search_default_lng\" ) ) {\n\t\t\t\t\t\t\tdocument.getElementById(\"location_search_default_lng\").value = lng;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t\n\t\t\t\t\t\tsearchLocations( 1 );\n\t\t\t\t\t}).error(function() {\n\t\t\t\t\t \t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t\n\t\t\t\t\t\tsearchLocations( 0 );\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse if ( !0 && auto_locate == \"html5\" ) {\n\t\t\t\t\t\/\/ Ugly hack for FireFox \"Not Now\" option\n\t\t\t\t\tsetTimeout(function () { \n\t\t\t\t\t\tif ( sm_autolocate_complete == false ) {\n\t\t\t\t\t\t\t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t searchLocations( 0 );\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 10000);\n\n\t\t\t\t\tnavigator.geolocation.getCurrentPosition(\n\t\t\t\t\t\tfunction(position) {\n\t\t\t\t\t\t\tlat = position.coords.latitude;\n\t\t\t\t\t\t\tlng = position.coords.longitude;\n\t\t\t\t\t\t\tif ( document.getElementById(\"location_search_default_lat\" ) ) {\n\t\t\t\t\t\t\t\tdocument.getElementById(\"location_search_default_lat\").value = lat;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( document.getElementById(\"location_search_default_lng\" ) ) {\n\t\t\t\t\t\t\t\tdocument.getElementById(\"location_search_default_lng\").value = lng;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsm_autolocate_complete = true;\n\t\t\t\t\t\t\t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t\n\t\t\t\t\t\t\tsearchLocations( 1 );\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(error) {\n\t\t\t\t\t\t\tsm_autolocate_complete = true;\n\t\t\t\t\t\t\t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t\n\t\t\t\t\t\t\tsearchLocations( 0 );\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmaximumAge:300000,\n\t\t\t\t\t\t\ttimeout:5000\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsm_autolocate_complete = true;\n\t\t\t\t\t\n\t\t\t\tload_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable );\n\t\t\t\t\/\/searchLocations( 0 );\n\t\t\t\n\t\t\t\t\tsearchLocations( 0 );\n\t\t\t\t}\n\t\t\t});})(jQuery);<\/script><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/pages\/48"}],"collection":[{"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":3,"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/pages\/48\/revisions"}],"predecessor-version":[{"id":681,"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/pages\/48\/revisions\/681"}],"wp:attachment":[{"href":"https:\/\/www.alpellas.gr\/en\/wp-json\/wp\/v2\/media?parent=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}