function GControlStreetViewPanorama(){
}
GControlStreetViewPanorama.prototype = new GControl();
GControlStreetViewPanorama.prototype.initialize = function(map){
	var container = $("<div class=\"panoContainer\"><div class=\"panorama\"></div></div>").get(0);
	$(container).css({"width":"80%","height":"80%","left":"9%","top":"9%","position":"absolute","padding":"1%","background-color":"white","border":"1px solid black","text-align":"right"});
	$(container).children(".panorama").css({"width":"100%","height":"90%"});
	$(container).append("<a>close</a>");
	
	map._custom.streetView.panorama = new GStreetviewPanorama($(container).children(".panorama").get(0),{features:{userPhotos:false}});

	$(container).children("a").attr("href","javascript:;").click(function(){
		map._custom.streetView.panorama.remove();
		$(this).parents(".panoContainer").hide();
	});
	map._custom.listeners.mapPanoDragStart = GEvent.addListener(map,"dragstart",function(){
		this._custom.streetView.panorama.remove();
		$(map.getContainer()).children(".panoContainer").hide();
	});

	map.getContainer().appendChild(container);
	$(container).hide();
	return container;
}
GControlStreetViewPanorama.prototype.getDefaultPosition = function(){
	return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(0,0));
}