function socializ(u,t) {

	var f = '/i/'; /* путь к папке с изображениями кнопок */

	document.write('<div id="socializ"></div>');
	var s = $('#socializ');


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

	s.find('a').attr({target: '_blank'}).css({opacity: 0.7}).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.7}); }
	);

}

// Добавить в Избранное 
function add_favorite(a) { 
  title=document.title; 
  url=document.location; 
  try { 
    // Internet Explorer 
    eval("window.external.AddFa-vorite(url, title)".replace(/-/g,''));
  } 
  catch (e) { 
    try { 
      // Mozilla 
      window.sidebar.addPanel(title, url, ""); 
    } 
    catch (e) { 
      // Opera 
      if (typeof(opera)=="object") { 
        a.rel="sidebar"; 
        a.title=title; 
        a.url=url; 
        return true; 
      } 
      else { 
        // Unknown 
        alert('Нажмите Ctrl-D чтобы добавить страницу в закладки'); 
      } 
    } 
  } 
  return false; 
}


$(function() {
	$(window).scroll(function() {
		if($(this).scrollTop() != 0) {
			$('#toTop').fadeIn();	
		} else {
			$('#toTop').fadeOut();
		}
	});
 
	$('#toTop').click(function() {
		$('body,html').animate({scrollTop:0},800);
	});	

	$('div.ititledop').click( function() { 
		var parentID = $(this).parents('div').attr('id'); 
		$("#" + parentID + " > .menu333").slideToggle( 'fast' ); 
	}); 
	return false; 

});
