(function(a){a.fn.blockSlide=function(b){b=jQuery.extend({speed:"normal",num:4,timer:1000,flowSpeed:300},b);return this.each(function(){a.fn.blockSlide.scllor(a(this),b)})};a.fn.blockSlide.scllor=function(e,d){var f=0;a('<div id="flow"></div>').appendTo(e);var g=a("ul:eq(0)",e);var b=a("div:eq(0)>div",e);var h;var j=g.children();a(j).hover(function(){if(i){clearInterval(i)}f=a(j).index(this);i=setTimeout(function(){a(b).stop();c(f)},400)},function(){clearInterval(i);i=setInterval(function(){c(f);f++;if(f==d.num){f=0}},d.timer)});a(b).hover(function(){if(i){clearInterval(i)}},function(){i=setInterval(function(){c(f);f++;if(f==d.num){f=0}},d.timer)});var i=setInterval(function(){c(f);f++;if(f==d.num){f=0}},d.timer);var c=function(k){a(b).eq(k).animate({opacity:1},d.speed).css({"z-index":"1"}).siblings().animate({opacity:0},d.speed).css({"z-index":"0"});a("#flow").animate({left:k*122+5+"px"},d.flowSpeed);a(j).eq(k).addClass("current").siblings().removeClass("current")}}})(jQuery);
