jQuery(document).ready(function()
{
  //initializeGMaps();
});


function initializeGMaps(locationId, divId)
{
  if (GBrowserIsCompatible() )
  {
    var coords = getLatLng(locationId);

    if(coords == null)
    {
      return;
    }

    var map = new GMap2(document.getElementById(divId) );
    map.setCenter(coords, 15);
    map.setUIToDefault();
    map.addOverlay(new GMarker(coords) );
  }
}

function getLatLng(locationId)
{
  switch(locationId)
  {
    case 'zeeland':
    {
      return new GLatLng(60.173879,24.931326);
    }
    case 'turku':
    {
      return new GLatLng(60.447451, 22.271218);
    }
  }

  return null;
}
