/**
 * Streetview Bridge Functions
 * methods to let flash talk to streetview manager
 * 
 * @author Manuel Boy | polargold GmbH
 */

var streetView = new StreetView();

/** initialize the street view manager and google maps api */
var streetViewInit = function() {
	streetView.init();
	google.load("maps", "2", {callback: function() {
		streetView.initializePanorama();
		streetView.setPosition(0, 0, 0, 0);
	}});
}

/** show the street view container */
var streetViewShow = function() {
	streetView.show();
}

/** hide the street view container */
var streetViewHide = function() {
	streetView.hide();
}

/** navigate to a position in street view container */
var streetViewNavigate = function(latitude, longitude) {
	streetView.navigateTo(latitude, longitude, null, null);
}

/** set position of street view container */
var streetViewSetPosition = function(width, height, left, top) {
	streetView.setPosition(width, height, left, top);
}

