(function($){
	jQuery(document).ready(function(){
	  var hideBox = function(){
		  $('#mwsocial-toolbar .mwsocial-toolbar-tab').removeClass('on');
	  };
	  var closeBox= function(){
		  if ( $('#mwsocial-toolbar').hasClass('hover') )
			  return;
		  hideBox();
		  $('#mwsocial-toolbar').stop(true).animate({ top: hidTop}, {duration:500, easing: style});
	  }
	  var hidTop = $('#mwsocial-toolbar').offset().top;
	  var style = '';
	  $('#mwsocial-toolbar').mouseenter(function(){
	        $(this).stop(true).animate({top:-5 }, {duration:500, easing: style});
	        })
	    .mouseleave(function(){
	    	setTimeout(closeBox, 300);
	    	})
	    .animate({ top: -5}, {duration:500, easing: style})
	    .animate({ top: hidTop}, {duration:500, easing: style});
	  
	  $('#mwsocial-toolbar ul > li.mwsocial-toolbar-menu').mouseover(function() {
		  hideBox();
		  $('#'+this.id+'-block').addClass('on');
	  });
  });
});

// social links new target window
 (function($){
	jQuery(document).ready(function(){
		$('a[rel*=external]').click(function(){this.target= '_blank';});		
	});
})(jQuery);
