Drupal.behaviors.access_news = function (context) {
  $('#newsslider:not(.news-processed)',context).addClass('news-processed').each(function() {
    $(this).accessNews({
      slideBy: 5,
      title: "",
      subtitle: "",
      slideShowInterval: 10000
    })  ;
  });
}

Drupal.behaviors.access_news_taxonomy = function (context) {
  tid = $('input[name=tid]').val();

  if(tid === undefined) {
    return true;
  }

  anchor= $('a[href*=news-slider/add]');
  href = anchor.attr('href');
  href = href + "?tid="+tid;
  anchor.attr('href',href);
}

