
function activityNotificationStart(container, loaderType)
{
  var obj, imgName;
  
  obj     = $('#' + container);
  imgName = loaderType != null && loaderType == "circle"
            ? "ajax_circle_loader.gif"
            : "ajax_line_loader.gif";
  
  if (!activityNotificationCheck(container))
  {
    obj.attr('activity-notification', '1');
    obj.append('<img class="activity-notification" src="/img/16x16/' + imgName + '"/>');
  }
}

function activityNotificationStop(container)
{
  $('#' + container).removeAttr('activity-notification');
  $('#' + container + '>img').remove();
}

function activityNotificationCheck(container)
{
  var activity;
  
  activity = $('#' + container).attr('activity-notification');
  
  return typeof activity !== 'undefined' && activity == '1';
}

