/**
 * This method
 */

function bookmark(url, title)
{
  // if we're internet explorer 4 or greater
  if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4))
  {
    window.external.AddFavorite(url,title);
  }
  // otherwise, if this is a Netscape variant
  else if (navigator.appName == 'Netscape' && window.sidebar && window.sidebar.addPanel)
  {
    window.sidebar.addPanel(title, url, '');
  }
  // if this is Opera
  else if (window.opera && window.print)
  {
    alert('Press Ctrl+Shift+D to bookmark this page.');
  }
  // if this is safari
  else if (navigator.userAgent.toLowerCase().indexOf('safari') != -1 && navigator.userAgent.toLowerCase().indexOf('mac') != -1)
  {
    alert('Press Command+D to bookmark this page');
  }
  else
  {
    alert('Press Ctrl+D (Netscape) or Ctrl+Shift+D (Opera) to bookmark this page.');
  }
}
