function initStreetView(lat, lng, pitch, yaw, zoom) 
{
	dealerLocation = new GLatLng(lat,lng);
	cameraView = {yaw: yaw, pitch: pitch, zoom: zoom};

	var streetViewOptions = 
	{
		features: 
		{
			streetView: true,
			userPhotos: false
		},

		userPhotoOptions: 
		{
			photoRepositories: [  ]
		}
	};

	streetView = new GStreetviewPanorama(document.getElementById("flashBanner"), streetViewOptions);
	streetView.setLocationAndPOV(dealerLocation, cameraView);

	GEvent.addListener(streetView, "error", handleNoFlash);

	GEvent.addListener(streetView, 'initialized', function(pano) 
	{
		//debug("newlng: " + pano.latlng.lng() + ", newlat: " + pano.latlng.lat());
	});

	GEvent.addListener(streetView, 'yawchanged', function(newyaw)
	{
		//debug("yawchanged: " + newyaw);
	});

	GEvent.addListener(streetView, 'pitchchanged', function(newpitch) 
	{
		//debug("pitchchanged: " + newpitch);
	});

	GEvent.addListener(streetView, 'zoomchanged', function(newzoom) 
	{
		//debug("zoomchanged: " + newzoom);
	});
}

function handleNoFlash(errorCode) 
{
	/*if (errorCode == FLASH_UNAVAILABLE) 
	{
		alert("Sorry, Flash doesn't appear to be supported by your browser or there is no Street View available from your location");
		return;
	}*/
}