/*

	Author: Suciu Vlad
	Name: Custom Slider
	Version: 1.0
	Last Update: 16.03.2010

*/

(function(){
	
	$.fn.popup = function(options){
		return this.each(function(){
			
			var defaults = {
				distance : 10
			}
			
			settings = $.extend(defaults, options);

			
			$(this).hover(function(){
				
			
			$(this).find('div.popup').css('display', 'block').animate({
				opacity: 1,
				bottom: '+=' + settings.distance + 'px'
			})
				
				
			}, function(){
				$(this).find('div.popup').animate({
					opacity: 0,
					bottom: '-=' + settings.distance + 'px'
				}, 1,function(){
					$(this).css('display', 'none');
				})
				
			})

		})
	}
	
})(jQuery);
