var Preview = (function() {
	var ui = new BEN.UI();
	var feedURL = "feed.php";
	var fdMgr = new BEN.Util.FeedManager();
	
	function animate(p,d) {
		$(this).stop()
		.animate({paddingTop: p}, d, 'easeInQuart');
	}
	
	return {
		assignTooltip: function(e,o) {
			ui.tooltip(e, o || {});
			return this;
		},
		animateHover: function(e) {
			$(e).hover(
				function() { animate.call(this, 5, 300) },
				function() { animate.call(this, 0, 500) }
			);
			return this;
		},
		removeHashTag: function(e) {
			$(e).each(function() {
				if ($(this).attr('href', '#')) {
					$(this).attr('href', 'javascript:void(0)');
				}
			});
			return this;
		}
	}
})();


$(function() {
	var tips = $('.tooltip');
	Preview.assignTooltip(tips)
		   .animateHover(tips)
		   //.removeHashTag($('a.tooltip'));
});