	$(document).ready(function() {
		//set var defaults
		var hideDelayTimer = null;
	    var beingShown = false;
	    var shown = false;
	    var rss = $('#rss', this);
	    var rssOptions = $('#rssOptions', this).css('opacity', 0);
		
			$([rss.get(0), rssOptions.get(0)]).mouseover(function () {
			      if (hideDelayTimer) clearTimeout(hideDelayTimer);

			      // don't trigger the animation again if we're being shown, or already visible
			      if (beingShown || shown) {
			        return;
			      } else {
			        beingShown = true;

			        // default position of popup box
			        rssOptions.css({
			          top: -60,
			          left: -100,
			          display: 'block'
			        })

			        .animate({
			          top: "-75px",
			          opacity: 1
			        }, 250, 'swing', function() {
			          beingShown = false;
			          shown = true;
			        });
			      }
			    }).mouseout(function () {
			      if (hideDelayTimer) clearTimeout(hideDelayTimer);

			      hideDelayTimer = setTimeout(function () {
			        hideDelayTimer = null;
			        rssOptions.animate({
			          top: "-90px",
			          opacity: 0
			        }, 250, 'swing', function () {
			          shown = false;
			          rssOptions.css('display', 'none');
			        });
			      }, 800);
			    });
			
	});
