/*
*  jQuery Rotator Plugin
*  @requires jQuery v1.2.6 or greater
*  http://hernan.amiune.com/labs
*  Copyright (c)  Hernan Amiune (hernan.amiune.com)
*  Licensed under MIT license:
*  http://www.opensource.org/licenses/mit-license.php
*  Version: 1.1
*/
(function(a){a.fn.rotator=function(b){var c={ms:2000,n:1,autoHeight:false,detectHeight:true};var b=a.extend(c,b);return this.each(function(d){var g=a(this);var f=0;g.children().filter(":lt("+b.n+")").each(function(h,i){f+=a(i).height()});if(b.detectHeight){g.height(f)}function e(){g.data("timer",setInterval(function(){var h=g.children().filter(":first-child").height();var j={scrollTop:(h)+"px"};var i=0;g.children().filter(":lt("+(b.n+1)+")").each(function(k,l){if(k>0){i+=a(l).height()}});if(b.autoHeight){j=a.extend({height:(i)+"px"},j)}g.animate(j,500,function(){g.scrollTop(0);g.append(g.children().filter(":first-child"));g.css("overflow","hidden")})},b.ms))}g.mouseover(function(){clearTimeout(g.data("timer"))});g.mouseout(function(){e()});e()})}})(jQuery);
