


(function($) {
	$.fn.eventos = function(opt2) {
		var opciones2 = {
			retardo2: 5000,
			tiempoAnimacion2: 50000,
			funcionAnimacion2: ''
		}
		jQuery.extend(opciones2, opt2);
		
		this.each(function(){
			var listaeventos = $(this).children("ul");
			var elementoseventos = listaeventos.children("li");
			var elementoActual2 = 0;
			$.timer(opciones2.retardo2, function(timer){
				elementoActual2 =  (elementoActual2 + 1) % elementoseventos.length;
				listaeventos.animate({
					top: "-" + $(elementoseventos[elementoActual2]).position().top + "px"
				}, opciones2.tiempoAnimacion2, opciones2.funcionAnimacion2)
				
			});
		});
		return this;
	};
})(jQuery);
