/**
 * JS code for embedding Microsoft Live Maps
 *
 * @project       kangu.ro
 * @subpackage    web.js
 */

var map = null;
var farinefive = new VELatLong(47.389894,8.5164);
var pinLocation = new VELatLong(47.389894,8.5164);

function GetMap()
{
	map = new VEMap('my-map');
	
	map.LoadMap(pinLocation, 12);
	
	// Let me know if a birdseye scene is available
	map.AttachEvent("onobliqueenter", OnObliqueEnterHandler);
}

function OnObliqueEnterHandler()
{
	if(map.IsBirdseyeAvailable())
	{
	   //map.SetBirdseyeScene(farinefive);
	}
	
	var shape = new VEShape(VEShapeType.Pushpin, pinLocation);
	shape.SetTitle('Digital Information Headquarters');
	//shape.SetDescription('Strada Boteanu 3, ap. 14, sector 1, Bucuresti, Romania');
	map.AddShape(shape);
}

$(document).ready(function(){
	GetMap();
});