function socializ(u,t) {



	var m1 = 160; /* расстояние от начала страницы до плавающей панели */

	var m2 = 80; /* расстояние от верха видимой области страницы до плавающей панели */

	var f = 'http://realty.south.ru/images/imtw/'; /* путь к папке с изображениями кнопок */



	document.write('<div id="socializ"></div>');



	(function($) {

	$(function() {



		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(

			'<a class="tw" href="http://twitter.com/share?text=' + t + '&url=' + u + '" title="Twitter"><img class="tws" src="' + f + 'twitter.png" alt="" /></a>' +

			'<a class="tw" href="http://www.google.com/buzz/post?message=' + t + '&url=' + u + '" title="Google Buzz"><img class="tws" src="' + f + 'google-buzz.png" alt="" /></a>' +

			'<a class="tw" href="http://www.facebook.com/sharer.php?u=' + u + '" title="Facebook"><img class="tws" src="' + f + 'facebook.png" alt="" /></a>' +

			'<a class="tw" href="http://vkontakte.ru/share.php?url=' + u + '" title=""><img class="tws" src="' + f + 'vkontakte.png" alt="" /></a>' +

			'<a class="tw" href="http://connect.mail.ru/share?share_url=' + u + '" title=""><img class="tws" src="' + f + 'moy-mir.png" alt="" /></a>' +

			'<a class="tw" href="http://www.livejournal.com/update.bml?event=' + u + '&subject=' + t + '" title="livejournal.com"><img class="tws" src="' + f + 'livejournal.png" alt="" /></a>' +

			'<a class="tw" href="http://delicious.com/save?url=' + u + '&title=' + t + '" title="Delicious"><img class="tws" src="' + f + 'delicious.png" alt="" /></a>' +

			'<a class="tw" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + u + '&title=' + t + '" title="Google"><img class="tws" src="' + f + 'google.png" alt="" /></a>' +

		'');



		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}); }

		);



	})

	})(jQuery)



}
