$(document).ready(function() {
    $('#gallery-carousel').jcarousel({
        vertical: true,
        scroll: 2
    });
    
    $('.lightbox').lightBox({txtImage: 'Afbeelding',	txtOf: 'van'});
    
    if (CCL.EditMode)
      $('body').addClass('edit');
   
});


var map = null;
var SpaceNeedle = null;
var pinLocation = null;

function GetMap()
{
  map = new VEMap('myMap');
  SpaceNeedle = new VELatLong(51.921947183561784, 4.488907898011807);
  pinLocation = new VELatLong(51.921947183561784, 4.488907898011807);

  map.LoadMap(SpaceNeedle, 15);

  // Let me know if a birdseye scene is available
  //map.AttachEvent("onobliqueenter", OnObliqueEnterHandler);
}

function OnObliqueEnterHandler()
{
  if(map.IsBirdseyeAvailable())
  {
     var TopOfNeedle = new VELatLong(51.921947183561784, 4.488907898011807); 
     //map.SetBirdseyeScene(43387621);
     map.SetCenterAndZoom(TopOfNeedle, 17);
  }
}

function ShowBirdId()
{
var be = map.GetBirdseyeScene();
var id = be.GetID();
alert(id);
}

