(function($){ 
     $.fn.extend({  
         small_teasers: function(options) {       
            $.fn.small_teasers.defaults = {
					item_selector:	'li.item',
					active_w:	'19.333em',
					inactive_w:	'4.833em'
			};
			
			// build main options before element iteration
			var opts = $.extend({}, $.fn.small_teasers.defaults, options);
			
			return this.each(function() {
				
				var $base_container = $(this);
				var is_running = false;
				var is_running_hide = false;
				
				$.each($(this).find(opts.item_selector), 
					function(){
						$(this).hover(function(e){
							if (is_running == false && is_running_hide == false) {
								is_running = true;
								showItem($(this));
							}	
							return false;
						}, 
						function(e){
							if (is_running == false) {
								is_running_hide = true;
								hideItem($(this));
							}	
						});
				});
				
				function showItem(el){
					var $el = $(el);
					
					/*
					$el.siblings().attr('style', '').removeClass('active').css("opacity", 0.5).addClass('inactive').animate({
																	opacity: 1
																  }, 10, function() {
																			$el.attr('style', '').removeClass('inactive').animate({
																															width: opts.active_w
																														}, 100, function() {
																																	$(this).addClass('active');
																																	is_running = false;
																															});
																  });
					*/											  
					$el.siblings().attr('style', '').removeClass('active').css("opacity", 0.5).addClass('inactive').animate({
																	opacity: 1
																  }, 10, function() {
																			$el.attr('style', '').removeClass('inactive').css("width", opts.active_w).addClass('active');
																			is_running = false;
																  });											  
				}
				
				function hideItem(el) {
					var $el = $(el);
					
					$el.siblings().attr('style', '').removeClass('inactive');
					$el.attr('style', '').removeClass('active');
					
					is_running_hide = false;
				}

            });
        } 
    }); 
})(jQuery);


