function login()
{
	$('#status').show();
	
}		


function createMap()
{
	if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        var point = new GLatLng(40.752585, -73.987915);
        
        map.setCenter(point, 15);
        //map.setUIToDefault();
        map.addControl(new GSmallMapControl()); 
				///map.addControl(new GMapTypeControl()); 


        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon(G_DEFAULT_ICON);
        baseIcon.iconSize = new GSize(30, 30);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
        baseIcon.shadow = "";

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index) {
          // Create a lettered icon for this point using our icon class
          var jobicon = new GIcon(baseIcon);
          /*
          if ($("#job-icon").attr("src"))
          {
          	jobicon.image = $("#job-icon").attr("src");
          	jobicon.iconSize = new GSize(40, 40);
          }
          */
          jobicon.image = "http://www.webalgorithm.com/images/WA_button.png";
	        jobicon.iconSize = new GSize(30, 30);
	        
          // Set up our GMarkerOptions object
          markerOptions = { icon:jobicon, title:'1375 Broadway, 3rd Floor'};
          var marker = new GMarker(point, markerOptions);

					$('#googlemap-popup').each(function()
          	{
          		marker.openInfoWindowHtml(this.innerHTML);
          	});
					
          GEvent.addListener(marker, "click", function() {
          	
          	$('#googlemap-popup').each(function()
          	{
          		marker.openInfoWindowHtml(this.innerHTML);
          	});
          });
          return marker;
        }

        map.addOverlay(createMarker(point, "1"));
        
      }
}
