
/* add item to map */
function addToMap(id, type)
{
  $.ajax({
    url:  '/ajax/ajax_map.php',
    data: { id: id, type: type, action: 'add'},
    success: function (data) {
      $('#map_container').html(data);
    }
  });
  
  return false;
}

/* remove item to map */
function remFromMap(id, type)
{
  $.ajax({
    url:  '/ajax/ajax_map.php',
    data: { id: id, type: type, action: 'remove'},
    success: function (data) {
      $('#map_container').html(data);
    }
  });
  
  return false;
}


/* close map */
function closeMap()
{
  $.ajax({
    url:  '/ajax/ajax_map.php',
    data: { action: 'close'},
    success: function (data) {
      $('#map_container').html(data);
    }
  });
  
  return false;
}


/* open map */
function openMap()
{
  $.ajax({
    url:  '/ajax/ajax_map.php',
    data: { action: 'open'},
    success: function (data) {
      $('#map_container').html(data);
    }
  });
  
  return false;
}