Street View in your site with Google Maps

<script src="http://maps.google.com/maps?file=api&v=2&key=yourApiKey&sensor=false"
type="text/javascript"></script>

<script type="text/javascript">
var map;
var myPano;
var panoClient;
var nextPanoId;

function addToMap(response) {
var place = response.Placemark[0].Point;
var fenwayPark = new GLatLng(place.coordinates[1], place.coordinates[0]);

var fenwayPOV = { yaw: 0, pitch: 0 };
panoClient = new GStreetviewClient();
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(fenwayPark, 15);
GEvent.addListener(map, "click", function(overlay, latlng) {
panoClient.getNearestPanorama(latlng, showPanoData);
});

myPano = new GStreetviewPanorama(document.getElementById("pano"));
myPano.setLocationAndPOV(fenwayPark, fenwayPOV);
GEvent.addListener(myPano, "error", handleNoFlash);
panoClient.getNearestPanorama(fenwayPark, showPanoData);
}

function showPanoData(panoData) {
if (panoData.code != 200) {
//GLog.write('showPanoData: Server rejected with code: ' + panoData.code);
return;
}
nextPanoId = panoData.links[0].panoId;
var displayString = [
"Location: " + panoData.location.description,
//"Panorama ID: " + panoData.location.panoId,
"LatLng: " + panoData.location.latlng,
//"Copyright: " + panoData.copyright,
//"Next Pano ID: " + panoData.links[0].panoId
].join("<br/>");
map.openInfoWindowHtml(panoData.location.latlng, displayString);

//GLog.write('Viewer moved to' + panoData.location.latlng);
myPano.setLocationAndPOV(panoData.location.latlng);
}

function next() {
// Get the next panoId
// Note that this is not sophisticated. At the end of the block, it will get stuck
panoClient.getPanoramaById(nextPanoId, showPanoData);
}

function handleNoFlash(errorCode) {
if (errorCode == 603) {
alert("Error: Flash doesn't appear to be supported by your browser");
return;
}
}
$(document).ready(function() {
new GClientGeocoder().getLocations('<%=Address %>', addToMap);
});
</script>

<div id="map_canvas" style="width: 350px; height: 200px">

<div name="pano" id="pano" style="width: 350px; height: 250px">