function bookmarksite(){ 
 // add a "rel" attrib if Opera 7+ 
 // don't overwrite the rel attrib if already set 
 if(window.opera) 
  if(document.getElementById('bookmarksite').rel != '') 
   document.getElementById('bookmarksite').rel = 'sidebar'; 
  
 document.getElementById('bookmarksite').onclick = function(event){ 
  //event.preventDefault(); // prevent the anchor tag from sending the user off to the link 
  var url = location.href; 
  var title = this.title; 
  
  if (window.sidebar) { // Mozilla Firefox Bookmark 
   window.sidebar.addPanel(title, url,""); 
  } else if( window.external ) { // IE Favorite 
   window.external.AddFavorite( url, title); 
  } else if(window.opera) { // Opera 7+ 
   return false; // do nothing - the rel="sidebar" should do the trick 
  } else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway) 
   return false; 
  }
  return false;
 }; 
} 

