﻿// JScript File

var mgr;var ufr;var allmarkers = [];var usefullmarkers = [];var slocmgr;var slocmarkers = [];var datastore;
var mapmenu = document.createElement("div");mapmenu.style.visibility="hidden";mapmenu.style.background="#ffffff";mapmenu.style.border="1px solid #8888FF";var clickedPixel;
var gmarkers = [];var htmls = [];var markerimages = [];var usefullObject=[];var polygonOld="";var Ob="";var NbO="";
markerimages[0] = "http://www.google.com/mapfiles/markerA.png";markerimages[1] = "http://www.google.com/mapfiles/markerB.png";markerimages[2] = "http://www.google.com/mapfiles/markerC.png";markerimages[3] = "http://www.google.com/mapfiles/markerD.png";markerimages[4] = "http://www.google.com/mapfiles/markerE.png";
markerimages[5] = "http://www.google.com/mapfiles/markerF.png";markerimages[6] = "http://www.google.com/mapfiles/markerG.png";markerimages[7] = "http://www.google.com/mapfiles/markerH.png";markerimages[8] = "http://www.google.com/mapfiles/markerI.png";markerimages[9] = "http://www.google.com/mapfiles/markerJ.png";
var exml;
// === Array for decoding the failure codes ===
var reasons=[];
reasons[G_GEO_SUCCESS]            = "Success";
reasons[G_GEO_MISSING_ADDRESS]    = "Missing Address: The address was either missing or had no value.";
reasons[G_GEO_UNKNOWN_ADDRESS]    = "Unknown Address:  No corresponding geographic location could be found for the specified address.";
reasons[G_GEO_UNAVAILABLE_ADDRESS]= "Unavailable Address:  The geocode for the given address cannot be returned due to legal or contractual reasons.";
reasons[G_GEO_BAD_KEY]            = "Bad Key: The API key is either invalid or does not match the domain for which it was given";
reasons[G_GEO_TOO_MANY_QUERIES]   = "Too Many Queries: The daily geocoding quota for this site has been exceeded.";
reasons[G_GEO_SERVER_ERROR]       = "Server error: The geocoding request could not be successfully processed.";
reasons[G_GEO_BAD_REQUEST]        = "A directions request could not be successfully parsed.";
reasons[G_GEO_MISSING_QUERY]      = "No query was specified in the input.";
reasons[G_GEO_UNKNOWN_DIRECTIONS] = "The GDirections object could not compute directions between the points.";

