(function($){$.fn.innerfade=function(_2){this.each(function(){var _3={animationtype:"fade",speed:"normal",timeout:2000,type:"sequence",containerheight:"auto",runningclass:"innerfade"};if(_2){$.extend(_3,_2);}var _4=$(this).children();if(_4.length>1){$(this).css("position","relative");$(this).css("height",_3.containerheight);$(this).addClass(_3.runningclass);for(var i=0;i<_4.length;i++){$(_4[i]).css("z-index",String(_4.length-i)).css("position","absolute");$(_4[i]).hide();}if(_3.type=="sequence"){setTimeout(function(){$.innerfade.next(_4,_3,1,0);},_3.timeout);$(_4[0]).show();}else{if(_3.type=="random"){setTimeout(function(){do{current=Math.floor(Math.random()*(_4.length));}while(current==0);$.innerfade.next(_4,_3,current,0);},_3.timeout);$(_4[0]).show();}else{alert("type must either be 'sequence' or 'random'");}}}});};$.innerfade=function(){};$.innerfade.next=function(_6,_7,_8,_9){if(_7.animationtype=="slide"){$(_6[_9]).slideUp(_7.speed,$(_6[_8]).slideDown(_7.speed));}else{if(_7.animationtype=="fade"){$(_6[_9]).fadeOut(_7.speed);$(_6[_8]).fadeIn(_7.speed);}else{alert("animationtype must either be 'slide' or 'fade'");}}if(_7.type=="sequence"){if((_8+1)<_6.length){_8=_8+1;_9=_8-1;}else{_8=0;_9=_6.length-1;}}else{if(_7.type=="random"){_9=_8;while(_8==_9){_8=Math.floor(Math.random()*(_6.length));}}else{alert("type must either be 'sequence' or 'random'");}}setTimeout((function(){$.innerfade.next(_6,_7,_8,_9);}),_7.timeout);};})(jQuery);