function removeFilter(e){e.style.removeAttribute&&e.style.removeAttribute("filter")}!function(e){e.fn.innerfade=function(n){return this.each((function(){e.innerfade(this,n)}))},e.innerfade=function(n,t){var i={animationtype:"fade",speed:"normal",type:"sequence",timeout:2e3,containerheight:"auto",runningclass:"innerfade",children:null};if(t&&e.extend(i,t),null===i.children)var r=e(n).children();else r=e(n).children(i.children);if(r.length>1){e(n).css("position","relative").css("height",i.containerheight).addClass(i.runningclass);for(var a=0;a<r.length;a++)e(r[a]).css("z-index",String(r.length-a)).css("position","absolute").hide();if("sequence"==i.type)setTimeout((function(){e.innerfade.next(r,i,1,0)}),i.timeout),e(r[0]).show();else if("random"==i.type){var o=Math.floor(Math.random()*r.length);setTimeout((function(){do{s=Math.floor(Math.random()*r.length)}while(o==s);e.innerfade.next(r,i,s,o)}),i.timeout),e(r[o]).show()}else if("random_start"==i.type){i.type="sequence";var s=Math.floor(Math.random()*r.length);setTimeout((function(){e.innerfade.next(r,i,(s+1)%r.length,s)}),i.timeout),e(r[s]).show()}else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}},e.innerfade.next=function(n,t,i,r){if("slide"==t.animationtype?(e(n[r]).slideUp(t.speed),e(n[i]).slideDown(t.speed)):"fade"==t.animationtype?(e(n[r]).fadeOut(t.speed),e(n[i]).fadeIn(t.speed,(function(){removeFilter(e(this)[0])}))):alert("Innerfade-animationtype must either be 'slide' or 'fade'"),"sequence"==t.type)i+1<n.length?r=(i+=1)-1:(i=0,r=n.length-1);else if("random"==t.type)for(r=i;i==r;)i=Math.floor(Math.random()*n.length);else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");setTimeout((function(){e.innerfade.next(n,t,i,r)}),t.timeout)}}(jQuery),jQuery((function(e){var n={speed:1e3,timeout:5e3,type:"sequence",containerheight:"auto"};e(".jqInnerfade:not(.jqInitedInnerfade)").livequery((function(){var t=e(this);t.addClass("jqInitedInnerfade");var i=e.extend({},n,t.data());t.innerfade(i)}))}));
