jQuery.fn.nudge = function (a) {
    a = jQuery.extend({
        amount: 20,
        duration: 300,
        property: "padding",
        direction: "left",
        toCallback: function () {},
        fromCallback: function () {}
    }, a);
    this.each(function () {
        var h = jQuery(this);
        var e = a;
        var d = e.direction;
        var g = e.property + d.substring(0, 1).toUpperCase() + d.substring(1, d.length);
        var c = h.css(g);
        var f = {};
        f[g] = parseInt(e.amount) + parseInt(c);
        var b = {};
        b[g] = c;
        h.hover(function () {
            h.stop().animate(f, e.duration, "", e.toCallback)
        }, function () {
            h.stop().animate(b, e.duration, "", e.fromCallback)
        })
    });
    return this
};

jQuery(document).ready(function() {
	jQuery('ul.quick-nav li a').nudge({
		property: 'marginTop',
		direction: '',
		amount: -15,
		duration: 166,
	});
	
	jQuery('.posts-default li').each(function(i) { 
  		jQuery(this).addClass("featured_post_"+(i+1)); 
	});
});
