
/**
 * @filesource: msie_animation.js
 * @author: A. RUIZ
 * @email: adrien.ruiz083@gmail.com
 * @date: 28/10/09
 **/

(function ($) {
    
    $.fn.msie_animation = function (option) {
        var o = option || {};
        o.speed  = o.speed || 1000;
        
        var listImg = $(this);
        var indexImg = 0;
        var lengthImg = listImg.length;
        
        var animate = function () {
            $(listImg.get (indexImg)).hide ();
            if (++indexImg == lengthImg) indexImg = 0;
            $(listImg.get (indexImg)).fadeIn (o.speed);
        } // animate ();
        
        animate ();
        setInterval (animate, o.speed *4);
    } // msie_animation ();
    
})(jQuery);

