function bookmarken(name, permalink, title){
  switch(name){
    case'oneview':
      var QuickAdd=window.open("about:blank","QuickAdd","height=630,width=500,toolbar=no,scrollbars=yes");
      var d=document;var s=d.createElement("script");
      s.type="text/javascript";s.src="http://beta.oneview.de:80/js/bookmarklet.jsp";
      h=d.getElementsByTagName("head")[0];
      
      if(!h){
        h=d.createElement("head");
        d.appendChild(h)
      }
      
      h.appendChild(s);QuickAdd.focus();
      break;
      
    case'Lycos iQ':
      w=window.open("http://iq.lycos.de/lili/my/add?url="+permalink+"");
      w.focus();
      setTimeout('w.focus()',1000);
      break;
      
    case'del.icio.us':
      window.open("http://del.icio.us/post?url="+permalink+"&title="+title+"");
      break;
      
    case'digg':
      window.open("http://digg.com/submit?phase=2&url="+permalink+"&title="+title+"");
      break;
      
    case'Mister Wong':
      window.open("http://www.mister-wong.de/index.php?action=addurl&bm_url="+permalink+"&bm_description="+title+"");
      break;
      
    case'Yahoo MyWeb':
      window.open("http://myweb2.search.yahoo.com/myresults/bookmarklet?u="+permalink+"&="+title+"");
      break;
      
    case'YiGG':window.open("http://yigg.de/neu?exturl="+permalink+"&exttitle="+title+"");
      break;
  }
}

function social_hover(name,element){

  $('social_name').firstChild.nodeValue=name;
  
  if(!Element.hasClassName(element,'bookmarkicon_hover')){
    Element.addClassName(element,'bookmarkicon_hover')
  }else{
    Element.removeClassName(element,'bookmarkicon_hover');
  }
}
