UI plugin: plugin initialized two times options overridden

UI plugin: plugin initialized two times options overridden


Hi there,
I'm trying to create a 3D carousel with jQuery UI.
My problem is that at each call my options are overridden by the
defaults options.
Here is an example :
$.extend($.ui.carousel, {
    defaults: {
opacity: 80,
speed: 0.05
    }
});
I call my plugin with
$("#container").carousel({speed: 0.3});
The first move is made with a speed of 0.3, then the speed become
0.05.
It seems that the plugin is initialized two times. Each time I first
use a method. Like :
$("#container").carousel("left");
Is it the wrong way to use a method ?
You can see my code here :
http://www.fileshost.com/en/file/53643/jquery-carousel-zip.html
Thank you for your help
(Thank to http://www.piksite.com/carousel.us/ for the idea)