(function(a){a.fn.lavaLamp=function(b){b=a.extend({fx:"linear",speed:500,click:function(){}},b||{});return this.each(function(){var f=a(this),e=function(){},h=a('<li class="back"><div class="left"></div></li>').appendTo(f),i=a("li",this),g=a("li.current",this)[0];i.not(".back").hover(function(){c(this)},e);a(this).hover(e,function(){c(g)});i.click(function(j){d(this);return b.click.apply(this,[j,this])});d(g);function d(j){if(j!=undefined){h.css({left:j.offsetLeft+"px",width:(j.offsetWidth-13)+"px"});a("li.back div.left").css({left:j.offsetLeft+"px",width:(j.offsetWidth-13)+"px"});g=j}}function c(j){h.each(function(){a(this).dequeue()}).animate({width:j==undefined?0:(j.offsetWidth-13),left:j==undefined?0:j.offsetLeft},b.speed,b.fx);a("li.back div.left").each(function(){a(this).dequeue()}).animate({width:j==undefined?0:(j.offsetWidth-13),left:j==undefined?0:j.offsetLeft},b.speed,b.fx)}})}})(jQuery);
