function StreetviewButton( lat, longitude ) {
	this.lat = lat;
	this.longitude = longitude;
	this.streetview = null;
}

StreetviewButton.prototype = new GControl();

StreetviewButton.prototype.initialize = function(map) {
 	var mainContainer = document.createElement("div");
	var buttonContainer = document.createElement("div");
 	var streetviewDiv = document.createElement("div");
 	
	this.setContainerStyle_(buttonContainer);
	this.setButtonStyle_(streetviewDiv);
	
	mainContainer.appendChild(buttonContainer);
	buttonContainer.appendChild(streetviewDiv);
	streetviewDiv.appendChild(document.createTextNode("Streetview"));
	
	GEvent.addDomListener(streetviewDiv, "click", function() {
 		document.getElementById("mapstreet").style.zIndex = 3;
 		document.getElementById("shimmer").style.visibility='hidden';
 		document.getElementById("mapbig").style.visibility='hidden';
	});

	map.getContainer().appendChild(mainContainer);
	return mainContainer;
}
	
StreetviewButton.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(200, 7));
}

StreetviewButton.prototype.setButtonStyle_ = function(button) {
  button.style.border = "solid";
  button.style.borderColor = "white rgb(176, 176, 176) rgb(176, 176, 176) white";
  button.style.borderWidth = "1px";
  button.style.fontSize = "12px";
}

StreetviewButton.prototype.setContainerStyle_ = function(button) {
  button.style.border = "1px solid black";
  button.style.backgroundColor = "white";
  button.style.textAlign = "center";
  button.style.cursor = "pointer";
  button.style.width = "6em";
  button.style.fontFamily = "Arial,sans-serif";
}
