function displayLink(p_url, p_title) {

  //addBookmark(p_title, p_url);

  var agt = navigator.userAgent.toLowerCase();
  var p_here = top.location.href

  
    if (agt.indexOf("opera") != -1) 
    {
       addBookmark(p_title,top.location.href);
    } else
    {
      addBookmark(p_title,p_url);
    }  
}


function addBookmark(title,url) {

  var msg_netscape = "Wiadomość Netscape";
  var msg_opera    = "Aby dodać stronę do zakładek, wciśnij CTRL+T.";
  var msg_other    = "Twoja przeglądarka internetowa nie wspiera automatycznego dodawania do ulubionych. Dodaj stronę do ulubionych ręcznie.";
  var agt          = navigator.userAgent.toLowerCase();


  if (agt.indexOf("opera") != -1) 
  {
    if (window.opera && window.print)
    {
      return true;
    } else 
    {
      alert(msg_other);
    }
  }    
  else if (agt.indexOf("firefox") != -1) window.sidebar.addPanel(title,url,"");
  else if ((agt.indexOf("msie") != -1) && (parseInt(navigator.appVersion) >=4)) window.external.AddFavorite(url,title); 
  else if (agt.indexOf("netscape") != -1) window.sidebar.addPanel(title,url,"")         
  else if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(title,url,""); 
  else alert(msg_other);
  
}

