var map = null;

function GetMap() {
	map = new VEMap('myMap');
	map.HideDashboard();
	map.LoadMap(new VELatLong(47.97743097560937, 16.220136873007643), 10,VEMapStyle.Road);
	//map.SetMapStyle();
	var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(47.97743097560937, 16.220136873007643));
	shape.SetTitle('<div style="text-align:left;">REISEB&Uuml;RO FLIEG &amp; SPAR<br />A-2540 Bad V&ouml;slau</div>');
	shape.SetDescription('<div style="text-align:left;">Industriestra&szlig;e 12<br /><strong>IM MERKURMARKT<br /><br />&Ouml;ffnungszeiten:</strong><br />Mo - Fr. 09:00 - 18:00<br />Sa.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;09:00 - 12:30</div>');
	map.AddShape(shape);
}

function zoom(aktion) {
	if (aktion == "vergroessern") {
		map.ZoomIn();
	} else {
		map.ZoomOut();
	}
	return false;
}

function ansicht(aktion) {
	switch(aktion) {
	case "strassenkarte":
		map.SetMapStyle(VEMapStyle.Road);
		break;
	//case "vogelperspektive":

		//map.SetMapStyle(VEMapStyle.BirdseyeHybrid);
		//map.SetBirdseyeScene(new VELatLong(47.97743097560937, 16.220136873007643), VEOrientation.West);
		//map.SetBirdseyeOrientation(VEOrientation.South);

		break;
	case "umgebungskarte":
		map.SetMapStyle(VEMapStyle.Hybrid);
		break;
	default:
		break;
	}
	return false;
}
