(function($){
	$.fn.bubbler = function(options) {
		var element		= $(this[0]);
		var items		= $(element).find('.bubble');
		var buttons		= $(element).find('ul li');

		var defaults	= {
		};

		var options = $.extend(defaults, options);

		var currentIndex = -1;

		$(buttons).each(function(index) {
			$(this).click(function() {
				show(index);
			});
		});
		

		var show = function(index) {
			if (currentIndex == index)
				return;

			$(items).css('zIndex', 0);
			$(items).eq(index).css('zIndex', 1);

			currentIndex = index;
		}

		show(0);
	};
})(jQuery);
