How to change defaults values by passign arguments to func?
<p>I made default values for my function, but when I want to change them by passing arguments values don't change?</p>

<p>Here is an <a href="http://jsfiddle.net/KjgTV/41/" rel="nofollow">JsFiddle example</a></p>

<p>Here is my markup:</p>

<p>HTML:</p>

<pre><code>&lt;div class='container'&gt;
    &lt;img src='https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcRbQ6aMnp7uA2VHgEOY6oU24DcB-ZvoBF_puGTB6kq4c8DyMJr2'/&gt;
    &lt;img src='http://www.fullscreensavers.com/pics/nature02l.jpg' /&gt;
    &lt;img src='http://www.fullscreensavers.com/pics/nature03l.jpg' /&gt;
&lt;/div&gt;
</code></pre>

<p>CSS:</p>

<pre><code>.container{
    position: relative;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    margin-top: 50px;
}

.container img{
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    display: none;
}
​
</code></pre>

<p>Javascript:</p>

<pre><code>var InfiniteRotator = {
    init: function(domEle, options) {
        options = {
            itemInterval : 5000,
            fadeTime : 2500,
            currentItem : 0
        };
        //count number of items
        var numberOfItems = $('img', domEle).length;
        //show first item
        $('img', domEle).eq(options.currentItem).fadeIn();
        //loop through the items
        var infiniteLoop = setInterval(function() {
            $('img', domEle).eq(options.currentItem).fadeOut(options.fadeTime);
            if (options.currentItem == numberOfItems - 1) {
                options.currentItem = 0;
            } else {
                options.currentItem++;
            }
            $('img', domEle).eq(options.currentItem).fadeIn(options.fadeTime);
        }, options.itemInterval);
    }
};

InfiniteRotator.init($(".container"),{currentItem: 1});​
</code></pre>
