/* === Socialization === */
function socializ(u,t) {

	document.write('<div id="fix"><div id="bm"></div></div>');
	function margin() {
		var top = $(window).scrollTop();
		if (top < 88) {
			var margin = 75-top;
			$('#fix').css({top: margin+'px'});
		} else {
			$('#fix').css({top: '4px'});
		}
	}
	$(window).scroll(function() { margin(); })
	var f = '/js/sbook/s';
	$('#bm').append(
		'<div id="soc1">' +
		'<a href="http://twitter.com/home?status=RT @elportinfo ' + t + ' - ' + u + '" title="Add to Twitter"><img src="' + f + '/twitter.png" alt="" /></a>' +
		'<a href="http://www.google.com/reader/link?url=' + u + '&title=' + t + '&srcURL=http://www.elport.info/" title="Add to Google Buzz"><img src="' + f + '/google-buzz.png" alt="" /></a>' +
		'<a href="http://cang.baidu.com/do/add?it=' + t + '&iu=' + u + '" title="Add to Baidu"><img src="' + f + '/baidu.png" alt="" /></a>' +
		'<a href="http://www.facebook.com/sharer.php?u=' + u + '" title="Add to Facebook"><img src="' + f + '/facebook.png" alt="" /></a>' +
		'<a href="http://delicious.com/save?url=' + u + '&title=' + t + '" title="Add bookmark to Delicious"><img src="' + f + '/delicious.png" alt="" /></a>' +
		'<a href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + u + '&title=' + t + '" title="Add bookmark to Google"><img src="' + f + '/google.png" alt="" /></a>' +
		'<a href="http://www.livejournal.com/update.bml?event=' + u + '&subject=' + t + '" title="Publish in livejournal.com"><img src="' + f + '/livejournal.png" alt="" /></a>' +
		'</div>' +
		'<div id="socmore" title="More">...</div>' +
		'<div id="soc2">' +
		'<a href="http://www.stumbleupon.com/submit?url=' + u + '" title="Share StumbleUpon"><img src="' + f + '/stumbleupon.png" alt="" /></a>' +
		'<a href="http://www.friendfeed.com/share?title=' + t + ' - ' + u + '" title="Add to FriendFeed"><img src="' + f + '/friendfeed.png" alt="" /></a>' +
        '<a href="http://www.technorati.com/faves?add=' + u + '" title="Add to Technorati"><img src="' + f + '/technorati.png" alt="" /></a>' +
		'<a href="http://vkontakte.ru/share.php?url=' + u + '" title="Add to Vkontakte"><img src="' + f + '/vkontakte.png" alt="" /></a>' +
        '<a href="http://connect.mail.ru/share?share_url=' + u + '" title="Add to mail.ru"><img src="' + f + '/moy-mir.png" alt="" /></a>' +
		'</div>'
	);
	$('#bm a').each(function() {
		var src = $(this).find('img').attr('src');
		$(this).find('img').hide().end().css({backgroundImage: 'url('+ src +')'}).attr({rel: 'nofollow', target: '_blank'});
	})
	$('#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);
		}
	)

}
