
	var myscroll = {
		
		 containerheight: ''
		,height: ''
		,items: ''
		,speed: 15000
		,running: false
		,t:false
		,factor:0
		
		,init: function() {
			$('.rolling-news-articles-list').hide();
			
			myscroll.containerheight = $('.rolling-news-articles').height();
			myscroll.height = $('.rolling-news-articles-list').height();
			myscroll.items = $('.rolling-news-articles-list li').length;
			myscroll.factor = parseInt(myscroll.speed / myscroll.height);
			
			$('.rolling-news-articles-list').fadeIn('slow', function() {
				setTimeout(function() {
					myscroll.start();
				}, 2000);
			});

			$('.rolling-news-articles-list').hover(function() {
				myscroll.stop();
			}, function() {
				myscroll.start();
			});


		}
		
		,start: function() {
			
			var wherearewe = parseInt($('.rolling-news-articles-list').css('top'));
			var remaining = myscroll.height + wherearewe;
			var used = myscroll.height - remaining;
			
			if(used > 0) {
				var speed = myscroll.speed - (used * myscroll.factor);
			} else {
				var speed = myscroll.speed;
			}

			
			$('.rolling-news-articles-list').animate({
				top: '-' + myscroll.height + 'px'
			}, speed, 'linear', function() {
				$('.rolling-news-articles-list').css('top', myscroll.containerheight + 'px');
				myscroll.start();
			});

		}
		
		,stop: function() {
			
			$('.rolling-news-articles-list').stop();
			
		}
		
	};
	
	$(document).ready(myscroll.init);
