(function(a){a.fn.dumbCrossFade=function(e){var h={index:0,showTime:5000,transitionTime:1000,doHoverPause:true,maxZIndex:100,slideChange:null};var k=null;var b=[];var g=false;var f=-1;function c(){if(k!==null){window.clearTimeout(k);k=null}}function d(){if(g){if(arguments.length>0){f=arguments[0]}return}var m=h.index;var l=(arguments.length>0)?arguments[0]:(h.index>=b.length-1)?0:h.index+1;if(m==l){return}b[m].css("z-index",(h.maxZIndex-1)+"");b[l].css("z-index",h.maxZIndex+"");g=true;b[l].fadeIn(h.transitionTime,function(){b[m].hide();g=false;if(f!=-1){d(f);f=-1}});if(h.slideChange!==null){h.slideChange(l)}h.index=l}function j(){c();k=window.setTimeout(function(){d();j()},h.showTime)}if(e){a.extend(h,e)}this.each(function(){(b.length===h.index)?a(this).show():a(this).hide();if(b.length===0){if(h.doHoverPause){a(this).parent().hover(function(){c()},function(){c();j()})}}b[b.length]=a(this)});j();var i={jump:function(l){c();d(l);return i},start:function(){j();return i},stop:function(){c();return i}};return i}})(jQuery);