/**
 * @author feiwen
 */
(function($)
{
    $.fn.blockSlide = function(settings)
    {
        settings = jQuery.extend({
            speed: "normal",
            num: 4,
            timer: 1000,
            flowSpeed: 300
        }, settings);
        return this.each(function()
        {
            $.fn.blockSlide.scllor($(this), settings);
        });
    };
    $.fn.blockSlide.scllor = function($this, settings)
    {
        var index = 0;
        var imgScllor = $("div:eq(0)>div", $this);
        var timerID;
        //自动播放
        var MyTime = setInterval(function()
        {
            ShowjQueryFlash(index);
            index++;
            if (index == settings.num)
                index = 0;
        }, settings.timer);
        var ShowjQueryFlash = function(i)
        {
            $(imgScllor).eq(i).animate({ opacity: 1 }, settings.speed).css({ "z-index": "100" }).siblings().animate({ opacity: 0 }, settings.speed).css({ "z-index": "0" });
        }
    }
})(jQuery);
