{"id":1151,"date":"2011-10-14T16:17:51","date_gmt":"2011-10-14T23:17:51","guid":{"rendered":"http:\/\/www.trueprecisioncomponents.com\/?page_id=1151"},"modified":"2011-10-17T13:54:39","modified_gmt":"2011-10-17T20:54:39","slug":"dealer-locations","status":"publish","type":"page","link":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/products\/dealer-locations\/","title":{"rendered":"Dealer Locations"},"content":{"rendered":"<h5>Locate Stealth Hub Dealers Near You<\/h5>\r\n<div class=\"alertbox1\">Currently migrating dealers. Please use <a href=\"http:\/\/www.trueprecisioncomponents.com\/cgi-bin\/states.pl\">Dealer Locator<\/a> for full listing.<\/div>\r\n<p>Locate Dealers in your area by either typing in your address or zip\/postal code and clicking the Search button. If results are found, the locations will be plotted on the map and detail information of the locations near you will be listed below the map.<\/p>\r\n\r\n\r\n\r\n<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.trueprecisioncomponents.com\/tpcomponents\/products\/dealer-locations\/\" 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_name_cell  location_search_cell'>Place: <br \/><input type=\"text\" id=\"location_search_name_field\" name=\"location_search_name\" value=\"\" \/><\/div>\n\t\t<div class='location_search_street_cell  location_search_cell'>Street: <br \/><input type=\"text\" id=\"location_search_address_field\" name=\"location_search_address\" value=\"\" \/><\/div>\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<\/div> \n\t<div id='location_search_1_tr' class='location_search_row'>\n\t\t<div class='location_search_state_cell  location_search_cell'>State: <br \/><input type=\"text\" id=\"location_search_state_field\" name=\"location_search_state\" 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_empty_cell location_search_cell'><\/div>\n\t<\/div> \n\t<div id='location_search_2_tr' class='location_search_row'>\n\t\t<div class='location_search_empty_cell location_search_cell'><\/div>\n\t\t<div class='location_search_distance_cell  location_search_cell'>Select a distance: <\/div>\n\t\t<div id='location_search_distance_fields'><select id=\"location_search_distance_field\" name=\"location_search_distance\" ><option value=\"1\">1 mi<\/option>\n<option value=\"5\">5 mi<\/option>\n<option value=\"10\">10 mi<\/option>\n<option value=\"25\">25 mi<\/option>\n<option value=\"50\">50 mi<\/option>\n<option value=\"100\" selected='selected'>100 mi<\/option>\n<option value=\"500\">500 mi<\/option>\n<option value=\"1000\">1000 mi<\/option>\n<\/select><\/div>\n\t<\/div> \n\t<div id='location_search_5_tr' class='location_search_row'>\n\t\t<div class='location_search_empty_cell location_search_cell'><\/div>\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<\/div><\/div><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='39.095963' \/><input type='hidden' id='location_search_default_lng' value='-46.259769' \/><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 decoding=\"async\" src=\"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/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 = \"39.095963\";\n\t\t\t\tvar lng = \"-46.259769\";\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 = \"3\";\n\t\t\t\tvar map_type = \"ROADMAP\";\n\t\t\t\tvar shortcode_autoload = \"some\";\n\t\t\t\tvar shortcode_scrollwheel = \"1\";\n\t\t\t\tvar shortcode_draggable = \"1\";\n\t\t\t\tvar auto_locate = \"\";\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>","protected":false},"excerpt":{"rendered":"<p>Locate Stealth Hub Dealers Near You Currently migrating dealers. Please use Dealer Locator for full listing. Locate Dealers in your area by either typing in your address or zip\/postal code and clicking the Search button. If results are found, the locations will be plotted on the map and detail information of the locations near you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":54,"menu_order":11200,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1151","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/pages\/1151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/comments?post=1151"}],"version-history":[{"count":5,"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/pages\/1151\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/pages\/1151\/revisions\/1167"}],"up":[{"embeddable":true,"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/pages\/54"}],"wp:attachment":[{"href":"https:\/\/www.trueprecisioncomponents.com\/tpcomponents\/wp-json\/wp\/v2\/media?parent=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}