function addEngine(srcfile, imgfile, name, category)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    window.sidebar.addSearchEngine(
      srcfile, imgfile, name, category);
  }
  else
  {
    alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
  }
}

function viewSource(id, url)
{
  $('link-' + id).hide();
  $('source-' + id).show();
  new Ajax.Updater('inside-' + id, url, { method: 'get' });
}

function hideSource(id, url)
{
  $('source-' + id).hide();
  $('link-' + id).show();
}

