function te_hintbm(txt) {
    if (txt == '') {
        txt='<B STYLE=\"color: red;\">Neu:</B> Bookmarken bei <B>...</B>';
    } else if (txt == '?') {
        txt='Welche Bedeutung haben diese Icons?';
    } else {
	txt='Bookmarken bei ' + txt;
    }
    var elm = document.getElementById('sbmbm');
    if(elm)
	elm.innerHTML=txt;
}
function te_hintnws(txt) {
    if (txt == '') {
        txt='<B STYLE=\"color: red;\">Neu:</B> Diese News einstellen bei <B>...</B>';
    } else if (txt == '?') {
        txt='Welche Bedeutung haben diese Icons?';
    } else {
	txt='Einstellen bei ' + txt;
    }
    var elm = document.getElementById('sbmnws');
    if(elm)
	elm.innerHTML=txt;
}
function te_sbmlink(who) {
    var sbmurl=encodeURIComponent(window.location.protocol+'//'+
        (window.location.hostname+window.location.pathname).replace(/\/:.*?\//g,'/'));
    var sbmtitle=encodeURIComponent(document.title);
    var sbmlnk='';
    switch(who) {
    case 'delicious':
	sbmlnk='del.icio.us/post?url='+sbmurl+'&title='+sbmtitle;
	break;
    case 'folkd':
	sbmlnk='www.folkd.com/submit/page/'+sbmurl;
	break;
    case 'google':
	sbmlnk='www.google.com/bookmarks/mark?op=add&hl=de&bkmk='
	    +sbmurl+'&title='+sbmtitle;
	break;
    case 'larena':
	sbmlnk='linkarena.com/bookmarks/addlink/?url='
	    +sbmurl+'&title='+sbmtitle+'&desc=&tags=';
	break;
    case 'wong':
	sbmlnk='www.mister-wong.de/index.php?action=addurl&bm_url='
	    +sbmurl+'&bm_description='+sbmtitle;
	break;
    case 'yahoo':
	sbmlnk='myweb2.search.yahoo.com/myresults/bookmarklet?u='
	    +sbmurl+'&t='+sbmtitle;
	break;
    case 'digg':
	sbmlnk='digg.com/submit?phase=2&url='
	    +sbmurl+'&bodytext=&tags=&title='+sbmtitle;
	break;
    case 'lufee':
	sbmlnk='www.lufee.de/submit.php?link='+sbmurl+'&ititle='+sbmtitle;
	break;
    case 'shortnews':
	sbmlnk='www.shortnews.de/submitsource.cfm?source='+sbmurl;
	break;
    case 'tausend':
	sbmlnk='tausendreporter.stern.de/submit.php?url='+sbmurl;
	break;
    case 'webnews':
	sbmlnk='www.webnews.de/einstellen?url='+sbmurl+'&title='+sbmtitle;
	break;
    case 'wikio':
	sbmlnk='www.wikio.de/vote?url='+sbmurl;
	break;
    case 'yigg':
	sbmlnk='www.yigg.de/neu?exturl='+sbmurl+'&exttitle='+sbmtitle;
	break;
    }
    window.open('http://'+sbmlnk);
}
function te_sbm_bmlink(title, hint, gif, width, height)
{
    document.write('<A TARGET=\"_blank\" CLASS=extra REL=\"nofollow\"'+
        ' TITLE=\"Bookmarken bei '+title+'\"' +
        ' HREF=\"http://'+title+'\"'+
        ' ONMOUSEOVER="te_hintbm(\''+hint+'\');\"'+
        ' ONMOUSEOUT=\"te_hintbm(\'\');\" STYLE=\"padding: 0 2px;\"'+
        ' ONCLICK=\"te_sbmlink(\''+gif+'\');return false;\">'+
        '<IMG SRC=\"/scripts/social-bookmarks/gif/'+gif+'.gif\" ALT=\"'+hint+'\"'+
        ' WIDTH='+width+' HEIGHT='+height+
        ' BORDER=0></A>');
}
function te_sbm_bm()
{
  document.write(
    '<A HREF=\"/social-bookmarks/social-bookmarks.html\"'+
    ' CLASS=extra TITLE=\"Welche Bedeutung haben diese Icons?\">' +
    '<SPAN ID=sbmbm><B STYLE=\"color: red;\">Neu:</B>' +
      ' Bookmarken bei <B>...</B></SPAN></A><BR>');
  te_sbm_bmlink('Del.icio.us', 'Del.icio.us', 'delicious', '20', '20');
  te_sbm_bmlink('www.Folkd.com', 'Folkd', 'folkd', '20', '20');
  te_sbm_bmlink('www.Google.com', 'Google', 'google', '20', '20');
  te_sbm_bmlink('www.Linkarena.com', 'Linkarena', 'larena', '20', '20');
  te_sbm_bmlink('www.Mister-wong.de', 'Mister Wong', 'wong', '20', '20');
  te_sbm_bmlink('www.Yahoo.com', 'Yahoo', 'yahoo', '20', '20');
  document.write(
    '<A TITLE=\"Was sind Social-Bookmarks?\"'+
    ' HREF=\"/social-bookmarks/social-bookmarks.html\"'+
    ' ONMOUSEOVER=\"te_hintbm(\'?\');\" STYLE=\"padding: 0 2px 0 6px;\"'+
    ' ONMOUSEOUT=\"te_hintbm(\'\');\" CLASS=extra>'+
    '<IMG SRC=\"/scripts/social-bookmarks/gif/question.gif"'+
    ' ALT=\"Was sind Social-Bookmarks?\"'+
    ' WIDTH=20 HEIGHT=20 BORDER=0></A>');
}
function te_sbm_nwslink(title, hint, gif, width, height)
{
    document.write('<A TARGET=\"_blank\" CLASS=extra REL=\"nofollow\"'+
        ' TITLE=\"News einstellen bei '+title+'\"' +
        ' HREF=\"http://'+title+'\"'+
        ' ONMOUSEOVER="te_hintnws(\''+hint+'\');\"'+
        ' ONMOUSEOUT=\"te_hintnws(\'\');\" STYLE=\"padding: 0 2px;\"'+
        ' ONCLICK=\"te_sbmlink(\''+gif+'\');return false;\">'+
        '<IMG SRC=\"/scripts/social-bookmarks/gif/'+gif+'.gif\" ALT=\"'+hint+'\"'+
        ' WIDTH='+width+' HEIGHT='+height+
        ' BORDER=0></A>');
}
function te_sbm_nws()
{
  document.write(
    '<A HREF=\"/social-bookmarks/social-bookmarks.html\"'+
    ' CLASS=extra TITLE=\"Welche Bedeutung haben diese Icons?\">' +
    '<SPAN ID=sbmnws><B STYLE=\"color: red;\">Neu:</B>' +
      ' Diese News einstellen bei <B>...</B></SPAN></A><BR>');
  te_sbm_nwslink('www.Lufee.de', 'Lufee', 'lufee', '23', '19');
  te_sbm_nwslink('www.shortnews.de', 'Shortnews', 'shortnews', '20', '20');
  te_sbm_nwslink('tausendreporter.stern.de', 'Tausendreporter', 'tausend', '20', '20');
  te_sbm_nwslink('www.Webnews.de', 'Webnews', 'webnews', '20', '20');
  te_sbm_nwslink('www.Wikio.de', 'Wikio', 'wikio', '22', '19');
  te_sbm_nwslink('www.Yigg.de', 'Yigg', 'yigg', '20', '20');
  document.write(
    '<A TITLE=\"Was sind Social-News?\"'+
    ' HREF=\"/social-bookmarks/social-bookmarks.html\"'+
    ' ONMOUSEOVER=\"te_hintnws(\'?\');\" STYLE=\"padding: 0 2px 0 6px;\"'+
    ' ONMOUSEOUT=\"te_hintnws(\'\');\" CLASS=extra>'+
    '<IMG SRC=\"/scripts/social-bookmarks/gif/question.gif"'+
    ' ALT=\"Was sind Social-News?\"'+
    ' WIDTH=20 HEIGHT=20 BORDER=0></A>');
}
function te_sbm()
{
  document.write(
    '<TABLE WIDTH=\"100%\" CELLSPACING=0 BORDER=0 CELLPADDING=0'+
    ' STYLE=\"clear: both; margin: 15px 0;\">'+
    '<TR><TD WIDTH=\"50%\" ALIGN=center'+
    ' CLASS=\"arial2 lh\" STYLE=\"padding: 5px; white-space: nowrap;'+
    ' border-top: #CCCCCC 1px solid; border-bottom: #CCCCCC 1px solid;\">');
  te_sbm_bm();
  document.write(
    '</TD><TD WIDTH=\"50%\" ALIGN=center CLASS=\"arial2 lh\"'+
    ' STYLE=\"padding: 5px; white-space: nowrap;'+
    ' border-top: #CCCCCC 1px solid; border-bottom: #CCCCCC 1px solid;\">');
  te_sbm_nws();
  document.write('</TD></TR></TABLE>');
}
