/**
 * LavaLamp - A menu plugin for jQuery with cool hover effects.
 * @requires jQuery v1.1.3.1 or above
 *
 * http://gmarwaha.com/blog/?p=7
 *
 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Version: 0.2.0
 * Requires Jquery 1.2.1 from version 0.2.0 onwards. 
 * For jquery 1.1.x, use version 0.1.0 of lavalamp
 *
 * Kyxar.fr  modifié ligne 65 le 10/02/2011 pour permettre d'affecter l'effet qu'au menu principal .lavaLampSelect */

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