﻿// plugin code for stayInView effect
(function($) {
    $.fn.stayInView = function() {
        return this.each(function() {
            var $element = $(this);
            $(window).bind("scroll", function() {
                $element.stop().animate({ "marginTop": ($(window).scrollTop()) + "px" }, "medium");
            });
        });
    };
})(jQuery);
