dn = location.href + '/';
dn = dn.substr(dn.indexOf('://') + 3);
dn = dn.substr(0, dn.indexOf('/'));

function add_social(s) {
 url='';

 switch(s) {
 case 'bobrdobr':
 url = 'http://bobrdobr.ru/addext.html?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'memori':
 url='http://memori.ru/link/?sm=1&u_data[url]=' + encodeURIComponent(location.href) + '&u_data[name]=' + encodeURIComponent(document.title);
 break;
 case 'mister-wong':
 url = 'http://www.mister-wong.ru/index.php?action=addurl&bm_url=' + encodeURIComponent(location.href) + '&bm_description=' + encodeURIComponent(document.title);
 break;
 case 'moemesto':
 url = 'http://moemesto.ru/post.php?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'yandex':
 url = 'http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl=' + encodeURIComponent(location.href) + '&lname=' + encodeURIComponent(document.title);
 break;
 case 'myscoop':
 url = 'http://myscoop.ru/add/?URL=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'delicious':
 url = 'http://del.icio.us/post?v=4&noui&jump=close&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'ruspace':
 url = 'http://www.ruspace.ru/index.php?link=bookmark&action=bookmarkNew&bm=1&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'google':
 url = 'http://www.google.com/bookmarks/mark?op=add&bkmk=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'news2':
 url = 'http://news2.ru/add_story.php?url=' + encodeURIComponent(location.href);
 break;
 case 'vaau':
 url = 'http://www.vaau.ru/submit/?action=step2&url=' + encodeURIComponent(location.href);
 break;
 case 'slashdot':
 url = 'http://www.slashdot.org/bookmark.pl?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);
 break;
 case 'yahoomyweb':
 url = 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=' + encodeURIComponent(location.href) + '&t=' + encodeURIComponent(document.title);
 break;
 case 'technorati':
 url = 'http://technorati.com/faves?add=' + encodeURIComponent(location.href);
 break;
 case 'digg':
 url = 'http://digg.com/submit?url=' + encodeURIComponent(location.href);
 break;
 default:
 url='';
 }

 if (url) {
 var blank = window.open(url, '_blank');
 blank.focus();
 }
}

document.write('<a href="#add" target="_blank" onclick="add_social(\'bobrdobr\'); return false;"><img src="/uploads/images/bookmarks/bobr.gif" title="Забобрить!" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'memori\'); return false;"><img src="/uploads/images/bookmarks/memori.gif" title="В мемори" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'mister-wong\'); return false;"><img src="/uploads/images/bookmarks/wong.gif" title="Мистер Вонг" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'moemesto\'); return false;"><img src="/uploads/images/bookmarks/moe.gif" title="Мое место" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'yandex\'); return false;"><img src="/uploads/images/bookmarks/yandex.gif" title="Яндекс.Закладки" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'ruspace\'); return false;"><img src="/images/bookmarks/ruspace.gif" title="RuSpace" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'myscoop\'); return false;"><img src="/images/bookmarks/myscoop.gif" title="MyScoop" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'delicious\'); return false;"><img src="/images/bookmarks/delic.gif" title="Delicious" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'google\'); return false;"><img src="/uploads/images/bookmarks/google.gif" title="Google" /></a>&nbsp;'
+'<a href="#add" target="_blank" onclick="add_social(\'news2\'); return false;"><img src="/uploads/images/bookmarks/news2.gif" title="News 2" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'vaau\'); return false;"><img src="/images/bookmarks/vaau.gif" title="Ваау" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'slashdot\'); return false;"><img src="/images/bookmarks/slashdot.gif" title="SlashDot" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'yahoomyweb\'); return false;"><img src="/images/bookmarks/yahoomyweb.gif" title="YahooMyWeb" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'technorati\'); return false;"><img src="/images/bookmarks/technorati.gif" title="Technorati" /></a>&nbsp;'
//+'<a href="#add" target="_blank" onclick="add_social(\'digg\'); return false;"><img src="/images/bookmarks/digg.gif" title="Digg" /></a>&nbsp;'
);