         var map1 = null;
	 var map2 = null;

	 //Map location for main office
         var Loc1 = new VELatLong(51.81064, -0.03099);
	 //Map location for Hubway house
	 var Loc2 = new VELatLong(55.09243, -1.61472);

         var pinPoint1 = null;
	 var pinPoint2 = null;
         var pinPixel1 = null;
	 var pinPixel2 = null;
                  
         function GetMap()
         {
            map1 = new VEMap('myMap1');
            map1.LoadMap(Loc1, 14, VEMapStyle.Road, false, VEMapMode.Mode2D, true, 1);
	    map2 = new VEMap('myMap2');
	    map2.LoadMap(Loc2, 13, VEMapStyle.Road, false, VEMapMode.Mode2D, true, 1);

            AddPin();
         }

         function getInfo()
         {
            var info;

            if (map1.IsBirdseyeAvailable())
	    if (map2.IsBirdseyeAvailable())
            {
                var be = map1.GetBirdseyeScene();
		var be = map2.GetBirdseyeScene();

                info  = "ID: "          + be.GetID() + "\n";
                info += "thumbnail: "   + be.GetThumbnailFilename()+ "\n";
                info += "orientation: " + be.GetOrientation()+ "\n";
                info += "height: "      + be.GetHeight() + "\n";
                info += "width: "       + be.GetWidth() + "\n";

                var pixel1 = be.LatLongToPixel1(map1.GetCenter(),map1.GetZoomLevel());
                var pixel2 = be.LatLongToPixel2(map2.GetCenter(),map2.GetZoomLevel());

                info += "LatLongToPixel1: " + pixel1.x + ", " + pixel1.y + "\n";
		info += "LatLongToPixel2: " + pixel2.x + ", " + pixel2.y + "\n";

                // Check to see if the current birdseye view contains the pushpin pixel point.
                info += "contains pixel " + pinPixel1.x + ", " + pinPixel1.y + ": " + 
                        be.ContainsPixel(pinPixel1.x, pinPixel1.y, map1.GetZoomLevel()) + "\n";
		info += "contains pixel " + pinPixel2.x + ", " + pinPixel2.y + ": " + 
                        be.ContainsPixel(pinPixel2.x, pinPixel2.y, map2.GetZoomLevel()) + "\n";
                
                // Check to see if the current view contains the pushpin LatLong.
                info += "contains latlong " + pinPoint1 + ": " + be.ContainsLatLong(pinPoint1) + "\n";
		info += "contains latlong " + pinPoint2 + ": " + be.ContainsLatLong(pinPoint2) + "\n";
                
                // This method may return null, depending on the selected view and map style.
                info += "latlong: " + map1.PixelToLatLong(pixel);
		info += "latlong: " + map2.PixelToLatLong(pixel);

                alert(info);
            }
            else
            {
                var center1 = map1.GetCenter();
		var center2 = map2.GetCenter();

                info  = "Zoom level:\t" + map1.GetZoomLevel() + "\n";
		info += "Latitude:\t"   + center1.Latitude    + "\n";
                info += "Longitude:\t"  + center1.Longitude;

		info  = "Zoom level:\t" + map2.GetZoomLevel() + "\n";
                info += "Latitude:\t"   + center2.Latitude    + "\n";
                info += "Longitude:\t"  + center2.Longitude;

                alert(info);
            }
         }
         
         function AddPin()
         {
            // Add a new pushpin to the center of the map.
            pinPoint1 = map1.GetCenter();
            pinPixel1 = map1.LatLongToPixel(pinPoint1);
            map1.AddPushpin(pinPoint1);
	    pinPoint2 = map2.GetCenter();
            pinPixel2 = map2.LatLongToPixel(pinPoint2);
            map2.AddPushpin(pinPoint2);
         }
