(function($){	
	$.fn.roll = function(options) {
		
		var defaults = {
			speed:1000,
			easing:"linear"
		},
		settings = $.extend({}, defaults, options);		 

		  this.each(function() {
		  	
			var $this = $(this);			
			$this.prepend('<div class="bg"></div>');
			$this.find(".bg").css("opacity","0");

			$this.hover(function(e) {
				// mouse over
				$this.find(".bg").stop().animate({"opacity": "1"}, settings.speed, settings.easing);  
				  
				}, function() {
					//$this.find(".bg").fadeOut(settings.speed);
					$this.find(".bg").stop().animate({"opacity": "0"}, settings.speed, settings.easing);
				});
			
		 });
		  // returns the jQuery object to allow for chainability.
		  return this;
	}
})(jQuery);

