function socializ(u,t) {

        var m1 = 140; /* расстояние от начала страницы до плавающей панели */
        var m2 = 20; /* расстояние от верха видимой области страницы до плавающей панели */
        var f = 'i/'; /* путь к папке с изображениями кнопок */

        document.write('<div id="socializ"></div>');
        var s = $('#socializ');
        s.css({top: m1});
        function margin() {
                var top = $(window).scrollTop();
                if (top+m2 < m1) {
                        s.css({top: m1-top});
                } else {
                        s.css({top: m2});
                }
        }
        $(window).scroll(function() { margin(); })

        s.append(
                '<div id="soc1">' +
                '<a rel="nofollow" class="soc_book soc_tw" href="http://twitter.com/home?status=RT @naublog ' + t + ' - ' + u + '" title="Добавить в Twitter"></a>' +
                '<a rel="nofollow" class="soc_book soc_bz" href="http://www.google.com/reader/link?url=' + u + '&title=' + t + '&srcURL=http://naublog.ru/" title="Добавить в Google Buzz"></a>' +
                '<a rel="nofollow" class="soc_book soc_ff" href="http://www.friendfeed.com/share?title=' + t + ' - ' + u + '" title="Добавить в FriendFeed"></a>' +
                '<a rel="nofollow" class="soc_book soc_fb" href="http://www.facebook.com/sharer.php?u=' + u + '" title="Поделиться в Facebook"></a>' +
                '<a rel="nofollow" class="soc_book soc_vk" href="http://vkontakte.ru/share.php?url=' + u + '" title="Поделиться ВКонтакте"></a>' +
                '<a rel="nofollow" class="soc_book soc_mailru" href="http://connect.mail.ru/share?share_url=' + u + '" title="Поделиться в Моем Мире"></a>' +
                '<a rel="nofollow" class="soc_book soc_lj" href="http://www.livejournal.com/update.bml?event=' + u + '&subject=' + t + '" title="Опубликовать в своем блоге livejournal.com"></a>' +
                '<a rel="nofollow" class="soc_book soc_odn" href="http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl=' + u + '" title="Поделиться в Одноклассниках"></a>' +
                '<a rel="nofollow" class="soc_book soc_li" href="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=' + u + '&cntitle=' + t + '" title="Поделиться в Liveinternet"></a>' +
                '</div>' +
                '<div id="socmore" title="Еще">...</div>' +
                '<div id="soc2">' +
                '<a rel="nofollow" class="soc_book soc_del" href="http://delicious.com/save?url=' + u + '&title=' + t + '" title="Сохранить закладку в Delicious"></a>' +
                '<a rel="nofollow" class="soc_book soc_googlemark" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + u + '&title=' + t + '" title="Сохранить закладку в Google"></a>' +
                '<a rel="nofollow" class="soc_book soc_bobr" href="http://bobrdobr.ru/add.html?url=' + u + '&title=' + t + '" title="Забобрить"></a>' +
                '<a rel="nofollow" class="soc_book soc_memori" href="http://memori.ru/link/?sm=1&u_data[url]=' + u + '&u_data[name]=' + t + '" title="Сохранить закладку в Memori.ru"></a>' +
                '<a rel="nofollow" class="soc_book soc_wong" href="http://www.mister-wong.ru/index.php?action=addurl&bm_url=' + u + '&bm_description=' + t + '" title="Сохранить закладку в Мистер Вонг"></a>' +
                '</div>' +
        '');

        s.find('a').attr({target: '_blank'}).css({opacity: 0.5}).hover(
                function() { $(this).css({opacity: 1}); },
                function() { $(this).css({opacity: 0.7}); }
        );
        s.hover(
                function() { $(this).find('a').css({opacity: 0.7}); },
                function() { $(this).find('a').css({opacity: 0.5}); }
        );
        $('#socmore').css({opacity: 0.5}).hover(
                function() { $(this).css({opacity: 1}); },
                function() { $(this).css({opacity: 0.5}); }
        );

        $('#soc2').hide();
        $('#socmore').toggle(
                function() {
                        $('#soc1').animate({height: 'hide'}, 300);
                        $('#soc2').animate({height: 'show'}, 300);
                },
                function() {
                        $('#soc2').animate({height: 'hide'}, 300);
                        $('#soc1').animate({height: 'show'}, 300);
                }
        )

}

