$(document).ready(function(){
		var config = {    
			sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
			interval: 100, // number = milliseconds for onMouseOver polling interval    
			over: shareGrow, // function = onMouseOver callback (REQUIRED)    
			timeout: 250, // number = milliseconds delay before onMouseOut    
			out: shareContract // function = onMouseOut callback (REQUIRED)    
		};

		$('.post .share').hoverIntent(config);
		$('.post .share .close').click(shareContractFromClose);

		function shareGrow() {
			$(this).animate({
				width: '230px',
				height: '180px'
			});
			$('.label', this).fadeOut("fast");
			$('.share_links', this).delay(200).fadeIn("fast");
			$('.close', this).fadeIn("fast");
		};
		function shareContract() {
			$(this).animate({
				width: '110px',
				height: '95px'
			});
			$('.label', this).delay(200).fadeIn("fast");
			$('.share_links', this).fadeOut("fast");
			$('.close', this).fadeOut("fast");
		};
		function shareContractFromClose() {
			$(this).parent().animate({
				width: '110px',
				height: '95px'
			});
			$(this).parent().find('.share').fadeIn("fast");
			$(this).parent().find('.share_links').fadeOut("fast");
			$(this).parent().find('.close').fadeOut("fast");
		};
		
		$('.post:last').find('.top').hide()
	});