function bookmark_in_connotea() {
  a=false;
  x=window;
  e=x.encodeURIComponent;
  d=document;
  u=location.href;
  w=open('http://www.connotea.org/addpopup?continue=confirm&uri='+e(u), 'add', 'width=600, height=400, scrollbars, resizable');
  void(x.setTimeout('w.focus()',200));
  return false;
}
function fbs_click() {
  u=location.href;  t=document.title;
  window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
  return false;
}
function bookmark_delicious() {
  window.open('http://delicious.com/post?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious',
              'toolbar=no,width=550,height=550');
  return false;
}
function bookmark_citeulike() {
  window.open('http://www.citeulike.org/posturl?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'citeulike',
              'toolbar=no,width=800,height=650,scrollbars=1');
  return false;
}
function bookmark_google() {
  window.open('http://www.google.com/bookmarks/mark?op=edit&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'google',
              'toolbar=no,width=750,height=550,scrollbars=1');
  return false;
}

function getElements() {
  document.getElementById("bkmsciteulike").onclick = bookmark_citeulike;
  document.getElementById("bkmsconnotea").onclick = bookmark_in_connotea;
  document.getElementById("bkmsdelicious").onclick = bookmark_delicious;
  document.getElementById("bkmsfacebook").onclick = fbs_click;
  document.getElementById("bkmsgoogle").onclick = bookmark_google;
}

addLoadEvent(getElements);