(function($){
	$.fn.bubbleup = function(options) {
		//Extend the default options of plugin
		var opt = $.extend({}, $.fn.bubbleup.defaults, options),tip = null;
		
		return this.each(function() {
			var w=$(this).height();
			$(this).mouseover(function(){
				
				$(this).closest('li').css({'z-index':100000});
				
				//$(this).stop().css({'z-index':100000,'bottom':0,'left':0,'width':w}).animate({
				$(this).stop().css({'z-index':100000,'height':w}).animate({
					//left:-opt.scale/2+w/2,
					//left:0,
					//bottom:0,
					height:opt.scale
				},opt.inSpeed);
			}).mouseout(function(){
				
				$(this).closest('li').css({'z-index':100});
				$(this).closest('li').next().css({'z-index':0});
				$(this).closest('li').next().css({'z-index':0});
				$(this).closest('li').next().children('img').css({'z-index':0});
				
				if(opt.tooltip){tip.remove()}
				//$(this).stop().animate({left:0,bottom:0,width:w},opt.outSpeed,function(){
				$(this).stop().animate({height:w},opt.outSpeed,function(){
					$(this).css({'z-index':0});
					
				});
			})
		})
	}
	$.fn.bubbleup.defaults = {
		tooltip: false,
		scale:64,
		fontFamily:'Helvetica, Arial, sans-serif',
		color:'#333333',
		fontSize:12,
		fontWeight:'bold',
		inSpeed:'fast',
		outSpeed:'fast'
	}
})(jQuery);