// JavaScript Document

jQuery(document).ready(function(){
	$('#featureStoryItems ul').cycle({
		fx: 'fade',
		speed: 1000,
		timeout: 16000,
		next: '#featureStories a.next',
		prev: '#featureStories a.prev'
	}); 
	
	/*$('#bottomNewsItems').serialScroll({

		next: '#bottomNews a.next',
		prev: '#bottomNews a.prev',
		items: 'li.bottomNewsItem',
		duration: 4000,
		force: true,
		stop: true,
		lock: true,
		interval:16000,
		step: 1,
		exclude: 3,
		cycle:true 
	});*/
	
	function onAfter(curr, next, opts){
		var index = opts.currSlide;
		var myindex = index +1;
		$("#counterIndex").html(myindex);
	} 
	$("#hotTopics ul").cycle({
		cleartype: 1,
		cleartypeNoBg: 1,
		prev: '#hotTopics .prev',
		next: '#hotTopics .next',
		fx: 'fade',
		speed: 1000,
		timeout: 16000,
		after: onAfter
	}); 
});
