var WPGM_Path_Polygon = new Array(); var WPGM_Path = new Array(); var infoWindow_poly = Array(); var marker_array = Array(); var marker_sl = null; for (var entry in wpgmaps_localize) { if ('undefined' === typeof window.jQuery) { setTimeout(function(){ document.getElementById('wpgmza_map').innerHTML = 'Error: In order for WP Google Maps to work, jQuery must be installed. A check was done and jQuery was not present. Please see the jQuery troubleshooting section of our site for more information.'; }, 5000); } } function wpgmza_parse_theme_data(raw) { var json; try{ json = JSON.parse(raw); }catch(e) { try{ json = eval(raw); }catch(e) { console.warn("Couldn't parse theme data"); return []; } } return json; } function wpgmza_get_guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } function wpgmza_open_info_window(infoWindow, content) { var guid = wpgmza_get_guid(); var div = $("