(function(a){a.fn.newsScroll=function(b){return this.each(function(){var e=a(this),d={speed:400,delay:3000,list_item_height:e.children("li").outerHeight()},c=a.extend({},d,b);setInterval(function(){e.children("li:first").animate({marginTop:"-"+c.list_item_height,opacity:"hide"},c.speed,function(){e.children("li:first").appendTo(e).css("marginTop",0).fadeIn(300)})},c.delay)})}})(jQuery);(function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})};a.innerfade=function(g,d){var e={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(d){a.extend(e,d)}if(e.children===null){var b=a(g).children()}else{var b=a(g).children(e.children)}if(b.length>1){a(g).css("position","relative").css("height",e.containerheight).addClass(e.runningclass);for(var c=0;c<b.length;c++){a(b[c]).css("z-index",String(b.length-c)).css("position","absolute").hide()}if(e.type=="sequence"){setTimeout(function(){a.innerfade.next(b,e,1,0)},e.timeout);a(b[0]).show()}else{if(e.type=="random"){var f=Math.floor(Math.random()*(b.length));setTimeout(function(){do{h=Math.floor(Math.random()*(b.length))}while(f==h);a.innerfade.next(b,e,h,f)},e.timeout);a(b[f]).show()}else{if(e.type=="random_start"){e.type="sequence";var h=Math.floor(Math.random()*(b.length));setTimeout(function(){a.innerfade.next(b,e,(h+1)%b.length,h)},e.timeout);a(b[h]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};a.innerfade.next=function(b,c,e,d){if(c.animationtype=="slide"){a(b[d]).slideUp(c.speed);a(b[e]).slideDown(c.speed)}else{if(c.animationtype=="fade"){a(b[d]).fadeOut(c.speed);a(b[e]).fadeIn(c.speed,function(){removeFilter(a(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(c.type=="sequence"){if((e+1)<b.length){e=e+1;d=e-1}else{e=0;d=b.length-1}}else{if(c.type=="random"){d=e;while(e==d){e=Math.floor(Math.random()*b.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){a.innerfade.next(b,c,e,d)}),c.timeout)}})(jQuery);function removeFilter(a){if(a.style.removeAttribute){a.style.removeAttribute("filter")}};