	var news_count;
	var scroll_interval;
	var old_news = 0;
	var current_news = 0;


$(document).ready(function() {
						   
	//$("#logos a").ShowCoInfo();
	
	
	var $newsBox = $('#ticker');
	$items = $newsBox.find('div');	
	
	$('#down').click( function(event) {
			$newsBox.stop().trigger('stop');
			$newsBox.trigger('next');
		}).hover(function() {
			$(this).css('cursor', 'pointer');
		}, function() {
			$(this).css('cursor', 'default');
		});
	$('#up').click( function(event) {
			$newsBox.stop().trigger('stop');
			$newsBox.trigger('prev');
		}).hover(function() {
			$(this).css('cursor', 'pointer');
		}, function() {
			$(this).css('cursor', 'default');
		})
	
	$newsBox.scrollTo( 0 );
	$newsBox.serialScroll({
		//...
		items:$items,
		duration:3000,
		force:true,
		axis:'y',
		easing:'linear',
		cycle:false,
		//next:$nextBut,
		//prev:$('#up'),
		margin:false,
		//lazy:true,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval:3000, // yeah! I now added auto-scrolling 1
		step:1/*,
		onBefore:function( elem, $pane, $items, pos ){
			if( pos == $items.length )
				alert(items[0]);
			}
		}*/
	});
		
		/*$newsBox.hover(function(){
			$(this).stop().trigger('stop');
		},function(){
			$(this).stop().trigger('start');
		});*/
		
		/*$newsBox.toggle(function(){
			$(this).stop().trigger('stop');
		},function(){
			$(this).stop().trigger('start');
		});*/
	
	
	
	
	
	
});