function changeCursor() {
	var cur = document.getElementById("map");
    cur.firstChild.firstChild.style.cursor = "crosshair"; 
}
function TextualStyleControl() {
    }
    TextualStyleControl.prototype = new GControl();
	
	 TextualStyleControl.prototype.initialize = function(map) {
      var container = document.createElement("div");

      var mapDiv = document.createElement("span");
      this.setButtonStyle_(mapDiv);
      container.appendChild(mapDiv);
      mapDiv.appendChild(document.createTextNode("Map"));
      GEvent.addDomListener(mapDiv, "click", function() {
        map.setMapType(G_NORMAL_MAP);
      });

	  var satDiv = document.createElement("span");
      this.setButtonStyle_(satDiv);
      container.appendChild(satDiv);
      satDiv.appendChild(document.createTextNode("Satellite"));
      GEvent.addDomListener(satDiv, "click", function() {
        map.setMapType(G_SATELLITE_MAP);
      });

	  var hybDiv = document.createElement("span");
      this.setButtonStyle_(hybDiv);
      container.appendChild(hybDiv);
      hybDiv.appendChild(document.createTextNode("Hybrid"));
      GEvent.addDomListener(hybDiv, "click", function() {
        map.setMapType(G_HYBRID_MAP);
      });
	  var earthDiv = document.createElement("span");
      this.setButtonStyle_(earthDiv);
      container.appendChild(earthDiv);
      earthDiv.appendChild(document.createTextNode("Globe"));
      GEvent.addDomListener(earthDiv, "click", function() {
        map.setMapType(G_SATELLITE_3D_MAP);
      });
      

      map.getContainer().appendChild(container);
      return container;
    }

    // By default, the control will appear in the top left corner of the
    // map with 7 pixels of padding.
    TextualStyleControl.prototype.getDefaultPosition = function() {
      return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(7, 7));
    }

    // Sets the proper CSS for the given button element.
    TextualStyleControl.prototype.setButtonStyle_ = function(button) {
      button.style.textDecoration = "none";
      button.style.color = "#6D5801";
      button.style.backgroundColor = "#E6DECE";
      button.style.font = "small Arial";
      button.style.border = "1px solid #6D5801";
      button.style.padding = "2px 5px 2px 5px";
      button.style.marginBottom = "3px";
      button.style.textAlign = "center";
      button.style.width = "6em";
      button.style.cursor = "pointer";
	  button.style.margin = "1px 4px 1px 4px";
	  
    }