function socializ(u,t) {

	var m1 = 210; /* расстояние от начала страницы до плавающей панели */
	var m2 = 20; /* расстояние от верха видимой области страницы до плавающей панели */
	var f = '/wp-content/themes/notepad-chaos-v2/images/'; /* путь к папке с изображениями кнопок */

	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" href="http://twitter.com/home?status=RT @yaokino  ' + t + ' - ' + u + '" rel="nofollow" target="_blank" title="Добавить в Twitter"><img src="' + f + 'twitter.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=' + u + '" rel="nofollow" target="_blank" title="Поделиться в Facebook"><img src="' + f + 'facebook.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://vkontakte.ru/share.php?url=' + u + '" rel="nofollow" target="_blank" title="Поделиться ВКонтакте"><img src="' + f + 'vkontakte.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://connect.mail.ru/share?share_url=' + u + '" rel="nofollow" target="_blank" title="Поделиться в Моем Мире"><img src="' + f + 'moy-mir.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://www.livejournal.com/update.bml?event=' + u + '&subject=' + t + '" rel="nofollow" target="_blank" title="Опубликовать в своем блоге livejournal.com"><img src="' + f + 'livejournal.png" alt="" /></a>' +
		'</div>' +
		'<div id="socmore" title="Еще">...</div>' +
		'<div id="soc2">' +
		'<a rel="nofollow" href="http://delicious.com/save?url=' + u + '&title=' + t + '" rel="nofollow" target="_blank" title="Сохранить закладку в Delicious"><img src="' + f + 'delicious.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + u + '&title=' + t + '" rel="nofollow" target="_blank" title="Сохранить закладку в Google"><img src="' + f + 'google.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://bobrdobr.ru/add.html?url=' + u + '&title=' + t + '" rel="nofollow" target="_blank" title="Забобрить"><img src="' + f + 'bobrdobr.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://memori.ru/link/?sm=1&u_data[url]=' + u + '&u_data[name]=' + t + '" rel="nofollow" target="_blank" title="Сохранить закладку в Memori.ru"><img src="' + f + 'memori.png" alt="" /></a>' +
		'<a rel="nofollow" href="http://www.mister-wong.ru/index.php?action=addurl&bm_url=' + u + '&bm_description=' + t + '" rel="nofollow" target="_blank" title="Сохранить закладку в Мистер Вонг"><img src="' + f + 'mister-wong.png" alt="" /></a>' +
		'</div>' +
	'');

	s.find('a').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);
		}
	)

}