         var map = null;
         var latLong = null;
         var zoomLevel = 15;

 		var map = null;
		var shape = null;

		 var turq = new VELatLong(30.278674416373853, -87.54635810852052);


         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap();
			map.SetCenterAndZoom(turq, 15);
            map.SetZoomLevel(zoomLevel);
			map.EnableBirdseye = false;
			map.SetMapMode(VEMapMode.Mode2D);
            map.SetMapStyle(VEMapStyle.Aerial);
            //map.SetMapView('initView');


            // zoom to cursor and center
            map.SetMouseWheelZoomToCenter(false);

            document.getElementById('txtZoom').value = zoomLevel;
            map.AttachEvent("onclick", GetLatLong);
            latLong = map.GetCenter();
			document.getElementById("MSVE_obliqueNotification").style.visibility = "hidden";

         }



         function GetLatLong(e)
         {
            //Get the pixel coordinates from the click event, convert to LatLong value
            var x = e.mapX;
            var y = e.mapY;
            pixel = new VEPixel(x, y);
            latLong = map.PixelToLatLong(pixel);

         }

         function SetCenterAndZoom()
         {
            map.SetCenterAndZoom(latLong, zoomLevel);
         }

         function SetCenter()
         {
            map.SetCenter(latLong);
         }

         function SetZoom()
         {
            map.SetZoomLevel(zoomLevel);
         }

         function ZoomIn()
         {
            //Increase zoom level by a factor of 1
            map.ZoomIn();
            document.getElementById('txtZoom').value = map.GetZoomLevel();
         }

         function ZoomOut()
         {
            //Decrease zoom level by a factor of 1
            map.ZoomOut();
           document.getElementById('txtZoom').value = map.GetZoomLevel();
         }

         function ValidateEntry()
         {
           //Check to make sure zoom level is within range
           if (document.getElementById('txtZoom').value > 0 && document.getElementById('txtZoom').value <= 19)
           {
              zoomLevel = document.getElementById('txtZoom').value;
           }
           else
           {
              alert("Enter a value between 1 and 19.");
           }
         }